From 80819f1c7a72054aad5cc2d63a883b1b000b4a5e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 5 Nov 2014 09:46:14 -0500 Subject: [PATCH] v0.2.2a: fixed a bug where winning the game above depth 26 would result in a deflated score. --- src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java b/src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java index 8954a5dec..65c798bb2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Rankings.java @@ -93,7 +93,7 @@ public enum Rankings { } private int score( boolean win ) { - return (Statistics.goldCollected + Dungeon.hero.lvl * Dungeon.depth * 100) * (win ? 2 : 1); + return (Statistics.goldCollected + Dungeon.hero.lvl * (win ? 26 : Dungeon.depth ) * 100) * (win ? 2 : 1); } private static final String RECORDS = "records";