Added EPropertyType::Hp
This commit is contained in:
parent
ee521a013b
commit
0f14b2fe74
2 changed files with 5 additions and 0 deletions
|
@ -626,6 +626,10 @@ fn remove_custom_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(
|
||||
EPropertyType::HpMaxBattle.into(),
|
||||
*properties.get(&EPropertyType::HpMax.into()).unwrap_or(&0),
|
||||
|
|
|
@ -3,6 +3,7 @@ use num_enum::{IntoPrimitive, TryFromPrimitive};
|
|||
#[repr(u32)]
|
||||
#[derive(IntoPrimitive, TryFromPrimitive)]
|
||||
pub enum EPropertyType {
|
||||
Hp = 1,
|
||||
HpMax = 111,
|
||||
Atk = 121,
|
||||
BreakStun = 122,
|
||||
|
|
Loading…
Reference in a new issue