~starkingdoms/starkingdoms

ref: 70db4f750758cec0798a2c6bb840c696ea0951bf starkingdoms/starkingdoms-client/src/planet_colors.ts -rw-r--r-- 198 bytes
70db4f75TerraMaster85 I am at war with `bind` (3/x) (formatting (for real)) 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";
  }
}