mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-27 14:01:06 +00:00
Changed picking rotation
* Teams are now picked 1-2-1-1-1-1-1-1-1-1
This commit is contained in:
parent
422b87d18a
commit
ec17c604b9
1 changed files with 21 additions and 21 deletions
|
@ -259,11 +259,11 @@ Gather.prototype.pickingTurn = function () {
|
|||
let alienCount = this.aliens().length;
|
||||
let marineCount = this.marines().length;
|
||||
let total = marineCount + alienCount;
|
||||
if (alienCount + marineCount === 2) return "marine";
|
||||
if (marineCount > alienCount) return "alien";
|
||||
if (total === 2) return "marine"; // first pick for marines
|
||||
if (total === 4) return "alien"; // first pick round aliens got to picks
|
||||
if (marineCount > alienCount) return "alien"; // applies only after first pick
|
||||
if (marineCount < alienCount) return "marine";
|
||||
if (total % 4 === 0) return "alien";
|
||||
return "marine";
|
||||
return "alien"; // after aliens picked two whenever numbers are equal its aliens turn again
|
||||
};
|
||||
|
||||
// Moves player to marine
|
||||
|
|
Loading…
Reference in a new issue