experience calculation

fix the bug <Someone> noticed WRT experience calculation for nonphysical damage.
This commit is contained in:
cohrs
2005-01-18 15:01:10 +00:00
parent a1ce203b40
commit d0a1a6e5b6
2 changed files with 2 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ finding "something" posing as a statue while Blind should map_invisible()
adding more candles than required to total 7 to a candelabrum which
already had between 1 and 6 gave an ungrammatical message
give correct message when a spellcasting monster summons other monsters
correct experience calculation for monsters that cause nonphysical damage
Platform- and/or Interface-Specific Fixes

View File

@@ -74,7 +74,7 @@ experience(mtmp, nk) /* return # of exp points for mtmp after nk killed */
if(tmp2 > AD_PHYS && tmp2 < AD_BLND) tmp += 2*mtmp->m_lev;
else if((tmp2 == AD_DRLI) || (tmp2 == AD_STON) ||
(tmp2 == AD_SLIM)) tmp += 50;
else if(tmp != AD_PHYS) tmp += mtmp->m_lev;
else if(tmp2 != AD_PHYS) tmp += mtmp->m_lev;
/* extra heavy damage bonus */
if((int)(ptr->mattk[i].damd * ptr->mattk[i].damn) > 23)
tmp += mtmp->m_lev;