From bdc0c29882ea252f76e33c1e0da691ecabf68ee1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 3 Sep 2014 17:13:54 -0400 Subject: [PATCH] V0.2.0: updated Cape of Thorns ToString() --- .../items/artifacts/CapeOfThorns.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CapeOfThorns.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CapeOfThorns.java index 37ec1dfde..a1b20a84a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CapeOfThorns.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/CapeOfThorns.java @@ -50,6 +50,14 @@ public class CapeOfThorns extends Artifact { return ""; } + @Override + public String toString(){ + if (level > 0) + return Utils.format("%s%+d %d%", name, level, charge); + else + return Utils.format("%s %d%", name, charge); + } + public class Thorns extends ArtifactBuff{ @Override