v0.2.2a: fixed a bug where winning the game above depth 26 would result in a deflated score.
This commit is contained in:
parent
48b1721bd8
commit
80819f1c7a
|
@ -93,7 +93,7 @@ public enum Rankings {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int score( boolean win ) {
|
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";
|
private static final String RECORDS = "records";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user