From 110eaf8222c69c078017266f0bb895c2b4c55ac3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 4 Mar 2022 14:33:14 -0500 Subject: [PATCH] v1.2.0: balance changes to exotic potions and scrolls --- core/src/main/assets/messages/actors/actors.properties | 2 +- .../shatteredpixeldungeon/actors/buffs/Dread.java | 6 +++++- .../shatteredpixeldungeon/actors/buffs/Foresight.java | 2 +- .../items/potions/exotic/PotionOfShroudingFog.java | 6 +++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/core/src/main/assets/messages/actors/actors.properties b/core/src/main/assets/messages/actors/actors.properties index d20b0b6d1..fc767c5cb 100644 --- a/core/src/main/assets/messages/actors/actors.properties +++ b/core/src/main/assets/messages/actors/actors.properties @@ -148,7 +148,7 @@ actors.buffs.doom.name=Doomed actors.buffs.doom.desc=It's hard to keep going when it seems like the universe wants you dead.\n\nDoomed characters will receive double damage from all sources.\n\nDoom is permanent, its effects only end in death. actors.buffs.dread.name=Dread -actors.buffs.dread.desc=A terror so great that it will cause its target to flee the dungeon entirely!\n\nCreatures affected by dread will run from their opponent at high speed, and will disappear from the dungeon entirely once they are out of sight. Enemies that are disposed of this way will not award any items or experience. The shock of pain will lessen the duration of dread.\n\nTurns of dread remaining: %d. +actors.buffs.dread.desc=A terror so great that it will cause its target to flee the dungeon entirely!\n\nCreatures affected by dread will run from their opponent at high speed, and will disappear from the dungeon entirely once they are out of sight. Enemies that are defeated this way award half experience and drop no items. The shock of pain will lessen the duration of dread.\n\nTurns of dread remaining: %d. actors.buffs.drowsy.name=Drowsy actors.buffs.drowsy.desc=A magical force is making it difficult to stay awake.\n\nThe hero can resist drowsiness by taking damage or by being at full health.\n\nAfter a few turns, the target will fall into a deep magical sleep. diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Dread.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Dread.java index 6052334fd..84c944383 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Dread.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Dread.java @@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator; import com.watabou.noosa.Image; @@ -61,7 +62,10 @@ public class Dread extends Buff { if (!Dungeon.level.heroFOV[target.pos] && Dungeon.level.distance(target.pos, Dungeon.hero.pos) >= 6) { - Actor.remove( target ); + if (target instanceof Mob){ + ((Mob) target).EXP /= 2; + } + target.destroy(); target.sprite.killAndErase(); Dungeon.level.mobs.remove(target); } else { diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Foresight.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Foresight.java index 5383e15e0..8b575510f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Foresight.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Foresight.java @@ -28,7 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator; public class Foresight extends FlavourBuff { - public static final float DURATION = 250f; + public static final float DURATION = 400f; public static final int DISTANCE = 8; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/exotic/PotionOfShroudingFog.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/exotic/PotionOfShroudingFog.java index 56fefa4d5..9bf2bb788 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/exotic/PotionOfShroudingFog.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/exotic/PotionOfShroudingFog.java @@ -47,12 +47,12 @@ public class PotionOfShroudingFog extends ExoticPotion { Sample.INSTANCE.play( Assets.Sounds.GAS ); } - int centerVolume = 120; + int centerVolume = 180; for (int i : PathFinder.NEIGHBOURS8){ if (!Dungeon.level.solid[cell+i]){ - GameScene.add( Blob.seed( cell+i, 120, SmokeScreen.class ) ); + GameScene.add( Blob.seed( cell+i, 180, SmokeScreen.class ) ); } else { - centerVolume += 120; + centerVolume += 180; } }