v0.3.4: externalized weapon strings

This commit is contained in:
Evan Debenham
2016-01-03 17:52:26 -05:00
committed by Evan Debenham
parent 26b5fd7ac4
commit 77c583b6b1
26 changed files with 134 additions and 291 deletions
@@ -24,6 +24,8 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.shatteredpixel.shatteredpixeldungeon.sprites.MissileSprite;
@@ -113,14 +115,13 @@ public class Boomerang extends MissileWeapon {
@Override
public String desc() {
String info =
"Thrown to the enemy this flat curved wooden missile will return to the hands of its thrower.";
String info = super.desc();
switch (imbue) {
case LIGHT:
info += "\n\nIt was balanced to be lighter. ";
info += "\n\n" + Messages.get(Weapon.class, "lighter");
break;
case HEAVY:
info += "\n\nIt was balanced to be heavier. ";
info += "\n\n" + Messages.get(Weapon.class, "heavier");
break;
case NONE:
}