Searched refs:adtyp (Results 1 - 24 of 24) sorted by relevance

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dexplode.c17 * this function: a wand type (like in zap.c), an adtyp, or an object type.
39 uchar adtyp; local
60 adtyp = AD_PHYS;
64 adtyp = AD_MAGM;
69 adtyp = AD_FIRE;
72 adtyp = AD_COLD;
76 adtyp = AD_DISN;
79 adtyp = AD_ELEC;
82 adtyp = AD_DRST;
85 adtyp
[all...]
H A Dmcastu.c184 if ((mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) && ml) {
189 if (mattk->adtyp == AD_SPEL)
195 if (!is_undirected_spell(mattk->adtyp, spellnum) ||
196 spell_would_be_useless(mtmp, mattk->adtyp, spellnum)) {
204 spell_would_be_useless(mtmp, mattk->adtyp, spellnum));
210 cursetxt(mtmp, is_undirected_spell(mattk->adtyp, spellnum));
214 if (mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) {
223 !is_undirected_spell(mattk->adtyp, spellnu
[all...]
H A Dmondata.c40 if (a->aatyp == atyp && (dtyp == AD_ANY || a->adtyp == dtyp))
334 if (a->adtyp == dtyp && (atyp == AT_ANY || a->aatyp == atyp))
355 uchar adtyp; local
360 adtyp = mdef->data->mattk[i].adtyp;
361 if ((adtyp == AD_ACID && !resists_acid(magr)) ||
362 (adtyp == AD_COLD && !resists_cold(magr)) ||
363 (adtyp == AD_FIRE && !resists_fire(magr)) ||
364 (adtyp == AD_ELEC && !resists_elec(magr)) ||
365 adtyp
[all...]
H A Dartifact.c313 attacks(adtyp, otmp)
314 register int adtyp;
320 return((boolean)(weap->attk.adtyp == adtyp));
325 defends(adtyp, otmp)
326 register int adtyp;
332 return((boolean)(weap->defn.adtyp == adtyp));
338 protects(adtyp, otmp)
339 int adtyp;
[all...]
H A Dmhitu.c163 compat = (mattk->adtyp == AD_SEDU || mattk->adtyp == AD_SSEX) &&
240 switch (mdat->mattk[i].adtyp) {
282 (attk->adtyp == AD_DISE ||
283 attk->adtyp == AD_PEST ||
284 attk->adtyp == AD_FAMN) &&
285 attk->adtyp == mptr->mattk[indx - 1].adtyp) {
288 attk->adtyp = AD_STUN;
790 if (mattk->adtyp
[all...]
H A Dpolyself.c761 buzz((int) (20 + mattk->adtyp-1), (int)mattk->damn,
818 switch(u.ustuck->data->mattk[i].adtyp) {
931 uchar adtyp = 0; local
935 adtyp = youmonst.data->mattk[i].adtyp;
939 if (adtyp != AD_CONF && adtyp != AD_FIRE) {
940 impossible("gaze attack %d?", adtyp);
975 (adtyp == AD_CONF) ? "confuse" : "attack",
988 if (adtyp
[all...]
H A Duhitm.c1098 if (mattk->adtyp == AD_DRIN) {
1115 mattk->adtyp == AD_WRAP ?
1294 switch(mattk->adtyp) {
1664 switch(mattk->adtyp) {
1700 golemeffects(mdef, (int)mattk->adtyp, tmp);
1764 switch(mattk->adtyp) {
1869 golemeffects(mdef,(int)mattk->adtyp,dam);
1879 golemeffects(mdef,(int)mattk->adtyp,dam);
1889 golemeffects(mdef,(int)mattk->adtyp,dam);
1975 if (dhit && mattk->adtyp !
[all...]
H A Dmhitm.c623 switch(mattk->adtyp) {
849 tmp = (mattk->adtyp == AD_STON ? 0 : 1);
1141 monkilled(mdef, "", (int)mattk->adtyp);
1144 if (mattk->adtyp == AD_DGST) {
1297 switch(mddat->mattk[i].adtyp) {
1323 if (rn2(3)) switch(mddat->mattk[i].adtyp) {
1408 monkilled(magr, "", (int)mddat->mattk[i].adtyp);
H A Dexper.c72 tmp2 = ptr->mattk[i].adtyp;
H A Dmthrowu.c632 switch (mattk->adtyp) {
665 int typ = (mattk->adtyp == AD_RBRE) ? rnd(AD_ACID) : mattk->adtyp ;
H A Dmonmove.c503 if (a->aatyp == AT_MAGC && (a->adtyp == AD_SPEL || a->adtyp == AD_CLRC)) {
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dexplode.c17 * this function: a wand type (like in zap.c), an adtyp, or an object type.
39 uchar adtyp; local
60 adtyp = AD_PHYS;
64 adtyp = AD_MAGM;
69 adtyp = AD_FIRE;
72 adtyp = AD_COLD;
76 adtyp = AD_DISN;
79 adtyp = AD_ELEC;
82 adtyp = AD_DRST;
85 adtyp
[all...]
H A Dmcastu.c184 if ((mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) && ml) {
189 if (mattk->adtyp == AD_SPEL)
195 if (!is_undirected_spell(mattk->adtyp, spellnum) ||
196 spell_would_be_useless(mtmp, mattk->adtyp, spellnum)) {
204 spell_would_be_useless(mtmp, mattk->adtyp, spellnum));
210 cursetxt(mtmp, is_undirected_spell(mattk->adtyp, spellnum));
214 if (mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) {
223 !is_undirected_spell(mattk->adtyp, spellnu
[all...]
H A Dmondata.c40 if (a->aatyp == atyp && (dtyp == AD_ANY || a->adtyp == dtyp))
334 if (a->adtyp == dtyp && (atyp == AT_ANY || a->aatyp == atyp))
355 uchar adtyp; local
360 adtyp = mdef->data->mattk[i].adtyp;
361 if ((adtyp == AD_ACID && !resists_acid(magr)) ||
362 (adtyp == AD_COLD && !resists_cold(magr)) ||
363 (adtyp == AD_FIRE && !resists_fire(magr)) ||
364 (adtyp == AD_ELEC && !resists_elec(magr)) ||
365 adtyp
[all...]
H A Dartifact.c313 attacks(adtyp, otmp)
314 register int adtyp;
320 return((boolean)(weap->attk.adtyp == adtyp));
325 defends(adtyp, otmp)
326 register int adtyp;
332 return((boolean)(weap->defn.adtyp == adtyp));
338 protects(adtyp, otmp)
339 int adtyp;
[all...]
H A Dmhitu.c163 compat = (mattk->adtyp == AD_SEDU || mattk->adtyp == AD_SSEX) &&
240 switch (mdat->mattk[i].adtyp) {
282 (attk->adtyp == AD_DISE ||
283 attk->adtyp == AD_PEST ||
284 attk->adtyp == AD_FAMN) &&
285 attk->adtyp == mptr->mattk[indx - 1].adtyp) {
288 attk->adtyp = AD_STUN;
790 if (mattk->adtyp
[all...]
H A Dpolyself.c761 buzz((int) (20 + mattk->adtyp-1), (int)mattk->damn,
818 switch(u.ustuck->data->mattk[i].adtyp) {
931 uchar adtyp = 0; local
935 adtyp = youmonst.data->mattk[i].adtyp;
939 if (adtyp != AD_CONF && adtyp != AD_FIRE) {
940 impossible("gaze attack %d?", adtyp);
975 (adtyp == AD_CONF) ? "confuse" : "attack",
988 if (adtyp
[all...]
H A Duhitm.c1098 if (mattk->adtyp == AD_DRIN) {
1115 mattk->adtyp == AD_WRAP ?
1294 switch(mattk->adtyp) {
1664 switch(mattk->adtyp) {
1700 golemeffects(mdef, (int)mattk->adtyp, tmp);
1764 switch(mattk->adtyp) {
1869 golemeffects(mdef,(int)mattk->adtyp,dam);
1879 golemeffects(mdef,(int)mattk->adtyp,dam);
1889 golemeffects(mdef,(int)mattk->adtyp,dam);
1975 if (dhit && mattk->adtyp !
[all...]
H A Dmhitm.c623 switch(mattk->adtyp) {
849 tmp = (mattk->adtyp == AD_STON ? 0 : 1);
1141 monkilled(mdef, "", (int)mattk->adtyp);
1144 if (mattk->adtyp == AD_DGST) {
1297 switch(mddat->mattk[i].adtyp) {
1323 if (rn2(3)) switch(mddat->mattk[i].adtyp) {
1408 monkilled(magr, "", (int)mddat->mattk[i].adtyp);
H A Dexper.c72 tmp2 = ptr->mattk[i].adtyp;
H A Dmthrowu.c632 switch (mattk->adtyp) {
665 int typ = (mattk->adtyp == AD_RBRE) ? rnd(AD_ACID) : mattk->adtyp ;
H A Dmonmove.c503 if (a->aatyp == AT_MAGC && (a->adtyp == AD_SPEL || a->adtyp == AD_CLRC)) {
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dpermonst.h10 * adtyp is the damage type (eg. physical, fire, cold, spell, ...)
22 uchar adtyp, damn, damd; member in struct:attack
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dpermonst.h10 * adtyp is the damage type (eg. physical, fire, cold, spell, ...)
22 uchar adtyp, damn, damd; member in struct:attack

Completed in 195 milliseconds