Hotfix for health-multiplier
This commit is contained in:
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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user