Home
last modified time | relevance | path

Searched refs:hp_percent (Results 1 – 10 of 10) sorted by relevance

/dports/games/allacrost/allacrost-1.0.2/src/modes/battle/
H A Dbattle_actors.cpp414 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 …]
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/battle/objects/
H A Dbattle_character.cpp418 float hp_percent = static_cast<float>(GetHitPoints()) / static_cast<float>(GetMaxHitPoints()); in DrawPortrait() local
424 } 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()
H A Dbattle_enemy.cpp215 float hp_percent = static_cast<float>(GetHitPoints()) / static_cast<float>(GetMaxHitPoints()); in DrawSprite() local
235 } 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()
/dports/games/easyrpg-player/Player-0.7.0/src/
H A Denemyai.cpp247 int hp_percent = source.GetHp() * 100 / source.GetMaxHp(); in IsActionValid() local
248 return hp_percent >= action.condition_param1 && hp_percent <= action.condition_param2; in IsActionValid()
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Dtilereg-dgn.cc255 const int hp_percent = (you.hp * 100) / you.hp_max; in draw_minibars() local
259 if (hp_percent <= entry.first) in draw_minibars()
H A Doutput.cc810 const int hp_percent = in _print_stats_hp() local
814 if (hp_percent <= entry.first) in _print_stats_hp()
/dports/chinese/tintin++/tt/
H A DSCRIPTS277 #math {hp_percent}{100 * %1 / %2};
278 #math {hpbars1} {$hp_percent / 5};
/dports/net/tintin++/tt/
H A DSCRIPTS277 #math {hp_percent}{100 * %1 / %2};
278 #math {hpbars1} {$hp_percent / 5};
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/
H A Dnpcmove.cpp514 float hp_percent = 1.0f - static_cast<float>( critter.get_hp() ) / critter.get_hp_max(); in assess_danger() local
515 float critter_danger = std::max( critter_threat * ( hp_percent * 0.5f + 0.5f ), in assess_danger()
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/
H A Dnpcmove.cpp514 float hp_percent = 1.0f - static_cast<float>( critter.get_hp() ) / critter.get_hp_max(); in assess_danger() local
515 float critter_danger = std::max( critter_threat * ( hp_percent * 0.5f + 0.5f ), in assess_danger()