修复换装备满血问题
This commit is contained in:
parent
34e1dd72ab
commit
7e36000453
@ -68,6 +68,7 @@ void Human::Initialize()
|
||||
RecalcSelfCollider();
|
||||
volume_ = meta->volume;
|
||||
observers_.insert(this);
|
||||
ability.hp = meta->i->health();
|
||||
}
|
||||
|
||||
float Human::GetSpeed()
|
||||
@ -1343,7 +1344,6 @@ void Human::RecalcBaseAttr()
|
||||
if (helmet_meta) {
|
||||
ability.def += helmet_meta->i->def();
|
||||
}
|
||||
ability.hp = meta->i->health();
|
||||
ability.max_hp = ability.hp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user