From 11ed648dfd7135b4b712bf695d7832a105a017de Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 24 Jun 2018 21:21:07 -0400 Subject: [PATCH] v0.7.0: added prices for runestones, corrected prices for rare seeds --- .../shatteredpixeldungeon/items/stones/Runestone.java | 5 +++++ .../items/stones/StoneOfEnchantment.java | 5 +++++ .../shatteredpixeldungeon/plants/Rotberry.java | 5 +++++ .../shatteredpixeldungeon/plants/Starflower.java | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/Runestone.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/Runestone.java index 758b9a0d4..55f4c9a4d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/Runestone.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/Runestone.java @@ -51,4 +51,9 @@ public abstract class Runestone extends Item { public boolean isIdentified() { return true; } + + @Override + public int price() { + return 10 * quantity; + } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfEnchantment.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfEnchantment.java index 06006c22f..808444213 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfEnchantment.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/stones/StoneOfEnchantment.java @@ -63,4 +63,9 @@ public class StoneOfEnchantment extends InventoryStone { useAnimation(); } + + @Override + public int price() { + return 30 * quantity; + } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Rotberry.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Rotberry.java index 7e3df8d2a..758d45e2f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Rotberry.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Rotberry.java @@ -54,5 +54,10 @@ public class Rotberry extends Plant { plantClass = Rotberry.class; } + + @Override + public int price() { + return 30 * quantity; + } } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Starflower.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Starflower.java index b44e56833..862b0b6c9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Starflower.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Starflower.java @@ -53,5 +53,10 @@ public class Starflower extends Plant { plantClass = Starflower.class; } + + @Override + public int price() { + return 30 * quantity; + } } }