v2.5.1: added an internal cap to corpse dust wraith spawning power
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user