Hotfix for health-multiplier

This commit is contained in:
Garbage Mule 2011-09-13 23:34:20 +02:00
parent 35647bd14c
commit 2ce02c9169
2 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@ -89,8 +89,8 @@ public abstract class AbstractWave implements Wave
getArena().addMonster(e);
// Boost health
if (getHealthMultiplier() > 1)
e.setHealth((int) Math.min(150D, e.getHealth() * getHealthMultiplier()));
int health = (int) Math.min(150D, e.getHealth() * healthMultiplier);
e.setHealth(Math.min(1, health));
// Grab a random target.
if (e instanceof Creature)
@ -119,8 +119,7 @@ public abstract class AbstractWave implements Wave
{
for (int i = 0; i < entry.getValue(); i++)
{
LivingEntity e = spawnMonster(entry.getKey(), spawnpoints.get(index % spawnpointCount));
e.setHealth((int) Math.min(150D, e.getHealth() * healthMultiplier));
spawnMonster(entry.getKey(), spawnpoints.get(index % spawnpointCount));
index++;
}
}