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.
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now