summaryrefslogtreecommitdiff
path: root/durt/nodes/(446,-4,-201).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(446,-4,-201).lua')
-rw-r--r--durt/nodes/(446,-4,-201).lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/durt/nodes/(446,-4,-201).lua b/durt/nodes/(446,-4,-201).lua
new file mode 100644
index 0000000..028a50e
--- /dev/null
+++ b/durt/nodes/(446,-4,-201).lua
@@ -0,0 +1,9 @@
+if event.type == "train" then
+ local rc = get_rc()
+ if rc:find("d23a_unload") ~= nil then
+ rc = rc:gsub("d23a_unload", "d23a_load")
+ elseif rc:find("d23a_load") ~= nil then
+ rc = rc:gsub("d23a_load", "d23a_leave")
+ end
+ set_rc(rc)
+end \ No newline at end of file