diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-01-16 20:47:17 -0500 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-01-16 20:47:17 -0500 |
commit | a259fb59db9718c4d2ae41c9fa7e75134303b638 (patch) | |
tree | be4915c141834847d6b616e235312bec8b7788f6 /tools | |
parent | ccb16006adbe3fbfc0950da33081e7b97cc8e2b5 (diff) | |
download | vijayanagara-a259fb59db9718c4d2ae41c9fa7e75134303b638.tar.gz |
Event 33
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gencode.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gencode.js b/tools/gencode.js index d4d8d23..d155140 100644 --- a/tools/gencode.js +++ b/tools/gencode.js @@ -91,6 +91,13 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) { emit([ "piece", true, 0, line[1], "(p,s)=>" + line.slice(2).join(" ") ]) break + case "resources": + emit(["resources", false, line[1], line[2]]) + break + case "resources_opt": + emit(["resources", true, line[1], line[2]]) + break + case "shipment": emit([ "shipment", false, line[1], line[1], "(p,s)=>" + line.slice(2).join(" ") ]) break |