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