Skip to content

Commit

Permalink
Make illusory worms not hittable and not affect homing
Browse files Browse the repository at this point in the history
Signed-off-by: Kevadroz <kevinfdezdominguez@gmail.com>
  • Loading branch information
Kevadroz committed Jun 14, 2024
1 parent 57fd58e commit 28842c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ local function genWormXML(worm)
execute_every_n_frame = -1,
execute_on_removed = true
}))

if xml_worm.attr.tags then
xml_worm.attr.tags = string.gsub(xml_worm.attr.tags, "hittable", "")
xml_worm.attr.tags = string.gsub(xml_worm.attr.tags, "homing_target", "")
local replacements = 1
while replacements > 0 do
xml_worm.attr.tags, replacements = string.gsub(xml_worm.attr.tags, ",,", ",")
end
end
end

if ws_table.pursue then
Expand Down

0 comments on commit 28842c0

Please sign in to comment.