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