Searched refs:oclass (Results 51 - 75 of 96) sorted by relevance

1234

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Duhitm.c432 if (uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
461 (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
565 if(obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
566 obj->oclass == GEM_CLASS) {
611 obj->oclass == WEAPON_CLASS &&
677 } else if(obj->oclass == POTION_CLASS) {
790 obj->oclass = GEM_CLASS;
2387 (obj->known || obj->oclass == ARMOR_CLASS)) {
H A Ddog.c658 switch(obj->oclass) {
732 if(!obj->cursed && obj->oclass != BALL_CLASS &&
733 obj->oclass != CHAIN_CLASS)
H A Ddo_wear.c1491 if(otmp->oclass == RING_CLASS || otmp->otyp == MEAT_RING) {
1543 } else if (otmp->oclass == AMULET_CLASS) {
1655 makesingular(oclass_names[(int)otmp->oclass]);
1671 makesingular(oclass_names[(int)otmp->oclass]);
H A Ddokick.c364 otmp->oclass != GEM_CLASS && !obj_resists(otmp, 33, 100)) {
473 isgold = (kickobj->oclass == COIN_CLASS);
1214 if (obj->oclass != COIN_CLASS)
1335 if(otmp->oclass != COIN_CLASS)
H A Dshknam.c508 shp->iprobs[i].itype == obj->oclass) return TRUE;
H A Ddo_name.c390 if (obj->oclass == FOOD_CLASS)
392 else if (obj->oclass == SPBOOK_CLASS)
H A Dend.c454 } else if (obj->oclass == AMULET_CLASS) {
460 } else if (obj->oclass == GEM_CLASS && obj->otyp < LUCKSTONE) {
H A Dsave.c862 if (otmp->oclass == FOOD_CLASS) food_disappears(otmp);
863 if (otmp->oclass == SPBOOK_CLASS) book_disappears(otmp);
H A Dtrap.c2645 } else if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS) {
2652 dindx = (obj->oclass == SCROLL_CLASS) ? 2 : 3;
2658 } else if (obj->oclass == POTION_CLASS) {
2710 } else if (obj->oclass == SCROLL_CLASS) {
2718 } else if (obj->oclass == SPBOOK_CLASS) {
2722 } else if (obj->oclass == POTION_CLASS) {
2738 if(obj->oclass != ARMOR_CLASS || obj != uarm ||
H A Dworn.c89 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
423 if (obj->oclass != AMULET_CLASS ||
H A Dmuse.c66 if (obj->oclass == POTION_CLASS) {
126 if (obj->oclass == WAND_CLASS && obj->cursed && !rn2(100)) {
1131 (void) resist(mtmp, otmp->oclass, tmp, TELL);
1274 if (otmp->oclass != POTION_CLASS && (i = precheck(mtmp, otmp)) != 0)
1961 switch (obj->oclass) {
H A Dpray.c644 #define ok_wep(o) ((o) && ((o)->oclass == WEAPON_CLASS || is_weptool(o)))
853 if (uwep && (welded(uwep) || uwep->oclass == WEAPON_CLASS ||
1047 } else if(otmp->oclass == POTION_CLASS)
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Duhitm.c432 if (uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
461 (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
565 if(obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
566 obj->oclass == GEM_CLASS) {
611 obj->oclass == WEAPON_CLASS &&
677 } else if(obj->oclass == POTION_CLASS) {
790 obj->oclass = GEM_CLASS;
2387 (obj->known || obj->oclass == ARMOR_CLASS)) {
H A Ddog.c658 switch(obj->oclass) {
732 if(!obj->cursed && obj->oclass != BALL_CLASS &&
733 obj->oclass != CHAIN_CLASS)
H A Ddo_wear.c1491 if(otmp->oclass == RING_CLASS || otmp->otyp == MEAT_RING) {
1543 } else if (otmp->oclass == AMULET_CLASS) {
1655 makesingular(oclass_names[(int)otmp->oclass]);
1671 makesingular(oclass_names[(int)otmp->oclass]);
H A Ddokick.c364 otmp->oclass != GEM_CLASS && !obj_resists(otmp, 33, 100)) {
473 isgold = (kickobj->oclass == COIN_CLASS);
1214 if (obj->oclass != COIN_CLASS)
1335 if(otmp->oclass != COIN_CLASS)
H A Dshknam.c508 shp->iprobs[i].itype == obj->oclass) return TRUE;
H A Ddo_name.c390 if (obj->oclass == FOOD_CLASS)
392 else if (obj->oclass == SPBOOK_CLASS)
H A Dend.c454 } else if (obj->oclass == AMULET_CLASS) {
460 } else if (obj->oclass == GEM_CLASS && obj->otyp < LUCKSTONE) {
H A Dsave.c862 if (otmp->oclass == FOOD_CLASS) food_disappears(otmp);
863 if (otmp->oclass == SPBOOK_CLASS) book_disappears(otmp);
H A Dtrap.c2645 } else if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS) {
2652 dindx = (obj->oclass == SCROLL_CLASS) ? 2 : 3;
2658 } else if (obj->oclass == POTION_CLASS) {
2710 } else if (obj->oclass == SCROLL_CLASS) {
2718 } else if (obj->oclass == SPBOOK_CLASS) {
2722 } else if (obj->oclass == POTION_CLASS) {
2738 if(obj->oclass != ARMOR_CLASS || obj != uarm ||
H A Dworn.c89 if (obj->oclass == WEAPON_CLASS || is_weptool(obj) ||
423 if (obj->oclass != AMULET_CLASS ||
H A Dmuse.c66 if (obj->oclass == POTION_CLASS) {
126 if (obj->oclass == WAND_CLASS && obj->cursed && !rn2(100)) {
1131 (void) resist(mtmp, otmp->oclass, tmp, TELL);
1274 if (otmp->oclass != POTION_CLASS && (i = precheck(mtmp, otmp)) != 0)
1961 switch (obj->oclass) {
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dmondata.h190 #define befriend_with_obj(ptr, obj) ((obj)->oclass == FOOD_CLASS && \
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dmondata.h190 #define befriend_with_obj(ptr, obj) ((obj)->oclass == FOOD_CLASS && \

Completed in 148 milliseconds

1234