Searched refs:dam (Results 1 - 22 of 22) sorted by relevance

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dmthrowu.c37 thitu(tlev, dam, obj, name)
38 int tlev, dam;
70 else You("are hit by %s%s", onm, exclam(dam));
74 dam += rnd(20);
82 if (Half_physical_damage) dam = (dam+1) / 2;
83 losehp(dam, knm, kprefix);
353 int dam, hitv; local
367 dam = dmgval(singleobj, &youmonst);
376 if(singleobj->otyp == ELVEN_ARROW) dam
506 int dam, hitv; local
[all...]
H A Dexplode.c25 explode(x, y, type, dam, olet, expltype)
28 int dam;
32 int i, j, k, damu = dam;
228 if (dam)
279 golemeffects(mtmp, (int) adtyp, dam + idamres);
286 int mdam = dam;
291 mdam = dam/2;
375 i = dam * dam;
H A Duhitm.c1741 register int dam = d((int)mattk->damn, (int)mattk->damd); local
1779 dam = 0;
1837 dam = 0;
1848 dam = 0;
1856 dam += mdef->mblinded;
1857 if (dam > 127) dam = 127;
1858 mdef->mblinded = dam;
1860 dam = 0;
1867 dam
1869 golemeffects(mdef,(int)mattk->adtyp,dam); local
1879 golemeffects(mdef,(int)mattk->adtyp,dam); local
1889 golemeffects(mdef,(int)mattk->adtyp,dam); local
[all...]
H A Dregion.c903 int dam; local
906 dam = (int) reg->arg;
915 losehp(rnd(dam) + 5, "gas cloud", KILLED_BY_AN);
935 mtmp->mhp -= rnd(dam) + 5;
H A Dmon.c409 int dam = d(2,6); local
412 mtmp->mhp -= dam;
413 if (mtmp->mhpmax > dam) mtmp->mhpmax -= dam;
2710 golemeffects(mon, damtype, dam)
2712 int damtype, dam;
2717 if (damtype == AD_ELEC) heal = dam / 6;
2721 else if (damtype == AD_FIRE) heal = dam;
2731 mon->mhp += dam;
H A Dpolyself.c1268 ugolemeffects(damtype, dam)
1269 int damtype, dam;
1280 heal = dam / 6; /* Approx 1 per die */
1283 heal = dam;
H A Ddig.c884 int dam; local
886 dam = rnd(2) + dbon() + obj->spe;
887 if (dam <= 0) dam = 1;
891 losehp(dam, buf, KILLED_BY);
H A Dzap.c3073 int dam = 0; local
3081 dam = d(nd,6);
3091 dam = d(nd, 6);
3106 dam = d(nd, 6);
3160 dam = d(nd, 6);
3171 dam = 0;
3174 dam = d(nd,6);
3184 if (Half_spell_damage && dam &&
3186 dam = (dam
[all...]
H A Dtrap.c798 int dam = u.mhmax; local
802 if (Half_physical_damage) dam = (dam+1) / 2;
803 losehp(dam, "rusting away", KILLED_BY);
3884 int dam = 1; local
3888 if (d_override) dam = d_override;
3890 dam = dmgval(obj, mon);
3891 if (dam < 1) dam = 1;
3893 if ((mon->mhp -= dam) <
[all...]
H A Dapply.c2150 int dam; local
2179 dam = rnd(2) + dbon() + obj->spe;
2180 if (dam <= 0) dam = 1;
2183 losehp(dam, buf, NO_KILLER_PREFIX);
H A Dmuse.c127 int dam = d(obj->spe+2, 6); local
135 if (mon->mhp <= dam) {
139 else mon->mhp -= dam;
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dmthrowu.c37 thitu(tlev, dam, obj, name)
38 int tlev, dam;
70 else You("are hit by %s%s", onm, exclam(dam));
74 dam += rnd(20);
82 if (Half_physical_damage) dam = (dam+1) / 2;
83 losehp(dam, knm, kprefix);
353 int dam, hitv; local
367 dam = dmgval(singleobj, &youmonst);
376 if(singleobj->otyp == ELVEN_ARROW) dam
506 int dam, hitv; local
[all...]
H A Dexplode.c25 explode(x, y, type, dam, olet, expltype)
28 int dam;
32 int i, j, k, damu = dam;
228 if (dam)
279 golemeffects(mtmp, (int) adtyp, dam + idamres);
286 int mdam = dam;
291 mdam = dam/2;
375 i = dam * dam;
H A Duhitm.c1741 register int dam = d((int)mattk->damn, (int)mattk->damd); local
1779 dam = 0;
1837 dam = 0;
1848 dam = 0;
1856 dam += mdef->mblinded;
1857 if (dam > 127) dam = 127;
1858 mdef->mblinded = dam;
1860 dam = 0;
1867 dam
1869 golemeffects(mdef,(int)mattk->adtyp,dam); local
1879 golemeffects(mdef,(int)mattk->adtyp,dam); local
1889 golemeffects(mdef,(int)mattk->adtyp,dam); local
[all...]
H A Dregion.c903 int dam; local
906 dam = (int) reg->arg;
915 losehp(rnd(dam) + 5, "gas cloud", KILLED_BY_AN);
935 mtmp->mhp -= rnd(dam) + 5;
H A Dmon.c409 int dam = d(2,6); local
412 mtmp->mhp -= dam;
413 if (mtmp->mhpmax > dam) mtmp->mhpmax -= dam;
2710 golemeffects(mon, damtype, dam)
2712 int damtype, dam;
2717 if (damtype == AD_ELEC) heal = dam / 6;
2721 else if (damtype == AD_FIRE) heal = dam;
2731 mon->mhp += dam;
H A Dpolyself.c1268 ugolemeffects(damtype, dam)
1269 int damtype, dam;
1280 heal = dam / 6; /* Approx 1 per die */
1283 heal = dam;
H A Ddig.c884 int dam; local
886 dam = rnd(2) + dbon() + obj->spe;
887 if (dam <= 0) dam = 1;
891 losehp(dam, buf, KILLED_BY);
H A Dzap.c3073 int dam = 0; local
3081 dam = d(nd,6);
3091 dam = d(nd, 6);
3106 dam = d(nd, 6);
3160 dam = d(nd, 6);
3171 dam = 0;
3174 dam = d(nd,6);
3184 if (Half_spell_damage && dam &&
3186 dam = (dam
[all...]
H A Dtrap.c798 int dam = u.mhmax; local
802 if (Half_physical_damage) dam = (dam+1) / 2;
803 losehp(dam, "rusting away", KILLED_BY);
3884 int dam = 1; local
3888 if (d_override) dam = d_override;
3890 dam = dmgval(obj, mon);
3891 if (dam < 1) dam = 1;
3893 if ((mon->mhp -= dam) <
[all...]
H A Dapply.c2150 int dam; local
2179 dam = rnd(2) + dbon() + obj->spe;
2180 if (dam <= 0) dam = 1;
2183 losehp(dam, buf, NO_KILLER_PREFIX);
H A Dmuse.c127 int dam = d(obj->spe+2, 6); local
135 if (mon->mhp <= dam) {
139 else mon->mhp -= dam;

Completed in 307 milliseconds