Jump to content

Torches thrown by Wilson's Torch Toss skill aren't protected from rain by Umbralla domes


hoxi
  • Fixed

They correctly check if their owner has a rainimmunity component, but not if they themselves have one.

local function onupdatefueledraining(inst)
    local owner = inst.components.inventoryitem ~= nil and inst.components.inventoryitem.owner or nil
    inst.components.fueled.rate =
        owner ~= nil and
		(owner.components.sheltered ~= nil and owner.components.sheltered.sheltered or owner.components.rainimmunity ~= nil) and
        (inst._fuelratemult or 1) or
        (1 + TUNING.TORCH_RAIN_RATE * TheWorld.state.precipitationrate) * (inst._fuelratemult or 1)
end

Steps to Reproduce
  1. Wait for rain or force it in some way.
  2. Drop and activate an umbralla.
  3. Toss a torch inside the umbralla's dome radius, and another one outside.
  4. Observe how they'll go out about around the same time.



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