Searched refs:ml (Results 1 - 2 of 2) sorted by relevance

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dmcastu.c168 int dmg, ml = mtmp->m_lev; local
184 if ((mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) && ml) {
188 spellnum = rn2(ml);
209 if(mtmp->mcan || mtmp->mspec_used || !ml) {
232 if(rn2(ml*10) < (mtmp->mconf ? 100 : 20)) { /* fumbled attack */
262 dmg = d((int)((ml/2) + mattk->damn), (int)mattk->damd);
263 else dmg = d((int)((ml/2) + 1), 6);
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dmcastu.c168 int dmg, ml = mtmp->m_lev; local
184 if ((mattk->adtyp == AD_SPEL || mattk->adtyp == AD_CLRC) && ml) {
188 spellnum = rn2(ml);
209 if(mtmp->mcan || mtmp->mspec_used || !ml) {
232 if(rn2(ml*10) < (mtmp->mconf ? 100 : 20)) { /* fumbled attack */
262 dmg = d((int)((ml/2) + mattk->damn), (int)mattk->damd);
263 else dmg = d((int)((ml/2) + 1), 6);

Completed in 24 milliseconds