This commit is contained in:
aozhiwei 2020-08-14 14:17:56 +08:00
parent 5587ef56b9
commit 04253a7d11

View File

@ -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);