diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamweed.java b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamfoil.java similarity index 72% rename from src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamweed.java rename to src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamfoil.java index d5fbcb695..fcfe13c6c 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamweed.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Dreamfoil.java @@ -17,21 +17,21 @@ */ package com.shatteredpixel.shatteredpixeldungeon.plants; -import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; -import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob; -import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfInvisibility; -import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.MagicalSleep; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob; +import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfPurity; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; -public class Dreamweed extends Plant { +public class Dreamfoil extends Plant { private static final String TXT_DESC = - "Upon touching a Dreamweed it secretes a glittering cloud of confusing gas."; + "DESC HERE"; { image = 3; - plantName = "Dreamweed"; + plantName = "Dreamfoil"; } @Override @@ -39,6 +39,8 @@ public class Dreamweed extends Plant { super.activate( ch ); if (ch != null) { + if (ch instanceof Mob) + Buff.affect(ch, MagicalSleep.class); //GameScene.add(Blob.seed(pos, 300 + 20 * Dungeon.depth, ConfusionGas.class)); } } @@ -50,13 +52,13 @@ public class Dreamweed extends Plant { public static class Seed extends Plant.Seed { { - plantName = "Dreamweed"; + plantName = "Dreamfoil"; name = "seed of " + plantName; - image = ItemSpriteSheet.SEED_DREAMWEED; + image = ItemSpriteSheet.SEED_SORROWMOSS; - plantClass = Dreamweed.class; - alchemyClass = PotionOfInvisibility.class; + plantClass = Dreamfoil.class; + alchemyClass = PotionOfPurity.class; } @Override diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/plants/Stormvine.java b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Stormvine.java new file mode 100644 index 000000000..fc7fea3a6 --- /dev/null +++ b/src/com/shatteredpixel/shatteredpixeldungeon/plants/Stormvine.java @@ -0,0 +1,54 @@ +package com.shatteredpixel.shatteredpixeldungeon.plants; + +import com.shatteredpixel.shatteredpixeldungeon.actors.Char; +import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ConfusionGas; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.MagicalSleep; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Vertigo; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob; +import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfLevitation; +import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; + +/** + * Created by Evan on 23/10/2014. + */ +public class Stormvine extends Plant { + private static final String TXT_DESC = + "DESC HERE"; + + { + image = 3; + plantName = "Stormvine"; + } + + @Override + public void activate( Char ch ) { + super.activate( ch ); + + if (ch != null) { + Buff.affect(ch, Vertigo.class, Vertigo.duration( ch ) ); + } + } + + @Override + public String desc() { + return TXT_DESC; + } + + public static class Seed extends Plant.Seed { + { + plantName = "Dreamfoil"; + + name = "seed of " + plantName; + image = ItemSpriteSheet.SEED_ICECAP; + + plantClass = Stormvine.class; + alchemyClass = PotionOfLevitation.class; + } + + @Override + public String desc() { + return TXT_DESC; + } + } +}