v0.2.2a: fixed a bug where winning the game above depth 26 would result in a deflated score.

This commit is contained in:
Evan Debenham 2014-11-05 09:46:14 -05:00
parent 48b1721bd8
commit 80819f1c7a

View File

@ -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";