v0.4.0: updated the behaviour of arcane stylii

This commit is contained in:
Evan Debenham 2016-06-09 04:09:03 -04:00 committed by Evan Debenham
parent 4988be16fe
commit 55812b30e1
2 changed files with 10 additions and 0 deletions

View File

@ -80,6 +80,14 @@ public class Stylus extends Item {
private void inscribe( Armor armor ) { 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); detach(curUser.belongings.backpack);
GLog.w( Messages.get(this, "inscribed")); GLog.w( Messages.get(this, "inscribed"));

View File

@ -999,6 +999,8 @@ items.merchantsbeacon.desc=This odd piece of dwarven technology allows you to co
items.stylus.name=arcane stylus items.stylus.name=arcane stylus
items.stylus.ac_inscribe=INSCRIBE items.stylus.ac_inscribe=INSCRIBE
items.stylus.prompt=Select an armor to 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.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. 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.