v0.7.4: buffs to stones of clairvoyance and wild energy spells

This commit is contained in:
Evan Debenham 2019-06-30 19:39:49 -04:00
parent 164966b156
commit fd4dc11da0
3 changed files with 13 additions and 6 deletions

View File

@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.ArtifactRecharge;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Recharging; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Recharging;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; 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.quest.MetalShard;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.exotic.ScrollOfMysticalEnergy; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.exotic.ScrollOfMysticalEnergy;
@ -51,9 +52,15 @@ public class WildEnergy extends TargetedSpell {
@Override @Override
public void call() { public void call() {
ScrollOfRecharging.charge(hero); ScrollOfRecharging.charge(hero);
Buff.affect(hero, Recharging.class, 10f); hero.belongings.charge(1f);
Buff.affect(hero, ArtifactRecharge.class).prolong( 10 ); 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 ); detach( curUser.belongings.backpack );
updateQuickslot(); updateQuickslot();

View File

@ -33,7 +33,7 @@ import com.watabou.utils.Point;
public class StoneOfClairvoyance extends Runestone { public class StoneOfClairvoyance extends Runestone {
private static final int DIST = 8; private static final int DIST = 12;
{ {
image = ItemSpriteSheet.STONE_CLAIRVOYANCE; image = ItemSpriteSheet.STONE_CLAIRVOYANCE;

View File

@ -1064,7 +1064,7 @@ items.spells.targetedspell.prompt=Choose a target
items.spells.targetedspell.inv_title=Infuse an item items.spells.targetedspell.inv_title=Infuse an item
items.spells.wildenergy.name=wild energy 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 ###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.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.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.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. 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.