Jump to content

[RE-REPORT*1] When the Pirate Boat unload, it kills everything above it, including flying mobs, bosses, ocean mobs and monkeys themselves and drop their loot on the water.


Cassielu
  • Pending

As the title says, it causes a lot of cursed trinkets and other stuff pile up at the spot where the pirate boat disappeared, turning subsequent passers-by into Wonkey.


Steps to Reproduce

1.Spawn a pirate ship.

2.Let any living thing on board.

3.Leave.

4.Return and find their loot floating on the water.

  • Like 2



User Feedback


The responsible code in scripts/components/piratespawner.lua:

-- Remove anything that's left.
ents = TheSim:FindEntities(x,y,z, inst.components.walkableplatform.platform_radius)
for _, ent in ipairs(ents) do
    if ent.components.health then
        --print("Kill:", ent)
        ent.components.health:Kill()
    else
         --print("Remove:", ent)
         ent:Remove()
    end
end

Needs to be more careful about what it's targeting and what to do with it.

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...