Home | History | Annotate | Download | only in rogue

Lines Matching refs:rogue

56 #include "rogue.h"
100 rogue.str_current++;
101 if (rogue.str_current > rogue.str_max) {
102 rogue.str_max = rogue.str_current;
106 rogue.str_current = rogue.str_max;
119 rogue.str_current -= get_rand(1, 3);
120 if (rogue.str_current < 1) {
121 rogue.str_current = 1;
130 rogue.exp_points = level_points[rogue.exp - 1];
187 vanish(obj, 1, &rogue.pack);
217 if (rogue.weapon) {
218 if (rogue.weapon->what_is == WEAPON) {
220 name_of(rogue.weapon),
221 ((rogue.weapon->quantity <= 1) ? "s" : ""),
224 rogue.weapon->hit_enchant++;
226 rogue.weapon->d_enchant++;
229 rogue.weapon->is_cursed = 0;
235 if (rogue.armor) {
238 rogue.armor->d_enchant++;
239 rogue.armor->is_cursed = 0;
259 if (rogue.armor) {
261 rogue.armor->is_protected = 1;
262 rogue.armor->is_cursed = 0;
292 vanish(obj, (obj->which_kind != SLEEP), &rogue.pack);
326 rogue.hp_current += rogue.exp;
328 ratio = ((float)rogue.hp_current) / rogue.hp_max;
331 rogue.hp_max += (extra ? 2 : 1);
333 rogue.hp_current = rogue.hp_max;
335 rogue.hp_max += (extra ? 1 : 0);
337 rogue.hp_current = rogue.hp_max;
345 add = (short)(ratio * (rogue.hp_max - rogue.hp_current));
346 rogue.hp_current += add;
347 if (rogue.hp_current > rogue.hp_max) {
348 rogue.hp_current = rogue.hp_max;
426 rogue.moves_left /= 3;
427 rogue.moves_left += moves;
431 vanish(obj, 1, &rogue.pack);
444 row = rogue.row + i;
445 col = rogue.col + j;
470 mvaddch(rogue.row, rogue.col, get_dungeon_char(rogue.row, rogue.col));
475 put_player(get_room_number(rogue.row, rogue.col));
493 ((obj->row != rogue.row) || (obj->col != rogue.col)))
536 light_passage(rogue.row, rogue.col);
540 mvaddch(rogue.row, rogue.col, rogue.fchar);
587 mvaddch(rogue.row, rogue.col, rogue.fchar);
619 obj = rogue.pack.next_object;