v1.4.1: fixed mobs potentially awarding exp after the hero's max level
This commit is contained in:
@@ -110,7 +110,7 @@ public abstract class Mob extends Char {
|
||||
public int defenseSkill = 0;
|
||||
|
||||
public int EXP = 1;
|
||||
public int maxLvl = Hero.MAX_LEVEL;
|
||||
public int maxLvl = Hero.MAX_LEVEL-1;
|
||||
|
||||
protected Char enemy;
|
||||
protected int enemyID = -1; //used for save/restore
|
||||
|
||||
@@ -141,7 +141,7 @@ public class DistortionTrap extends Trap{
|
||||
continue;
|
||||
}
|
||||
|
||||
mob.maxLvl = Hero.MAX_LEVEL;
|
||||
mob.maxLvl = Hero.MAX_LEVEL-1;
|
||||
mob.state = mob.WANDERING;
|
||||
mob.pos = point;
|
||||
GameScene.add(mob, DELAY);
|
||||
|
||||
Reference in New Issue
Block a user