1
This commit is contained in:
parent
5587ef56b9
commit
04253a7d11
@ -138,7 +138,7 @@ void Human::Initialize()
|
||||
ability.hp = meta->i->health();
|
||||
for (auto& weapon : spec_weapons) {
|
||||
if (weapon.meta) {
|
||||
ability.hp += (weapon.meta ? weapon.GetAttrValue(kHAT_MaxHp) : 0);
|
||||
ability.hp += weapon.meta ? weapon.GetAttrValue(kHAT_MaxHp) : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3951,7 +3951,7 @@ void Human::OnMetaChange()
|
||||
ability.hp = meta->i->health();
|
||||
for (auto& weapon : spec_weapons) {
|
||||
if (weapon.meta) {
|
||||
ability.hp += (weapon.meta ? weapon.GetAttrValue(kHAT_MaxHp) : 0);
|
||||
ability.hp += weapon.meta ? weapon.GetAttrValue(kHAT_MaxHp) : 0;
|
||||
}
|
||||
}
|
||||
room->frame_event.AddHpChg(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user