~starkingdoms/starkingdoms

ref: 9e32164288a31f45041247ae4744c6461472e226 starkingdoms/starkingdoms-client/src/planet_colors.ts -rw-r--r-- 198 bytes
9e321642 — ghostlyzsh stronger module break off 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
import { PlanetType } from "./protocol.ts";

export function planet_color(type: PlanetType): string {
  if (type === PlanetType.Earth) {
    return "limegreen";
  } else {
    return "white";
  }
}