From 178b18109b94c267da5ccb9d48f28057ca65ddcd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 17 Jul 2023 11:55:50 +0200 Subject: Remove cruft. --- rules.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 25a35e0..eb91a10 100644 --- a/rules.js +++ b/rules.js @@ -45,28 +45,6 @@ const TILE_RED = 36 const TILE_GREEN = 48 const TILE_UNKNOWN = 60 -const COUNT_NAME = [ - "no", - "one", - "two", - "three", - "four", - "five", - "six", - "seven", - "eight", - "nine", - "ten", - "eleven", - "twelve", -] - -function count_name(n) { - if (n > 12) - return String(n) - return COUNT_NAME[n] -} - function space_name(s) { switch (s) { case S_DRAGON_1: return "Dragon" @@ -80,12 +58,6 @@ function space_name(s) { } } -const XTILE_NAME_UC = [ "Gold", "Blue", "White", "Red", "Green" ] -const XTILE_NAME_LC = [ "gold", "blue", "white", "red", "green" ] - -const TILE_NAME_UC = [ "Cloth", "Beasts", "Piety", "Tournaments", "Jewels" ] -const TILE_NAME_LC = [ "cloth", "beasts", "piety", "tournaments", "jewels" ] - const TILE_NAME_CODE = [ "G", "B", "W", "R", "J", "K" ] const TILE_NAME_CODE_X = [ [], [], [], [], [], [] ] @@ -295,12 +267,6 @@ exports.setup = function (seed, scenario, options) { // === HANDS AND COURTS === -function rival_name() { - if (game.active === RED) - return BLUE - return RED -} - function rival_court() { if (game.active === RED) return game.blue_court -- cgit v1.2.3