experience calculation
fix the bug <Someone> noticed WRT experience calculation for nonphysical damage.
This commit is contained in:
@@ -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
|
adding more candles than required to total 7 to a candelabrum which
|
||||||
already had between 1 and 6 gave an ungrammatical message
|
already had between 1 and 6 gave an ungrammatical message
|
||||||
give correct message when a spellcasting monster summons other monsters
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+1
-1
@@ -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;
|
if(tmp2 > AD_PHYS && tmp2 < AD_BLND) tmp += 2*mtmp->m_lev;
|
||||||
else if((tmp2 == AD_DRLI) || (tmp2 == AD_STON) ||
|
else if((tmp2 == AD_DRLI) || (tmp2 == AD_STON) ||
|
||||||
(tmp2 == AD_SLIM)) tmp += 50;
|
(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 */
|
/* extra heavy damage bonus */
|
||||||
if((int)(ptr->mattk[i].damd * ptr->mattk[i].damn) > 23)
|
if((int)(ptr->mattk[i].damd * ptr->mattk[i].damn) > 23)
|
||||||
tmp += mtmp->m_lev;
|
tmp += mtmp->m_lev;
|
||||||
|
|||||||
Reference in New Issue
Block a user