v2.5.1: added an internal cap to corpse dust wraith spawning power

This commit is contained in:
Evan Debenham
2024-09-12 13:05:38 -04:00
parent e98e9ee978
commit d0b0fa7717

View File

@@ -52,10 +52,6 @@ public class CorpseDust extends Item {
unique = true; unique = true;
} }
@Override
public ArrayList<String> actions(Hero hero) {
return new ArrayList<>(); //yup, no dropping this one
}
@Override @Override
public boolean isUpgradable() { public boolean isUpgradable() {
@@ -133,6 +129,9 @@ public class CorpseDust extends Item {
Wraith.spawnAt(Random.element(candidates), DustWraith.class); Wraith.spawnAt(Random.element(candidates), DustWraith.class);
Sample.INSTANCE.play(Assets.Sounds.CURSED); Sample.INSTANCE.play(Assets.Sounds.CURSED);
spawnPower -= powerNeeded; spawnPower -= powerNeeded;
} else {
//prevents excessive spawn power buildup
spawnPower = Math.min(spawnPower, 2*wraiths);
} }
} }