- Fix Mulligan Message for Turn Position

This commit is contained in:
Sol
2013-03-27 02:39:21 +00:00
parent 4303720899
commit 9e0406bf86

View File

@@ -485,7 +485,7 @@ public class GameState {
public String getOrdinalPosition(Player player, Player startingPlayer) {
int startPosition = roIngamePlayers.indexOf(startingPlayer);
int position = roIngamePlayers.indexOf(player) + startPosition + 1;
int position = (roIngamePlayers.indexOf(player) + startPosition) % roIngamePlayers.size() + 1;
String[] sufixes = new String[] { "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th" };
switch (position % 100) {
case 11: