Jump to content

Grabbing Vine's attack drops non-food items out of inventory


KXWl1
  • DLC VERSION - IMPORTANT!: Hamlet Fixed

When something (mainly the Player) is attacked by the Grabbing Vines in the Deep Rainforest, Grabbing Vine will try to steal any item, But this is not consistent in the component 'Thief' (line27-40):

            if food then
                item = victim.components.inventory:FindItem(
                    function(item)
                        return self.inst.components.eater:AbleToEat(item)
                        and not item:HasTag("nosteal")
                        or not (item.components.inventoryitem:IsHeld() and self.inst:HasTag("cannotstealequipped"))
                    end)               
            else
                item = victim.components.inventory:FindItem(
                    function(item)
                        return not item:HasTag("nosteal")
                        or not (item.components.inventoryitem:IsHeld() and self.inst:HasTag("cannotstealequipped"))
                    end)        
            end

In grabbing_vine line 149:

inst.components.combat.onhitotherfn = function(inst, other, damage) inst.components.thief:StealItem(other, nil, nil, true) end

 


Steps to Reproduce

1. c_spawn('grabbing_vine')

2. c_give('spear'), and then get attacked by grabbing_vine.

3. the spear drops, but the spear is not a thing that grabbing_vine can eat.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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...