From 01f957f70f5d477c17ec1ca1e68a5e95e73379e5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 21 Apr 2016 19:19:01 -0400 Subject: [PATCH] v0.3.5: fixed various naming and string errors --- .../actors/buffs/Berserk.java | 6 +++--- .../items/BrokenSeal.java | 2 +- .../items/armor/Armor.java | 18 +++++++++--------- .../messages/actors/actors.properties | 8 ++++---- .../messages/items/items.properties | 8 ++++---- .../sprites/ItemSpriteSheet.java | 2 +- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java index f5538209b..9db01290e 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java @@ -86,11 +86,11 @@ public class Berserk extends Buff { public boolean berserking(){ if (target.HP == 0 && state == State.NORMAL){ - WarriorShield sigil = target.buff(WarriorShield.class); - if (sigil != null){ + WarriorShield shield = target.buff(WarriorShield.class); + if (shield != null){ state = State.BERSERK; BuffIndicator.refreshHero(); - target.SHLD = sigil.maxShield() * 5; + target.SHLD = shield.maxShield() * 5; SpellSprite.show(target, SpellSprite.BERSERK); Sample.INSTANCE.play( Assets.SND_CHALLENGE ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java index 7db81409d..3ce342afb 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/BrokenSeal.java @@ -24,7 +24,7 @@ public class BrokenSeal extends Item { public static final String AC_INFO = "INFO_WINDOW"; { - image = ItemSpriteSheet.SIGIL; + image = ItemSpriteSheet.SEAL; cursedKnown = levelKnown = true; unique = true; diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java index c8d01fde5..30ca7ecaf 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java @@ -117,18 +117,18 @@ public class Armor extends EquipableItem { if (action.equals(AC_DETACH) && seal){ seal = false; - BrokenSeal.WarriorShield sigilBuff = hero.buff(BrokenSeal.WarriorShield.class); - if (sigilBuff != null) sigilBuff.setArmor(null); + BrokenSeal.WarriorShield sealBuff = hero.buff(BrokenSeal.WarriorShield.class); + if (sealBuff != null) sealBuff.setArmor(null); - BrokenSeal sigil = new BrokenSeal(); + BrokenSeal seal = new BrokenSeal(); if (level() > 0){ - sigil.upgrade(); + seal.upgrade(); degrade(); } - GLog.i( Messages.get(Armor.class, "detach_sigil") ); + GLog.i( Messages.get(Armor.class, "detach_seal") ); hero.sprite.operate(hero.pos); - if (!sigil.collect()){ - Dungeon.level.drop(sigil, hero.pos); + if (!seal.collect()){ + Dungeon.level.drop(seal, hero.pos); } } } @@ -190,8 +190,8 @@ public class Armor extends EquipableItem { hero.belongings.armor = null; ((HeroSprite)hero.sprite).updateArmor(); - BrokenSeal.WarriorShield sigilBuff = hero.buff(BrokenSeal.WarriorShield.class); - if (sigilBuff != null) sigilBuff.setArmor(null); + BrokenSeal.WarriorShield sealBuff = hero.buff(BrokenSeal.WarriorShield.class); + if (sealBuff != null) sealBuff.setArmor(null); return true; diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties index 0801b3a4e..b66b8a5fc 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties +++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties @@ -76,7 +76,7 @@ actors.buffs.chill.desc=Not quite frozen, but still much too cold.\n\nChilled ta actors.buffs.combo.name=Combo actors.buffs.combo.combo=%d hit combo! -actors.butts.combo.bad_target=You must target an enemy in attack range. +actors.buffs.combo.bad_target=You must target an enemy in attack range. actors.buffs.combo.clobber_prompt=Select a target to Clobber\nStuns and knocks back actors.buffs.combo.clobber_desc=_Clobber_ is currently available. This attack _knocks an enemy back and stuns them,_ but deals reduced damage. It's excellent for buying a little time during a fight. actors.buffs.combo.cleave_prompt=Select a target to Cleave\nIf it kills, preserves combo @@ -219,9 +219,9 @@ actors.hero.hero.pain_resist=The pain helps you resist the urge to sleep. actors.hero.hero.revive=The ankh explodes with life-giving energy! actors.hero.heroclass.warrior=warrior -actors.hero.heroclass.warrior_perk1=The Warrior starts with a broken sigil which he can affix to armor. -actors.hero.heroclass.warrior_perk2=The Warrior will slowly generate a shield while he is wearing armor with the sigil affixed. -actors.hero.heroclass.warrior_perk3=The sigil can be moved between armor, carrying a single upgrade with it. +actors.hero.heroclass.warrior_perk1=The Warrior starts with a broken seal which he can affix to armor. +actors.hero.heroclass.warrior_perk2=The Warrior will slowly generate a shield while he is wearing armor with the seal affixed. +actors.hero.heroclass.warrior_perk3=The seal can be moved between armor, carrying a single upgrade with it. actors.hero.heroclass.warrior_perk4=Any piece of food restores some health when eaten. actors.hero.heroclass.warrior_perk5=Potions of Healing are identified from the beginning. diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties index df5166093..0ee817da6 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties +++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties @@ -30,7 +30,7 @@ items.armor.glyphs.viscosity$defereddamage.desc=While your armor's glyph has pro ###armor items.armor.armor.ac_detach=DETACH -items.armor.armor.detach_sigil=You detach the sigil from your armor. +items.armor.armor.detach_seal=You detach the seal from your armor. items.armor.armor.equip_cursed=The armor constricts around you painfully. items.armor.armor.identify=you are now familiar enough with your %s to identify it. It is %s. items.armor.armor.incompatible=Interaction of different types of magic has erased the glyph on this armor! @@ -809,9 +809,9 @@ items.brokenseal.name=Broken Seal items.brokenseal.ac_affix=AFFIX items.brokenseal.prompt=Select an armor items.brokenseal.unknown_armor=You must identify that armor first. -items.brokenseal.degraded_armor=That armor is in too poor a condition. -items.brokenseal.affix=You affix the sigil to your armor! -items.brokenseal.desc=A wax seal, affixed to armor as a smybol of valor. All the markings on the seal have worn off with age and it is broken in half down the middle.\n\nA memento from his home, the seal helps the warrior persevere. While wearing the seal the warrior will slowly generate shielding ontop of his health based on the quality of his armor.\n\nThe seal can be _affixed to armor,_ and moved between armors. It can carry a single upgrade with it. +items.brokenseal.degraded_armor=The condition of this armor is too poor. +items.brokenseal.affix=You affix the seal to your armor! +items.brokenseal.desc=A wax seal, affixed to armor as a symbol of valor. All the markings on the seal have worn off with age and it is broken in half down the middle.\n\nA memento from his home, the seal helps the warrior persevere. While wearing the seal the warrior will slowly generate shielding on top of his health based on the quality of his armor.\n\nThe seal can be _affixed to armor,_ and moved between armors. It can carry a single upgrade with it. items.dewdrop.name=dewdrop items.dewdrop.value=%+dHP diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java index 92f7ae4eb..9e38f234b 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSpriteSheet.java @@ -70,7 +70,7 @@ public class ItemSpriteSheet { public static final int BOMB = ROW2+5; public static final int HONEYPOT = ROW2+6; public static final int SHATTPOT = ROW2+7; - public static final int SIGIL = ROW2+8; + public static final int SEAL = ROW2+8; // Keys public static final int IRON_KEY = ROW2+9; public static final int GOLDEN_KEY = ROW2+10;