Searched refs:hp_percent (Results 1 – 10 of 10) sorted by relevance
414 else if (hp_percent > 0.75f) { in DrawPortrait()416 float alpha = 1.0f - ((hp_percent - 0.75f) * 4.0f); in DrawPortrait()419 else if (hp_percent > 0.50f) { in DrawPortrait()421 float alpha = 1.0f - ((hp_percent - 0.50f) * 4.0f); in DrawPortrait()424 else if (hp_percent > 0.25f) { in DrawPortrait()426 float alpha = 1.0f - ((hp_percent - 0.25f) * 4.0f); in DrawPortrait()431 float alpha = 1.0f - (hp_percent * 4.0f); in DrawPortrait()616 else if (hp_percent > 0.666f) { in DrawSprite()618 float alpha = 1.0f - ((hp_percent - 0.666f) * 3.0f); in DrawSprite()621 else if (hp_percent > 0.333f) { in DrawSprite()[all …]
418 float hp_percent = static_cast<float>(GetHitPoints()) / static_cast<float>(GetMaxHitPoints()); in DrawPortrait() local424 } else if(hp_percent > 0.75f) { in DrawPortrait()426 float alpha = 1.0f - ((hp_percent - 0.75f) * 4.0f); in DrawPortrait()428 } else if(hp_percent > 0.50f) { in DrawPortrait()430 float alpha = 1.0f - ((hp_percent - 0.50f) * 4.0f); in DrawPortrait()432 } else if(hp_percent > 0.25f) { in DrawPortrait()434 float alpha = 1.0f - ((hp_percent - 0.25f) * 4.0f); in DrawPortrait()438 float alpha = 1.0f - (hp_percent * 4.0f); in DrawPortrait()
215 float hp_percent = static_cast<float>(GetHitPoints()) / static_cast<float>(GetMaxHitPoints()); in DrawSprite() local235 } else if(hp_percent > 0.75f) { in DrawSprite()237 } else if(hp_percent > 0.5f) { in DrawSprite()239 } else if(hp_percent > 0.25f) { in DrawSprite()
247 int hp_percent = source.GetHp() * 100 / source.GetMaxHp(); in IsActionValid() local248 return hp_percent >= action.condition_param1 && hp_percent <= action.condition_param2; in IsActionValid()
255 const int hp_percent = (you.hp * 100) / you.hp_max; in draw_minibars() local259 if (hp_percent <= entry.first) in draw_minibars()
810 const int hp_percent = in _print_stats_hp() local814 if (hp_percent <= entry.first) in _print_stats_hp()
277 #math {hp_percent}{100 * %1 / %2};278 #math {hpbars1} {$hp_percent / 5};
514 float hp_percent = 1.0f - static_cast<float>( critter.get_hp() ) / critter.get_hp_max(); in assess_danger() local515 float critter_danger = std::max( critter_threat * ( hp_percent * 0.5f + 0.5f ), in assess_danger()