From 508c23b9a43bccec13d07b518d8d283a771f74eb Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 13 May 2015 01:54:54 -0400 Subject: [PATCH] v0.3.0: buff descriptions round 2 --- .../shatteredpixeldungeon/actors/buffs/Burning.java | 12 ++++++++++++ .../actors/buffs/EarthImbue.java | 9 +++++++++ .../actors/buffs/FireImbue.java | 10 ++++++++++ .../actors/buffs/Invisibility.java | 12 +++++++++++- .../shatteredpixeldungeon/actors/buffs/Shadows.java | 12 +++++++++++- .../actors/buffs/ToxicImbue.java | 10 ++++++++++ .../shatteredpixeldungeon/actors/buffs/Weakness.java | 9 +++++++++ .../items/artifacts/CloakOfShadows.java | 10 ++++++++++ .../items/scrolls/ScrollOfRecharging.java | 8 ++++++++ 9 files changed, 90 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java index acaefb329..b0b857830 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Burning.java @@ -151,6 +151,18 @@ public class Burning extends Buff implements Hero.Doom { return r != null ? r.durationFactor() * DURATION : DURATION; } + @Override + public String desc() { + return "Few things are more distressing than being engulfed in flames.\n" + + "\n" + + "Fire will deal damage every turn until it is put out by water, expires, or it is resisted. " + + "Fire can be extinquished by stepping into water, or from the splash of a shattering potion. \n" + + "\n" + + "Additionally, the fire may ignite flammable terrain or items that it comes into contact with.\n" + + "\n" + + "The burning will last for " + dispTurns() + ", or until it is resisted or extinquished."; + } + @Override public void onDeath() { diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java index c50ce906d..40ef18a92 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java @@ -30,6 +30,15 @@ public class EarthImbue extends FlavourBuff { return "Imbued with Earth"; } + @Override + public String desc() { + return "You are inbued with the power of earth!\n" + + "\n" + + "All physical attacks will command roots to lock the enemy in place while the effect lasts.\n" + + "\n" + + "You are imbued for " + dispTurns() + "."; + } + { immunities.add( Paralysis.class ); immunities.add( Roots.class ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java index 268bf6935..000190e3e 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java @@ -71,6 +71,16 @@ public class FireImbue extends Buff { return "Imbued with Fire"; } + @Override + public String desc() { + return "You are imbued with the power of fire!\n" + + "\n" + + "All physical attacks will have a chance to light enemies ablaze. " + + "Additionally, you are completely immune to the effects of fire.\n" + + "\n" + + "You are imbued for " + dispTurns() + "."; + } + { immunities.add( Burning.class ); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invisibility.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invisibility.java index 71c823420..c90916148 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invisibility.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Invisibility.java @@ -64,7 +64,17 @@ public class Invisibility extends FlavourBuff { public String toString() { return "Invisible"; } - + + @Override + public String desc() { + return "You are completely blended into the surrounding terrain, making you impossible to see.\n" + + "\n" + + "While you are invisible enemies are unable to attack or follow you. " + + "Physical attacks and magical effects (such as scrolls and wands) will immediately cancel invisibility.\n" + + "\n" + + "This invisibility will last for " + dispTurns() + "."; + } + public static void dispel() { Invisibility buff = Dungeon.hero.buff( Invisibility.class ); if (buff != null) { diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java index f24897949..574fa5520 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java @@ -96,5 +96,15 @@ public class Shadows extends Invisibility { public String toString() { return "Shadowmelded"; } - + + @Override + public String desc() { + return "You are blended into the shadows around you, granting you invisibility and slowing your metabolism.\n" + + "\n" + + "While you are invisible enemies are unable to attack or follow you. " + + "Most physical attacks and magical effects (such as scrolls and wands) will immediately cancel invisibility. " + + "Additionally, while shadowmelded, your rate of hunger is slowed.\n" + + "\n" + + "You will remain shadowmelded until you leave the shadows or an enemy comes into contact with you."; + } } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java index 0b6dea934..9abe510d2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java @@ -59,6 +59,16 @@ public class ToxicImbue extends Buff { return "Imbued with Toxicity"; } + @Override + public String desc() { + return "You are imbued with poisonous energy!\n" + + "\n" + + "As you move around toxic gas will constantly billow forth from you, damaging your enemies. " + + "You are immune to toxic gas and poison for the duration of the effect.\n" + + "\n" + + "You are imbued for " + dispTurns() + "."; + } + { immunities.add( ToxicGas.class ); immunities.add( Poison.class ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Weakness.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Weakness.java index 72f71d579..280e5f45f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Weakness.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Weakness.java @@ -63,4 +63,13 @@ public class Weakness extends FlavourBuff { Resistance r = ch.buff( Resistance.class ); return r != null ? r.durationFactor() * DURATION : DURATION; } + + @Override + public String desc() { + return "Your gear suddenly feels a lot heavier.\n" + + "\n" + + "Weakening magic is affecting you, reducing your effective strength by 2 points.\n" + + "\n" + + "This weakness will last for " + dispTurns() + "."; + } } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CloakOfShadows.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CloakOfShadows.java index 63f280b45..8b7c56527 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CloakOfShadows.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CloakOfShadows.java @@ -241,6 +241,16 @@ public class CloakOfShadows extends Artifact { return "Cloaked"; } + @Override + public String desc() { + return "Your cloak of shadows is granting you invisibility while you are shrouded by it.\n" + + "\n" + + "While you are invisible enemies are unable to attack or follow you. " + + "Most physical attacks and magical effects (such as scrolls and wands) will immediately cancel invisibility.\n" + + "\n" + + "You will remain cloaked until it is cancelled or your cloak runs out of charge."; + } + @Override public void detach() { if (target.invisible > 0) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java index 2b59492b6..a3c70afa5 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java @@ -91,5 +91,13 @@ public class ScrollOfRecharging extends Scroll { return Math.min(1f, this.cooldown()); } + @Override + public String desc() { + return "Energy is coursing through you, improving the rate that your wands and staffs charge.\n" + + "\n" + + "Each turn this buff will increase current charge by one quarter, in addition to regular recharge. \n" + + "\n" + + "The recharging will last for " + dispTurns() + "."; + } } }