diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-18 15:45:52 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-18 15:45:52 -0400 |
commit | bc7486013da17071c180181085f64393964624d2 (patch) | |
tree | 01a1f2a2a8455230366199835d3328753285a1a2 /tools/gencode.js | |
parent | d0985b0efe668540b54fbbdd47986655e8cc683a (diff) | |
download | vijayanagara-bc7486013da17071c180181085f64393964624d2.tar.gz |
Better replace
Diffstat (limited to 'tools/gencode.js')
-rw-r--r-- | tools/gencode.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gencode.js b/tools/gencode.js index b962a07..63b5994 100644 --- a/tools/gencode.js +++ b/tools/gencode.js @@ -132,6 +132,16 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) { emit([ "auto_place", false, 0, true, line[1], line[2] ]) break + case "replace": + emit([ "replace", line[1], line[2], false, false]) + break + case "replace_rebel": + emit([ "replace", line[1], line[2], true, false]) + break + case "replace_choice": + emit([ "replace", line[1], line[2], false, true]) + break + case "log": case "loge": case "prompt": |