Merging 1.9.1 source: actor changes (minus questgivers, they will be done separately)
This commit is contained in:
@@ -428,13 +428,18 @@ public abstract class Mob extends Char {
|
||||
}
|
||||
Badges.validateNightHunter();
|
||||
}
|
||||
|
||||
if (Dungeon.hero.lvl <= maxLvl && EXP > 0) {
|
||||
Dungeon.hero.sprite.showStatus( CharSprite.POSITIVE, TXT_EXP, EXP );
|
||||
Dungeon.hero.earnExp( EXP );
|
||||
|
||||
int exp = exp();
|
||||
if (exp > 0) {
|
||||
Dungeon.hero.sprite.showStatus( CharSprite.POSITIVE, TXT_EXP, exp );
|
||||
Dungeon.hero.earnExp( exp );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int exp() {
|
||||
return Dungeon.hero.lvl <= maxLvl ? EXP : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void die( Object cause ) {
|
||||
|
||||
Reference in New Issue
Block a user