From fd4dc11da0dfbf39bbffabc2f592b73a76dd1d59 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 30 Jun 2019 19:39:49 -0400 Subject: [PATCH] v0.7.4: buffs to stones of clairvoyance and wild energy spells --- .../items/spells/WildEnergy.java | 13 ++++++++++--- .../items/stones/StoneOfClairvoyance.java | 2 +- .../messages/items/items.properties | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/WildEnergy.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/WildEnergy.java index 3406b261d..868f3cbe2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/WildEnergy.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/WildEnergy.java @@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.ArtifactRecharge; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Recharging; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; +import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact; import com.shatteredpixel.shatteredpixeldungeon.items.quest.MetalShard; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.exotic.ScrollOfMysticalEnergy; @@ -51,9 +52,15 @@ public class WildEnergy extends TargetedSpell { @Override public void call() { ScrollOfRecharging.charge(hero); - - Buff.affect(hero, Recharging.class, 10f); - Buff.affect(hero, ArtifactRecharge.class).prolong( 10 ); + + hero.belongings.charge(1f); + for (int i = 0; i < 4; i++){ + if (hero.belongings.misc1 instanceof Artifact) ((Artifact) hero.belongings.misc1).charge(hero); + if (hero.belongings.misc2 instanceof Artifact) ((Artifact) hero.belongings.misc2).charge(hero); + } + + Buff.affect(hero, Recharging.class, 8f); + Buff.affect(hero, ArtifactRecharge.class).prolong( 8 ); detach( curUser.belongings.backpack ); updateQuickslot(); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfClairvoyance.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfClairvoyance.java index f0ed260a4..28049fe77 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfClairvoyance.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfClairvoyance.java @@ -33,7 +33,7 @@ import com.watabou.utils.Point; public class StoneOfClairvoyance extends Runestone { - private static final int DIST = 8; + private static final int DIST = 12; { image = ItemSpriteSheet.STONE_CLAIRVOYANCE; diff --git a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties index 1da59bc75..9dc3d0d47 100644 --- a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties +++ b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties @@ -1064,7 +1064,7 @@ items.spells.targetedspell.prompt=Choose a target items.spells.targetedspell.inv_title=Infuse an item items.spells.wildenergy.name=wild energy -items.spells.wildenergy.desc=This spell contains some of the cursed energy which powered DM-300. When cast, it will grant you several turns of recharging and mystical energy, while also triggering a random cursed wand effect. You are able to choose a direction for this cursed magic to shoot in, however. +items.spells.wildenergy.desc=This spell contains some of the cursed energy which powered DM-300. When cast, it will recharge your wands and worn artifacts, while also triggering a random cursed wand effect. You are able to choose a direction for this cursed magic to shoot in, however. ###runestones @@ -1097,7 +1097,7 @@ items.stones.stoneofblink.name=stone of blink items.stones.stoneofblink.desc=This runestone will teleport the user to the location it is thrown to. items.stones.stoneofclairvoyance.name=stone of clairvoyance -items.stones.stoneofclairvoyance.desc=This stone will instantly reveal all tiles in a wide area around where it is thrown. Its effect will even reach through walls. +items.stones.stoneofclairvoyance.desc=This stone will instantly reveal all tiles in a very wide area around where it is thrown. Its effect will even reach through walls. items.stones.stoneofdeepenedsleep.name=stone of deepened sleep items.stones.stoneofdeepenedsleep.desc=When this stone is thrown near a sleeping enemy, it will magically deepen their sleep. Magically slept enemies will sleep forever until disturbed.