make leaderboard translucent, increase font size

This commit is contained in:
evanpelle
2024-10-17 16:26:25 -07:00
parent 8d3d9dfc4a
commit b4e0947455
2 changed files with 54 additions and 51 deletions
+2 -2
View File
@@ -1,4 +1,3 @@
import {EventBus} from "../EventBus";
import {Cell, Execution, MutableGame, MutablePlayer, Player, PlayerInfo, PlayerType, TerrainType, TerraNullius, Tile} from "../game/Game"
import {PseudoRandom} from "../PseudoRandom"
import {and, bfs, dist, simpleHash} from "../Util";
@@ -21,13 +20,14 @@ export class FakeHumanExecution implements Execution {
private isTraitor = false
constructor(private playerInfo: PlayerInfo, private cell: Cell, private strength: number) {
this.random = new PseudoRandom(simpleHash(playerInfo.id))
}
init(mg: MutableGame, ticks: number) {
this.mg = mg
if (this.random.chance(2)) {
if (this.random.chance(5)) {
this.isTraitor = true
}
}