From 55812b30e1075f49382f4a9a9ff9f50aeaf5767c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 9 Jun 2016 04:09:03 -0400 Subject: [PATCH] v0.4.0: updated the behaviour of arcane stylii --- .../shatteredpixeldungeon/items/Stylus.java | 8 ++++++++ .../shatteredpixeldungeon/messages/items/items.properties | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Stylus.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Stylus.java index 6f682f38a..fe37eb91b 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Stylus.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Stylus.java @@ -79,6 +79,14 @@ public class Stylus extends Item { } private void inscribe( Armor armor ) { + + if (!armor.isIdentified() ){ + GLog.w( Messages.get(this, "identify")); + return; + } else if (armor.cursed || (armor.glyph != null && armor.glyph.curse())){ + GLog.w( Messages.get(this, "cursed")); + return; + } detach(curUser.belongings.backpack); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties index 226bd080e..97dd675b2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties +++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties @@ -999,6 +999,8 @@ items.merchantsbeacon.desc=This odd piece of dwarven technology allows you to co items.stylus.name=arcane stylus items.stylus.ac_inscribe=INSCRIBE items.stylus.prompt=Select an armor to inscribe +items.stylus.identify=You must identify that armor first. +items.stylus.cursed=The stylus's magic will not work on cursed armor. items.stylus.inscribed=You inscribed your armor with the stylus items.stylus.desc=This arcane stylus is made of some dark, very hard stone. Using it you can inscribe a magical glyph on your armor, but you have no power over choosing what glyph it will be, the stylus will decide it for you.