Fix longest road selection
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
022697a106
commit
b6bd8dfebf
@ -1297,7 +1297,7 @@ const calculateRoadLengths = (game, session) => {
|
||||
continue;
|
||||
}
|
||||
if (player.longestRoad > longestRoad) {
|
||||
longestPlayers = [ key ];
|
||||
longestPlayers = [ player ];
|
||||
longestRoad = player.longestRoad;
|
||||
} else if (game.players[key].longestRoad === longestRoad) {
|
||||
if (longestRoad >= 5) {
|
||||
@ -1306,7 +1306,7 @@ const calculateRoadLengths = (game, session) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (debug.road) console.log({ longestPlayers });
|
||||
console.log({ longestPlayers });
|
||||
|
||||
if (longestPlayers.length > 0) {
|
||||
if (longestPlayers.length === 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user