v1.4.1: fixed mobs potentially awarding exp after the hero's max level

This commit is contained in:
Evan Debenham
2022-10-05 13:24:17 -04:00
parent 27740426f4
commit 37f67445b2
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);