summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4502,12,-3179).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:21 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:21 +0200
commitddaee135d42ede8b4970f2c2cce973f5c03234f1 (patch)
treef14d2a66f18808b4414dbf4aaff5d48b1e4017bb /durt/nodes/(-4502,12,-3179).lua
parent5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971 (diff)
downloadluaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.tar.gz
luaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.tar.bz2
luaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.zip
State at 2020-09-28
Diffstat (limited to 'durt/nodes/(-4502,12,-3179).lua')
-rw-r--r--durt/nodes/(-4502,12,-3179).lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/durt/nodes/(-4502,12,-3179).lua b/durt/nodes/(-4502,12,-3179).lua
new file mode 100644
index 0000000..27ed074
--- /dev/null
+++ b/durt/nodes/(-4502,12,-3179).lua
@@ -0,0 +1,9 @@
+if event.type == "train" then
+ local rc = get_rc()
+ if rc:find("apprentice_unload") ~= nil then
+ rc = rc:gsub("apprentice_unload", "apprentice_load")
+ elseif rc:find("apprentice_load") ~= nil then
+ rc = rc:gsub("apprentice_load", "apprentice_leave")
+ end
+ set_rc(rc)
+end \ No newline at end of file