Home
last modified time | relevance | path

Searched refs:hp_current (Results 1 – 9 of 9) sorted by relevance

/dragonfly/games/rogue/
H A Duse.c324 rogue.hp_current += rogue.exp; in potion_heal()
326 ratio = ((float)rogue.hp_current) / rogue.hp_max; in potion_heal()
331 rogue.hp_current = rogue.hp_max; in potion_heal()
335 rogue.hp_current = rogue.hp_max; in potion_heal()
343 add = (short)(ratio * ((float)rogue.hp_max - rogue.hp_current)); in potion_heal()
344 rogue.hp_current += add; in potion_heal()
345 if (rogue.hp_current > rogue.hp_max) { in potion_heal()
346 rogue.hp_current = rogue.hp_max; in potion_heal()
H A Dtrap.c110 rogue.hp_current -= get_damage("1d6", 1); in trap_player()
111 if (rogue.hp_current <= 0) { in trap_player()
112 rogue.hp_current = 0; in trap_player()
119 if (rogue.hp_current <= 0) { in trap_player()
H A Dzap.c247 hp = rogue.hp_current / 3; in wdrain_life()
248 rogue.hp_current = (rogue.hp_current + 1) / 2; in wdrain_life()
340 damage = get_rand((rogue.hp_current / 3), rogue.hp_max); in bounce()
356 damage = rogue.hp_current / 4; in bounce()
H A Dhit.c158 if (d >= rogue.hp_current) { in rogue_damage()
159 rogue.hp_current = 0; in rogue_damage()
164 rogue.hp_current -= d; in rogue_damage()
353 if (((!to_the_death) && (rogue.hp_current <= possible_damage)) || in fight()
H A Dmove.c549 if (rogue.hp_current == rogue.hp_max) { in heal()
597 rogue.hp_current++; in heal()
599 rogue.hp_current++; in heal()
601 if ((rogue.hp_current += regeneration) > rogue.hp_max) { in heal()
602 rogue.hp_current = rogue.hp_max; in heal()
H A Dspec_hit.c421 if ((rogue.hp_current -= hp) <= 0) { in drop_level()
422 rogue.hp_current = 1; in drop_level()
435 if (rand_percent(60) || (rogue.hp_max <= 30) || (rogue.hp_current < 10)) { in drain_life()
445 rogue.hp_current--; in drain_life()
H A Dmessage.c252 rogue.hp_current -= (rogue.hp_max - MAX_HP); in print_stats()
255 sprintf(buf, "%d(%d)", rogue.hp_current, rogue.hp_max); in print_stats()
H A Drogue.h268 short hp_current; member
H A Dlevel.c831 rogue.hp_current += hp; in add_exp()