In this video I fix the issues of the inn not healing the player from the Inn and Status video and add the check if the player has died in the RPG Battle code. Keep in mind that currently the game will crash if you level up to the point where you will be assigned an enemy that isn't there. To fix that do some combination of adding more enemies to your array and maybe replacing this line:
return copyEnemy(enemies[(int)(Math.random()*3) + level - 1]);
with this:
return copyEnemy(enemies[Math.min((int)(Math.random()*3) + level - 1, enemies.length-1)]);
Негізгі бет Last Fixes
No video
Пікірлер: 1