Rebrand
This commit is contained in:
parent
ec579650d7
commit
1f10b9c750
28 changed files with 134 additions and 220 deletions
|
|
@ -79,11 +79,11 @@ export class PlayerContainer {
|
|||
|
||||
private getTeamOfNextPlayer(isNpc = false): CharacterTeam {
|
||||
const players = isNpc ? this.players : this._players;
|
||||
const declaCount = players.filter((p) => p.team === CharacterTeam.decla).length;
|
||||
const blueCount = players.filter((p) => p.team === CharacterTeam.blue).length;
|
||||
const redCount = players.filter((p) => p.team === CharacterTeam.red).length;
|
||||
|
||||
if ((declaCount === redCount && Random.getRandom() >= 0.5) || declaCount < redCount) {
|
||||
return CharacterTeam.decla;
|
||||
if ((blueCount === redCount && Random.getRandom() >= 0.5) || blueCount < redCount) {
|
||||
return CharacterTeam.blue;
|
||||
} else {
|
||||
return CharacterTeam.red;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue