Lines Matching refs:testbit
73 if (testbit(inven, TWO_HANDED))
76 else if (testbit(inven, SWORD) || testbit(inven, BROAD))
80 else if (testbit(inven, KNIFE) || testbit(inven, MALLET) ||
81 testbit(inven, CHAIN) || testbit(inven, MACE) ||
82 testbit(inven, HALBERD))
196 if (testbit(inven, AMULET) || testbit(wear, AMULET)) {
198 if (testbit(inven, MEDALION) ||
199 testbit(wear, MEDALION)) {
211 if (testbit(inven, AMULET)) {
245 if (testbit(inven, LASER)) {
287 hurt = rnd(NUMOFINJURIES) - (testbit(inven, SHIELD) != 0) -
288 (testbit(wear, MAIL) != 0) - (testbit(wear, HELM) != 0);
289 hurt += (testbit(wear, AMULET) != 0) +
290 (testbit(wear, MEDALION) != 0) + (testbit(wear, TALISMAN) != 0);