diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Challenges.java b/src/com/shatteredpixel/shatteredpixeldungeon/Challenges.java index dd128e0d2..b335a1b91 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Challenges.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Challenges.java @@ -30,14 +30,14 @@ public class Challenges { public static final int DARKNESS = 32; public static final int NO_SCROLLS = 64; - public static final String[] NAMES = { - "On diet", - "Faith is my armor", - "Pharmacophobia", - "Barren land", - "Swarm intelligence", - "Into darkness", - "Forbidden runes" + public static final String[] NAME_IDS = { + "no_food", + "no_armor", + "no_healing", + "no_herbalism", + "swarm_intelligence", + "darkness", + "no_scrolls" }; public static final int[] MASKS = { diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/messages.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/messages.properties index 586eca139..a26680910 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/messages.properties +++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/messages.properties @@ -697,4 +697,12 @@ badges$badge.games_played_3=500 games played badges$badge.games_played_4=2000 games played badges$badge.happy_end=Happy end badges$badge.champion=Challenge won -badges$badge.supporter=Thanks for your support! \ No newline at end of file +badges$badge.supporter=Thanks for your support! + +challenges.no_food=On diet +challenges.no_armor=Faith is my armor +challenges.no_healing=Pharmacophobia +challenges.no_herbalism=Barren land +challenges.swarm_intelligence=Swarm intelligence +challenges.darkness=Into darkness +challenges.no_scrolls=Forbidden runes \ No newline at end of file diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndChallenges.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndChallenges.java index 8c730d864..fee55a341 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndChallenges.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndChallenges.java @@ -22,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.windows; import java.util.ArrayList; +import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.watabou.noosa.BitmapText; import com.shatteredpixel.shatteredpixeldungeon.Challenges; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; @@ -57,9 +58,9 @@ public class WndChallenges extends Window { boxes = new ArrayList<CheckBox>(); float pos = TTL_HEIGHT; - for (int i=0; i < Challenges.NAMES.length; i++) { + for (int i=0; i < Challenges.NAME_IDS.length; i++) { - CheckBox cb = new CheckBox( Challenges.NAMES[i] ); + CheckBox cb = new CheckBox( Messages.get(Challenges.class, Challenges.NAME_IDS[i]) ); cb.checked( (checked & Challenges.MASKS[i]) != 0 ); cb.active = editable;