Added health-multiplier support for swarm waves.

This commit is contained in:
Garbage Mule
2011-09-13 23:44:36 +02:00
parent d927c147ec
commit 33710b7dc3
2 changed files with 4 additions and 1 deletions
BIN
View File
Binary file not shown.
@@ -65,7 +65,10 @@ public class SwarmWave extends AbstractWave
for (int i = 0; i < amount; i++)
{
LivingEntity e = spawnMonster(monster, spawnpoints.get(i % spawnpointCount));
e.setHealth(1);
// Boost health
int health = (int) Math.min(150D, 1 * getHealthMultiplier());
e.setHealth(Math.max(1, health));
}
}
}