From ed346c385b65c6b04a41c5a1ad602d3b975ca02b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 12 Oct 2017 16:28:54 -0400 Subject: [PATCH] v0.6.2: reduced enemy spawnrate in dark levels to 1.5x, from 2x --- .../shatteredpixeldungeon/levels/Level.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index cf2a5d802..0763bcb1c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -516,7 +516,13 @@ public abstract class Level implements Bundlable { } } } - spend( Dungeon.level.feeling == Feeling.DARK || Statistics.amuletObtained ? TIME_TO_RESPAWN / 2 : TIME_TO_RESPAWN ); + if (Statistics.amuletObtained){ + spend(TIME_TO_RESPAWN/2f); + } else if (Dungeon.level.feeling == Feeling.DARK){ + spend(2*TIME_TO_RESPAWN/3f); + } else { + spend(TIME_TO_RESPAWN); + } return true; } };