Added EPropertyType::Hp

This commit is contained in:
traffic95 2025-03-18 21:42:50 +01:00
parent ee521a013b
commit 0f14b2fe74
2 changed files with 5 additions and 0 deletions

View file

@ -626,6 +626,10 @@ fn remove_custom_properties(properties: &mut HashMap<u32, i32>) {
} }
fn set_battle_properties(properties: &mut HashMap<u32, i32>) { fn set_battle_properties(properties: &mut HashMap<u32, i32>) {
properties.insert(
EPropertyType::Hp.into(),
*properties.get(&EPropertyType::HpMax.into()).unwrap_or(&0),
);
properties.insert( properties.insert(
EPropertyType::HpMaxBattle.into(), EPropertyType::HpMaxBattle.into(),
*properties.get(&EPropertyType::HpMax.into()).unwrap_or(&0), *properties.get(&EPropertyType::HpMax.into()).unwrap_or(&0),

View file

@ -3,6 +3,7 @@ use num_enum::{IntoPrimitive, TryFromPrimitive};
#[repr(u32)] #[repr(u32)]
#[derive(IntoPrimitive, TryFromPrimitive)] #[derive(IntoPrimitive, TryFromPrimitive)]
pub enum EPropertyType { pub enum EPropertyType {
Hp = 1,
HpMax = 111, HpMax = 111,
Atk = 121, Atk = 121,
BreakStun = 122, BreakStun = 122,