From 0e5b4604b642865433b135e13e32f76be5dd8ab2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 16 Sep 2014 20:32:10 -0400 Subject: [PATCH] V0.2.0a: Made Artifacts sellable, buffed ring sale price (as they are stronger now) --- .../items/artifacts/Artifact.java | 15 +++++++++++++-- .../shatteredpixeldungeon/items/rings/Ring.java | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java index e38f256bd..740623032 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java @@ -188,6 +188,17 @@ public class Artifact extends KindofMisc { partialCharge = bundle.getFloat( PARTIALCHARGE ); } - - + @Override + public int price() { + int price = 200; + if (level > 0) + price += 30*level; + if (cursed && cursedKnown) { + price /= 2; + } + if (price < 1) { + price = 1; + } + return price; + } } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/rings/Ring.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/rings/Ring.java index 679407a34..dda1c0ae9 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/rings/Ring.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/rings/Ring.java @@ -263,7 +263,7 @@ public class Ring extends KindofMisc { @Override public int price() { - int price = 80; + int price = 120; if (cursed && cursedKnown) { price /= 2; }