Lines Matching refs:testbit
65 if (testbit(inven, TWO_HANDED)) in fight()
68 else if (testbit(inven, SWORD) || testbit(inven, BROAD)) in fight()
72 else if (testbit(inven, KNIFE) || testbit(inven, MALLET) || in fight()
73 testbit(inven, CHAIN) || testbit(inven, MACE) || in fight()
74 testbit(inven, HALBERD)) in fight()
188 if (testbit(inven, AMULET) || testbit(wear, AMULET)) { in fight()
190 if (testbit(inven, MEDALION) || in fight()
191 testbit(wear, MEDALION)) { in fight()
203 if (testbit(inven, AMULET)) { in fight()
237 if (testbit(inven, LASER)) { in fight()
279 hurt = rnd(NUMOFINJURIES) - (testbit(inven, SHIELD) != 0) - in fight()
280 (testbit(wear, MAIL) != 0) - (testbit(wear, HELM) != 0); in fight()
281 hurt += (testbit(wear, AMULET) != 0) + in fight()
282 (testbit(wear, MEDALION) != 0) + (testbit(wear, TALISMAN) != 0); in fight()