Searched refs:mattk (Results 1 - 25 of 28) sorted by relevance

12

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dmhitu.c41 hitmsg(mtmp, mattk)
43 register struct attack *mattk;
49 if((compat = could_seduce(mtmp, &youmonst, mattk))
55 switch (mattk->aatyp) {
86 missmu(mtmp, nearmiss, mattk) /* monster missed you */
89 register struct attack *mattk;
94 if(could_seduce(mtmp, &youmonst, mattk) && !mtmp->mcan)
119 mpoisons_subj(mtmp, mattk)
121 struct attack *mattk;
123 if (mattk
306 struct attack *mattk, alt_attk; local
[all...]
H A Dmcastu.c162 castmu(mtmp, mattk, thinks_it_foundyou, foundyou)
164 register struct attack *mattk;
184 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
[all...]
H A Dmhitm.c56 noises(magr, mattk)
58 register struct attack *mattk;
66 (mattk->aatyp == AT_EXPL) ? "an explosion" : "some noises",
73 missmm(magr, mdef, mattk)
75 struct attack *mattk;
87 fmt = (could_seduce(magr,mdef,mattk) && !magr->mcan) ?
91 } else noises(magr, mattk);
204 struct attack *mattk, alt_attk; local
252 mattk = getmattk(pa, i, res, &alt_attk);
255 switch (mattk
[all...]
H A Duhitm.c15 STATIC_DCL boolean FDECL(m_slips_free, (struct monst *mtmp,struct attack *mattk));
394 (void) hitum(mtmp, tmp, youmonst.data->mattk);
1092 m_slips_free(mdef, mattk)
1094 struct attack *mattk;
1098 if (mattk->adtyp == AD_DRIN) {
1115 mattk->adtyp == AD_WRAP ?
1196 steal_it(mdef, mattk)
1198 struct attack *mattk;
1207 if (could_seduce(&youmonst, mdef, mattk)) {
1275 damageum(mdef, mattk)
1936 struct attack *mattk, alt_attk; local
[all...]
H A Dmondata.c39 for (a = &ptr->mattk[0]; a < &ptr->mattk[NATTK]; a++)
231 atyp = ptr->mattk[i].aatyp;
333 for (a = &ptr->mattk[0]; a < &ptr->mattk[NATTK]; a++)
358 if(mdef->data->mattk[i].aatyp == AT_NONE ||
359 mdef->data->mattk[i].aatyp == AT_BOOM) {
360 adtyp = mdef->data->mattk[i].adtyp;
366 dmg = mdef->data->mattk[i].damn;
368 dmg *= mdef->data->mattk[
[all...]
H A Dexper.c61 tmp2 = ptr->mattk[i].aatyp;
72 tmp2 = ptr->mattk[i].adtyp;
78 if((int)(ptr->mattk[i].damd * ptr->mattk[i].damn) > 23)
H A Dmthrowu.c618 spitmu(mtmp, mattk) /* monster spits substance at you */
620 register struct attack *mattk;
632 switch (mattk->adtyp) {
660 breamu(mtmp, mattk) /* monster breathes at you (ranged) */
662 register struct attack *mattk;
665 int typ = (mattk->adtyp == AD_RBRE) ? rnd(AD_ACID) : mattk->adtyp ;
685 buzz((int) (-20 - (typ-1)), (int)mattk->damn,
H A Dpolyself.c742 struct attack *mattk; local
757 mattk = attacktype_fordmg(youmonst.data, AT_BREA, AD_ANY);
758 if (!mattk)
761 buzz((int) (20 + mattk->adtyp-1), (int)mattk->damn,
810 if (u.ustuck->data->mattk[i].aatyp == AT_ENGL)
818 switch(u.ustuck->data->mattk[i].adtyp) {
934 if(youmonst.data->mattk[i].aatyp == AT_GAZE) {
935 adtyp = youmonst.data->mattk[i].adtyp;
1021 (int)mtmp->data->mattk[
[all...]
H A Dmon.c1507 if (mdat->mattk[i].aatyp == AT_BOOM) {
1508 if (mdat->mattk[i].damn)
1509 tmp = d((int)mdat->mattk[i].damn,
1510 (int)mdat->mattk[i].damd);
1511 else if(mdat->mattk[i].damd)
1512 tmp = d((int)mdat->mlevel+1, (int)mdat->mattk[i].damd);
2090 if(mtmp->data->mattk[i].aatyp == AT_GAZE) {
2091 (void) gazemu(mtmp, &mtmp->data->mattk[i]);
H A Dmonmove.c502 for (a = &mdat->mattk[0]; a < &mdat->mattk[NATTK]; a++) {
H A Ddokick.c146 uattk = &youmonst.data->mattk[i];
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dmhitu.c41 hitmsg(mtmp, mattk)
43 register struct attack *mattk;
49 if((compat = could_seduce(mtmp, &youmonst, mattk))
55 switch (mattk->aatyp) {
86 missmu(mtmp, nearmiss, mattk) /* monster missed you */
89 register struct attack *mattk;
94 if(could_seduce(mtmp, &youmonst, mattk) && !mtmp->mcan)
119 mpoisons_subj(mtmp, mattk)
121 struct attack *mattk;
123 if (mattk
306 struct attack *mattk, alt_attk; local
[all...]
H A Dmcastu.c162 castmu(mtmp, mattk, thinks_it_foundyou, foundyou)
164 register struct attack *mattk;
184 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
[all...]
H A Dmhitm.c56 noises(magr, mattk)
58 register struct attack *mattk;
66 (mattk->aatyp == AT_EXPL) ? "an explosion" : "some noises",
73 missmm(magr, mdef, mattk)
75 struct attack *mattk;
87 fmt = (could_seduce(magr,mdef,mattk) && !magr->mcan) ?
91 } else noises(magr, mattk);
204 struct attack *mattk, alt_attk; local
252 mattk = getmattk(pa, i, res, &alt_attk);
255 switch (mattk
[all...]
H A Duhitm.c15 STATIC_DCL boolean FDECL(m_slips_free, (struct monst *mtmp,struct attack *mattk));
394 (void) hitum(mtmp, tmp, youmonst.data->mattk);
1092 m_slips_free(mdef, mattk)
1094 struct attack *mattk;
1098 if (mattk->adtyp == AD_DRIN) {
1115 mattk->adtyp == AD_WRAP ?
1196 steal_it(mdef, mattk)
1198 struct attack *mattk;
1207 if (could_seduce(&youmonst, mdef, mattk)) {
1275 damageum(mdef, mattk)
1936 struct attack *mattk, alt_attk; local
[all...]
H A Dmondata.c39 for (a = &ptr->mattk[0]; a < &ptr->mattk[NATTK]; a++)
231 atyp = ptr->mattk[i].aatyp;
333 for (a = &ptr->mattk[0]; a < &ptr->mattk[NATTK]; a++)
358 if(mdef->data->mattk[i].aatyp == AT_NONE ||
359 mdef->data->mattk[i].aatyp == AT_BOOM) {
360 adtyp = mdef->data->mattk[i].adtyp;
366 dmg = mdef->data->mattk[i].damn;
368 dmg *= mdef->data->mattk[
[all...]
H A Dexper.c61 tmp2 = ptr->mattk[i].aatyp;
72 tmp2 = ptr->mattk[i].adtyp;
78 if((int)(ptr->mattk[i].damd * ptr->mattk[i].damn) > 23)
H A Dmthrowu.c618 spitmu(mtmp, mattk) /* monster spits substance at you */
620 register struct attack *mattk;
632 switch (mattk->adtyp) {
660 breamu(mtmp, mattk) /* monster breathes at you (ranged) */
662 register struct attack *mattk;
665 int typ = (mattk->adtyp == AD_RBRE) ? rnd(AD_ACID) : mattk->adtyp ;
685 buzz((int) (-20 - (typ-1)), (int)mattk->damn,
H A Dpolyself.c742 struct attack *mattk; local
757 mattk = attacktype_fordmg(youmonst.data, AT_BREA, AD_ANY);
758 if (!mattk)
761 buzz((int) (20 + mattk->adtyp-1), (int)mattk->damn,
810 if (u.ustuck->data->mattk[i].aatyp == AT_ENGL)
818 switch(u.ustuck->data->mattk[i].adtyp) {
934 if(youmonst.data->mattk[i].aatyp == AT_GAZE) {
935 adtyp = youmonst.data->mattk[i].adtyp;
1021 (int)mtmp->data->mattk[
[all...]
H A Dmon.c1507 if (mdat->mattk[i].aatyp == AT_BOOM) {
1508 if (mdat->mattk[i].damn)
1509 tmp = d((int)mdat->mattk[i].damn,
1510 (int)mdat->mattk[i].damd);
1511 else if(mdat->mattk[i].damd)
1512 tmp = d((int)mdat->mlevel+1, (int)mdat->mattk[i].damd);
2090 if(mtmp->data->mattk[i].aatyp == AT_GAZE) {
2091 (void) gazemu(mtmp, &mtmp->data->mattk[i]);
H A Dmonmove.c502 for (a = &mdat->mattk[0]; a < &mdat->mattk[NATTK]; a++) {
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dpermonst.h50 struct attack mattk[NATTK]; /* attacks matrix */ member in struct:permonst
H A Dmondata.h107 #define could_twoweap(ptr) ((ptr)->mattk[1].aatyp == AT_WEAP)
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dpermonst.h50 struct attack mattk[NATTK]; /* attacks matrix */ member in struct:permonst
H A Dmondata.h107 #define could_twoweap(ptr) ((ptr)->mattk[1].aatyp == AT_WEAP)

Completed in 119 milliseconds

12