Searched refs:otyp (Results 1 - 25 of 140) sorted by relevance

123456

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h27 short otyp; /* object class number */ member in struct:obj
118 * objects[otmp->otyp].oc_wepcat == WEP_SWORD)
120 * (objects[otmp->otyp].oc_wepcat == WEP_BLADE || \
121 * objects[otmp->otyp].oc_wepcat == WEP_SWORD))
123 * objects[(o)->otyp].oc_weptool)
124 * #define is_multigen(otyp) (otyp <= SHURIKEN)
125 * #define is_poisonable(otyp) (otyp <= BEC_DE_CORBIN)
128 objects[otmp->otyp]
[all...]
H A Dobjclass.h66 #define is_organic(otmp) (objects[otmp->otyp].oc_material <= WOOD)
67 #define is_metallic(otmp) (objects[otmp->otyp].oc_material >= IRON && \
68 objects[otmp->otyp].oc_material <= MITHRIL)
72 #define is_rustprone(otmp) (objects[otmp->otyp].oc_material == IRON)
75 #define is_corrodeable(otmp) (objects[otmp->otyp].oc_material == COPPER || objects[otmp->otyp].oc_material == IRON)
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h27 short otyp; /* object class number */ member in struct:obj
118 * objects[otmp->otyp].oc_wepcat == WEP_SWORD)
120 * (objects[otmp->otyp].oc_wepcat == WEP_BLADE || \
121 * objects[otmp->otyp].oc_wepcat == WEP_SWORD))
123 * objects[(o)->otyp].oc_weptool)
124 * #define is_multigen(otyp) (otyp <= SHURIKEN)
125 * #define is_poisonable(otyp) (otyp <= BEC_DE_CORBIN)
128 objects[otmp->otyp]
[all...]
H A Dobjclass.h66 #define is_organic(otmp) (objects[otmp->otyp].oc_material <= WOOD)
67 #define is_metallic(otmp) (objects[otmp->otyp].oc_material >= IRON && \
68 objects[otmp->otyp].oc_material <= MITHRIL)
72 #define is_rustprone(otmp) (objects[otmp->otyp].oc_material == IRON)
75 #define is_corrodeable(otmp) (objects[otmp->otyp].oc_material == COPPER || objects[otmp->otyp].oc_material == IRON)
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dwrite.c17 return(10 * objects[otmp->otyp].oc_level);
19 switch (otmp->otyp) {
103 if(paper->otyp != SCR_BLANK_PAPER && paper->otyp != SPE_BLANK_PAPER) {
199 if(!(objects[new_obj->otyp].oc_name_known) &&
200 !(objects[new_obj->otyp].oc_uname) &&
210 Strcpy(namebuf, OBJ_DESCR(objects[new_obj->otyp]));
228 OBJ_DESCR(objects[new_obj->otyp]));
233 if (new_obj->otyp == SCR_MAIL) new_obj->spe = 1;
H A Dpotion.c366 potion_descr = OBJ_DESCR(objects[otmp->otyp]);
400 if(otmp->dknown && !objects[otmp->otyp].oc_name_known) {
402 makeknown(otmp->otyp);
404 } else if(!objects[otmp->otyp].oc_uname)
417 switch(otmp->otyp){
534 if (BInvis && uarmc->otyp == MUMMY_WRAPPING) {
569 if (otmp->otyp == POT_FRUIT_JUICE) {
900 impossible("What a funny potion! (%u)", otmp->otyp);
940 if(obj->dknown && !objects[obj->otyp].oc_name_known &&
941 !objects[obj->otyp]
[all...]
H A Ddo_wear.c80 if (otmp->otyp == TOWEL)
98 u.uprops[objects[uarmf->otyp].oc_oprop].extrinsic & ~WORN_BOOTS;
100 switch(uarmf->otyp) {
114 makeknown(uarmf->otyp);
121 makeknown(uarmf->otyp);
131 makeknown(uarmf->otyp);
136 default: impossible(unknown_type, c_boots, uarmf->otyp);
144 int otyp = uarmf->otyp; local
145 long oldprop = u.uprops[objects[otyp]
248 int otyp = uarmc->otyp; local
[all...]
H A Dmkobj.c95 mksobj_at(otyp, x, y, init, artif)
96 int otyp, x, y;
101 otmp = mksobj(otyp, init, artif);
146 switch (box->otyp) {
160 if (box->otyp == ICE_BOX) {
183 } else while (otmp->otyp == ROCK) {
184 otmp->otyp = rnd_class(DILITHIUM_CRYSTAL, LOADSTONE);
188 if (box->otyp == BAG_OF_HOLDING) {
190 otmp->otyp = SACK;
193 } else while (otmp->otyp
1072 int otyp = otmp->otyp; local
1085 int otyp = otmp->otyp; local
[all...]
H A Du_init.c850 restricted_spell_discipline(otyp)
851 int otyp;
854 int this_skill = spell_skilltype(otyp);
887 int otyp, i; local
891 otyp = (int)trop->trotyp;
896 otyp == inv_subs[i].item_otyp) {
897 otyp = inv_subs[i].subs_otyp;
901 obj = mksobj(otyp, TRUE, FALSE);
918 otyp = obj->otyp;
[all...]
H A Dzap.c110 int dmg, otyp = otmp->otyp; local
119 switch(otyp) {
131 if (otyp == SPE_FORCE_BOLT)
136 makeknown(otyp);
166 if (otyp == SPE_TURN_UNDEAD)
188 makeknown(otyp);
197 (otyp != POT_POLYMORPH), FALSE)) {
199 makeknown(otyp);
221 makeknown(otyp);
2451 int otyp = obj->otyp; local
[all...]
H A Dwizard.c63 if ((((amu = uamul) != 0 && amu->otyp == AMULET_OF_YENDOR) ||
64 ((amu = uwep) != 0 && amu->otyp == AMULET_OF_YENDOR))
105 if(otmp->otyp == AMULET_OF_YENDOR) return(1);
116 if(otmp->otyp == AMULET_OF_YENDOR ||
118 otmp->otyp == BELL_OF_OPENING ||
119 otmp->otyp == CANDELABRUM_OF_INVOCATION ||
120 otmp->otyp == SPE_BOOK_OF_THE_DEAD) return(1);
150 * If "otyp" is zero, it triggers a check for the quest_artifact,
155 mon_has_arti(mtmp, otyp)
157 register short otyp;
222 register short otyp; local
[all...]
H A Dbones.c67 if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
68 && otmp->otyp != STATUE)
70 (restore && (exist_artifact(otmp->otyp, ONAME(otmp))
80 if(objects[otmp->otyp].oc_uses_known) otmp->known = 0;
86 if (otmp->otyp == SLIME_MOLD) goodfruit(otmp->spe);
88 else if (otmp->otyp == SCR_MAIL) otmp->spe = 1;
90 else if (otmp->otyp == EGG) otmp->spe = 0;
91 else if (otmp->otyp == TIN) {
96 } else if (otmp->otyp == AMULET_OF_YENDOR) {
98 otmp->otyp
[all...]
H A Dwield.c59 || (optr)->otyp == HEAVY_IRON_BALL \
60 || (optr)->otyp == IRON_CHAIN)
65 || (optr)->otyp == TIN_OPENER))
130 } else if (!uarmg && !Stone_resistance && wep->otyp == CORPSE
142 wep->otyp == BATTLE_AXE ? "axe" : "weapon");
185 objects[wep->otyp].oc_material == IRON) {
335 (uswapwep && objects[uswapwep->otyp].oc_skill == P_SLING)) ?
496 else if (!uarmg && !Stone_resistance && (uswapwep->otyp == CORPSE &&
620 if(fade_scrolls && target->otyp != SCR_BLANK_PAPER
622 && target->otyp !
693 int otyp = STRANGE_OBJECT; local
[all...]
H A Ddothrow.c86 || (obj->otyp == BOULDER && !throws_rocks(youmonst.data))) {
95 if (!uarmg && !Stone_resistance && (obj->otyp == CORPSE &&
109 skill = objects[obj->otyp].oc_skill;
128 if (obj->otyp == YA && uwep && uwep->otyp == YUMI) multishot++;
136 if (obj->otyp == ELVEN_ARROW && uwep &&
137 uwep->otyp == ELVEN_BOW) multishot++;
140 if (obj->otyp == ORCISH_ARROW && uwep &&
141 uwep->otyp == ORCISH_BOW) multishot++;
164 m_shot.o = obj->otyp;
748 int otyp = obj->otyp, ocorpsenm = obj->corpsenm; local
1184 int otyp = obj->otyp; local
[all...]
H A Dinvent.c130 if (obj->otyp == SCR_SCARE_MONSTER) /* punt on these */
253 } else if (obj->otyp == AMULET_OF_YENDOR) {
256 } else if (obj->otyp == CANDELABRUM_OF_INVOCATION) {
259 } else if (obj->otyp == BELL_OF_OPENING) {
262 } else if (obj->otyp == SPE_BOOK_OF_THE_DEAD) {
354 if (obj->otyp == FIGURINE) {
383 boolean crysknife = (obj->otyp == CRYSKNIFE);
403 obj->otyp = CRYSKNIFE;
423 || ((obj->otyp != LOADSTONE || !obj->cursed)
499 } else if (obj->otyp
829 register int otyp = otmp->otyp; local
1100 int ocls = otmp->oclass, otyp = otmp->otyp; local
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dwrite.c17 return(10 * objects[otmp->otyp].oc_level);
19 switch (otmp->otyp) {
103 if(paper->otyp != SCR_BLANK_PAPER && paper->otyp != SPE_BLANK_PAPER) {
199 if(!(objects[new_obj->otyp].oc_name_known) &&
200 !(objects[new_obj->otyp].oc_uname) &&
210 Strcpy(namebuf, OBJ_DESCR(objects[new_obj->otyp]));
228 OBJ_DESCR(objects[new_obj->otyp]));
233 if (new_obj->otyp == SCR_MAIL) new_obj->spe = 1;
H A Dpotion.c366 potion_descr = OBJ_DESCR(objects[otmp->otyp]);
400 if(otmp->dknown && !objects[otmp->otyp].oc_name_known) {
402 makeknown(otmp->otyp);
404 } else if(!objects[otmp->otyp].oc_uname)
417 switch(otmp->otyp){
534 if (BInvis && uarmc->otyp == MUMMY_WRAPPING) {
569 if (otmp->otyp == POT_FRUIT_JUICE) {
900 impossible("What a funny potion! (%u)", otmp->otyp);
940 if(obj->dknown && !objects[obj->otyp].oc_name_known &&
941 !objects[obj->otyp]
[all...]
H A Ddo_wear.c80 if (otmp->otyp == TOWEL)
98 u.uprops[objects[uarmf->otyp].oc_oprop].extrinsic & ~WORN_BOOTS;
100 switch(uarmf->otyp) {
114 makeknown(uarmf->otyp);
121 makeknown(uarmf->otyp);
131 makeknown(uarmf->otyp);
136 default: impossible(unknown_type, c_boots, uarmf->otyp);
144 int otyp = uarmf->otyp; local
145 long oldprop = u.uprops[objects[otyp]
248 int otyp = uarmc->otyp; local
[all...]
H A Dmkobj.c95 mksobj_at(otyp, x, y, init, artif)
96 int otyp, x, y;
101 otmp = mksobj(otyp, init, artif);
146 switch (box->otyp) {
160 if (box->otyp == ICE_BOX) {
183 } else while (otmp->otyp == ROCK) {
184 otmp->otyp = rnd_class(DILITHIUM_CRYSTAL, LOADSTONE);
188 if (box->otyp == BAG_OF_HOLDING) {
190 otmp->otyp = SACK;
193 } else while (otmp->otyp
1072 int otyp = otmp->otyp; local
1085 int otyp = otmp->otyp; local
[all...]
H A Du_init.c850 restricted_spell_discipline(otyp)
851 int otyp;
854 int this_skill = spell_skilltype(otyp);
887 int otyp, i; local
891 otyp = (int)trop->trotyp;
896 otyp == inv_subs[i].item_otyp) {
897 otyp = inv_subs[i].subs_otyp;
901 obj = mksobj(otyp, TRUE, FALSE);
918 otyp = obj->otyp;
[all...]
H A Dzap.c110 int dmg, otyp = otmp->otyp; local
119 switch(otyp) {
131 if (otyp == SPE_FORCE_BOLT)
136 makeknown(otyp);
166 if (otyp == SPE_TURN_UNDEAD)
188 makeknown(otyp);
197 (otyp != POT_POLYMORPH), FALSE)) {
199 makeknown(otyp);
221 makeknown(otyp);
2451 int otyp = obj->otyp; local
[all...]
H A Dwizard.c63 if ((((amu = uamul) != 0 && amu->otyp == AMULET_OF_YENDOR) ||
64 ((amu = uwep) != 0 && amu->otyp == AMULET_OF_YENDOR))
105 if(otmp->otyp == AMULET_OF_YENDOR) return(1);
116 if(otmp->otyp == AMULET_OF_YENDOR ||
118 otmp->otyp == BELL_OF_OPENING ||
119 otmp->otyp == CANDELABRUM_OF_INVOCATION ||
120 otmp->otyp == SPE_BOOK_OF_THE_DEAD) return(1);
150 * If "otyp" is zero, it triggers a check for the quest_artifact,
155 mon_has_arti(mtmp, otyp)
157 register short otyp;
222 register short otyp; local
[all...]
H A Dbones.c67 if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
68 && otmp->otyp != STATUE)
70 (restore && (exist_artifact(otmp->otyp, ONAME(otmp))
80 if(objects[otmp->otyp].oc_uses_known) otmp->known = 0;
86 if (otmp->otyp == SLIME_MOLD) goodfruit(otmp->spe);
88 else if (otmp->otyp == SCR_MAIL) otmp->spe = 1;
90 else if (otmp->otyp == EGG) otmp->spe = 0;
91 else if (otmp->otyp == TIN) {
96 } else if (otmp->otyp == AMULET_OF_YENDOR) {
98 otmp->otyp
[all...]
H A Dwield.c59 || (optr)->otyp == HEAVY_IRON_BALL \
60 || (optr)->otyp == IRON_CHAIN)
65 || (optr)->otyp == TIN_OPENER))
130 } else if (!uarmg && !Stone_resistance && wep->otyp == CORPSE
142 wep->otyp == BATTLE_AXE ? "axe" : "weapon");
185 objects[wep->otyp].oc_material == IRON) {
335 (uswapwep && objects[uswapwep->otyp].oc_skill == P_SLING)) ?
496 else if (!uarmg && !Stone_resistance && (uswapwep->otyp == CORPSE &&
620 if(fade_scrolls && target->otyp != SCR_BLANK_PAPER
622 && target->otyp !
693 int otyp = STRANGE_OBJECT; local
[all...]
H A Ddothrow.c86 || (obj->otyp == BOULDER && !throws_rocks(youmonst.data))) {
95 if (!uarmg && !Stone_resistance && (obj->otyp == CORPSE &&
109 skill = objects[obj->otyp].oc_skill;
128 if (obj->otyp == YA && uwep && uwep->otyp == YUMI) multishot++;
136 if (obj->otyp == ELVEN_ARROW && uwep &&
137 uwep->otyp == ELVEN_BOW) multishot++;
140 if (obj->otyp == ORCISH_ARROW && uwep &&
141 uwep->otyp == ORCISH_BOW) multishot++;
164 m_shot.o = obj->otyp;
748 int otyp = obj->otyp, ocorpsenm = obj->corpsenm; local
1184 int otyp = obj->otyp; local
[all...]

Completed in 186 milliseconds

123456