Jump to content

Lighter unable to use for cooking


Tykvesh
  • Pending

Only Willow (who has "expertchef" tag) can cook with it, but It's not a feature, it's a bug.

Lighter has this function:

local function oncook(inst, product, chef)
    if not chef:HasTag("expertchef") then
        --burn
        if chef.components.health ~= nil then
            chef.components.health:DoFireDamage(5, inst, true)
            chef:PushEvent("burnt")
        end
        if inst.components.fueled ~= nil then
            inst.components.fueled:DoDelta(-.05 * inst.components.fueled.maxfuel)
        end
    elseif inst.components.fueled ~= nil then
        inst.components.fueled:DoDelta(-.01 * inst.components.fueled.maxfuel)
    end
end

Which mean that non-Willow players still should be able to use it for cooking,

but there are lines 307, 316 and 775 in componentactions and line 18 in cooker component,

..and (not self.inst:HasTag("dangerouscooker") or chef:HasTag("expertchef"))..

which prevent cook action from appearing if cooker (lighter) has tag "dangerouscooker" and player doesn't have "expertchef" tag.


Steps to Reproduce
Try to cook with lighter as a non-Willow character



User Feedback


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...