1
This commit is contained in:
parent
74beb2b096
commit
ef1a6ef492
@ -276,8 +276,25 @@ float SkillHelper::GetSjydhxRecoverHp(Creature* c, const MetaData::Skill* skill_
|
||||
{
|
||||
float hp =
|
||||
(skill_meta->number_meta->float_ratio +
|
||||
skill_meta->number_meta->float_ratio * c->GetBattleContext()->GetHeroTotalAtk()) *
|
||||
skill_meta->number_meta->float_ratio2 * c->GetBattleContext()->GetHeroTotalAtk()) *
|
||||
(1 + c->GetBattleContext()->GetExtRecoverHp());
|
||||
#ifdef DEBUG
|
||||
{
|
||||
std::string dbg_msg = a8::Format
|
||||
(
|
||||
"skill_id:%d 瞬间移动回血 ratio:%f ratio2:%f human.atk:%f extRecoverHp:%f hp:%f",
|
||||
{
|
||||
skill_meta->i->skill_id(),
|
||||
skill_meta->number_meta->float_ratio,
|
||||
skill_meta->number_meta->float_ratio2,
|
||||
c->GetBattleContext()->GetHeroTotalAtk(),
|
||||
c->GetBattleContext()->GetExtRecoverHp(),
|
||||
hp
|
||||
});
|
||||
c->SendDebugMsg(dbg_msg);
|
||||
a8::XPrintf("%s\n", {dbg_msg});
|
||||
}
|
||||
#endif
|
||||
return hp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user