Skip to content

Commit 28842c0

Browse files
committed
Make illusory worms not hittable and not affect homing
Signed-off-by: Kevadroz <[email protected]>
1 parent 57fd58e commit 28842c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ local function genWormXML(worm)
114114
execute_every_n_frame = -1,
115115
execute_on_removed = true
116116
}))
117+
118+
if xml_worm.attr.tags then
119+
xml_worm.attr.tags = string.gsub(xml_worm.attr.tags, "hittable", "")
120+
xml_worm.attr.tags = string.gsub(xml_worm.attr.tags, "homing_target", "")
121+
local replacements = 1
122+
while replacements > 0 do
123+
xml_worm.attr.tags, replacements = string.gsub(xml_worm.attr.tags, ",,", ",")
124+
end
125+
end
117126
end
118127

119128
if ws_table.pursue then

0 commit comments

Comments
 (0)