v0.3.4: externalized misc item strings

This commit is contained in:
Evan Debenham
2016-01-03 19:43:24 -05:00
committed by Evan Debenham
parent 106ec11708
commit 95ab06888c
19 changed files with 98 additions and 207 deletions
@@ -38,9 +38,6 @@ import com.watabou.utils.Random;
public class Gold extends Item {
private static final String TXT_COLLECT = "Collect gold coins to spend them later in a shop.";
private static final String TXT_INFO = "A pile of %d gold coins. " + TXT_COLLECT;
private static final String TXT_INFO_1 = "One gold coin. " + TXT_COLLECT;
private static final String TXT_VALUE = "%+d";
{
@@ -91,18 +88,6 @@ public class Gold extends Item {
return true;
}
@Override
public String info() {
switch (quantity) {
case 0:
return TXT_COLLECT;
case 1:
return TXT_INFO_1;
default:
return Utils.format( TXT_INFO, quantity );
}
}
@Override
public Item random() {
quantity = Random.Int( 30 + Dungeon.depth * 10, 60 + Dungeon.depth * 20 );