summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-24 00:57:14 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 18:39:37 +0200
commitcabc26701c17b3875ac9baea957e32252f445874 (patch)
treeb29462deba8ee23b186f35d50cd0e3eed94e9819 /tools
parentea9dd06941674256b07c5353d39121c3983ab9b1 (diff)
downloadtime-of-crisis-cabc26701c17b3875ac9baea957e32252f445874.tar.gz
Pack data.
Support, mobs, and all province bits in "game.provinces". Rival emperors and barbarians in "game.barbarians". Castra in "game.legions".
Diffstat (limited to 'tools')
-rw-r--r--tools/genpieces.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/genpieces.js b/tools/genpieces.js
deleted file mode 100644
index 01d7edb..0000000
--- a/tools/genpieces.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var ix = 0
-
-function mk(name, n) {
- var a = ix
- var b = ix + n - 1
- console.log("const " + name + "_data = " + a)
- ix = b + 1
-}
-
-function size(name) {
- console.log("const " + name + "_size = " + (ix))
-}
-
-mk("province", 12)
-mk("legion", 33)
-mk("rival_emperor", 3)
-mk("barbarian_leader", 3)
-mk("alamanni", 10)
-mk("franks", 10)
-mk("goths", 10)
-mk("red_governor", 6)
-mk("red_general", 6)
-mk("blue_governor", 6)
-mk("blue_general", 6)
-size("data_2p")
-mk("nomads", 10)
-mk("yellow_governor", 6)
-mk("yellow_general", 6)
-size("data_3p")
-mk("sassanids", 10)
-mk("green_governor", 6)
-mk("green_general", 6)
-size("data_4p")