Lines Matching refs:rogue
56 #include "rogue.h"
106 if ((!rogue.armor) || (get_armor_class(rogue.armor) <= 1) ||
107 (rogue.armor->which_kind == LEATHER)) {
110 if ((rogue.armor->is_protected) || maintain_armor) {
116 rogue.armor->d_enchant--;
131 freeze_percent -= (rogue.str_current+(rogue.str_current / 2));
132 freeze_percent -= ((rogue.exp + ring_exp) * 4);
133 freeze_percent -= (get_armor_class(rogue.armor) * 5);
134 freeze_percent -= (rogue.hp_max / 3);
160 if ((rogue.gold <= 0) || rand_percent(10)) {
166 if (amount > rogue.gold) {
167 amount = rogue.gold;
169 rogue.gold -= amount;
186 obj = rogue.pack.next_object;
202 obj = rogue.pack.next_object;
208 obj = rogue.pack.next_object;
223 vanish(obj, 0, &rogue.pack);
299 if (((row != rogue.row) || (col != rogue.col)) &&
396 if ((rogue.str_current <= 3) || sustain_strength) {
399 sting_chance += (6 * (6 - get_armor_class(rogue.armor)));
401 if ((rogue.exp + ring_exp) > 8) {
402 sting_chance -= (6 * ((rogue.exp + ring_exp) - 8));
407 rogue.str_current--;
417 if (rand_percent(80) || (rogue.exp <= 5)) {
420 rogue.exp_points = level_points[rogue.exp-2] - get_rand(9, 29);
421 rogue.exp -= 2;
423 if ((rogue.hp_current -= hp) <= 0) {
424 rogue.hp_current = 1;
426 if ((rogue.hp_max -= hp) <= 0) {
427 rogue.hp_max = 1;
437 if (rand_percent(60) || (rogue.hp_max <= 30) || (rogue.hp_current < 10)) {
446 rogue.hp_max--;
447 rogue.hp_current--;
451 if ((rogue.str_current > 3) && (!sustain_strength)) {
452 rogue.str_current--;
454 rogue.str_max--;
468 monster->m_flags &= (~CONFUSES); /* will not confuse the rogue */
486 if ((!mon_sees(monster, rogue.row, rogue.col)) || coin_toss()) {
489 row = rogue.row - monster->row;
490 col = rogue.col - monster->col;