Jump to content

Tar Lamp cannot ignite mobs like Torch and Willow Lighter do.


KXWl1
  • DLC VERSION - IMPORTANT!: Shipwrecked, Hamlet Fixed

Tar Lamp cannot ignite mobs like Torch and Willow Lighter do.

Wrong code:

    
    inst:AddComponent("weapon")
    inst.components.weapon:SetDamage(TUNING.LIGHTER_DAMAGE)
    inst.components.weapon:SetAttackCallback(
        function(attacker, target)
            if target.components.burnable then
                if math.random() < TUNING.LIGHTER_ATTACK_IGNITE_PERCENT*target.components.burnable.flammability then
                    target.components.burnable:Ignite()
                end
            end
        end
    )

should add "inst"


Steps to Reproduce

1. Tar Lamp equip

2. Attack somthing burnable (such as spider) with this, many times.

3. Never see the mob burning.




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