1
This commit is contained in:
parent
1929890541
commit
c117cf46cf
@ -281,7 +281,8 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
|
||||
SyncAroundPlayers(__FILE__, __LINE__, __func__);
|
||||
} else {
|
||||
if (HasNoDownedTeammate() && !room->IsPveRoom()) {
|
||||
SetHP(mt::Param::GetIntParam("downed_recover_hp"));
|
||||
SetHP(GetMaxHP() *
|
||||
std::min(1.0f, (float)mt::Param::GetFloatParam("downed_recover_hp")));
|
||||
downed = true;
|
||||
if (HasBuffEffect(kBET_Camouflage)) {
|
||||
RemoveBuffByEffectId(kBET_Camouflage);
|
||||
@ -315,7 +316,8 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
|
||||
return;
|
||||
}
|
||||
float dmg_out = 0.0f;
|
||||
int dec_hp = mt::Param::GetIntParam("downed_dec_hp");
|
||||
int dec_hp = GetMaxHP() *
|
||||
std::min(1.0f, (float)mt::Param::GetFloatParam("downed_dec_hp"));
|
||||
DecHP(dec_hp, info->killer_id, info->killer_name, info->weapon_id,
|
||||
info->real_killer_id, info->real_killer_name,
|
||||
dmg_out);
|
||||
|
Loading…
x
Reference in New Issue
Block a user