Don't Starve Revision History Viewer

Comparing Six Feet Under (Rev 86935) to All's Well That Maxwell (Rev 88237)

standardcomponents.lua

9899100101102103104
inst.components.burnable:SetFXLevel(1) inst.components.burnable:SetBurnTime(6) inst.components.burnable.canlight = false inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 0), sym) MakeSmallPropagator(inst) inst.components.propagator.acceptsheat = false end
9899100101102103104
inst.components.burnable:SetFXLevel(1) inst.components.burnable:SetBurnTime(6) inst.components.burnable.canlight = false inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 1), sym) MakeSmallPropagator(inst) inst.components.propagator.acceptsheat = false end
108109110111112113114
inst.components.burnable:SetFXLevel(2) inst.components.burnable.canlight = false inst.components.burnable:SetBurnTime(8) inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 0), sym) MakeSmallPropagator(inst) inst.components.propagator.acceptsheat = false end
108109110111112113114
inst.components.burnable:SetFXLevel(2) inst.components.burnable.canlight = false inst.components.burnable:SetBurnTime(8) inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 1), sym) MakeSmallPropagator(inst) inst.components.propagator.acceptsheat = false end
118119120121122123124
inst.components.burnable:SetFXLevel(3) inst.components.burnable.canlight = false inst.components.burnable:SetBurnTime(10) inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 0), sym) MakeLargePropagator(inst) inst.components.propagator.acceptsheat = false end
118119120121122123124
inst.components.burnable:SetFXLevel(3) inst.components.burnable.canlight = false inst.components.burnable:SetBurnTime(10) inst.components.burnable:AddBurnFX(burnfx.character, offset or Vector3(0, 0, 1), sym) MakeLargePropagator(inst) inst.components.propagator.acceptsheat = false end
284285286287288289290291292293294295296297298299300301302303304
end end local function OnSnowCoverChange(inst, thresh) thresh = thresh or .2 local snow_cover = GetSeasonManager():GetSnowPercent() if snow_cover > thresh then inst.AnimState:Show("snow") else inst.AnimState:Hide("snow") end end function MakeSnowCovered(inst, thresh) if not GetSeasonManager() then return end thresh = thresh or .02 inst.AnimState:OverrideSymbol("snow", "snow", "snow") inst:ListenForEvent("snowcoverchange", function() OnSnowCoverChange(inst, thresh) end, GetWorld()) OnSnowCoverChange(inst, thresh) end
284285286287288289290291292293294295296297298
end end function MakeSnowCovered(inst) if not GetSeasonManager() then return end inst.AnimState:OverrideSymbol("snow", "snow", "snow") inst:AddTag("SnowCovered") if GetSeasonManager().ground_snow_level < SNOW_THRESH then inst.AnimState:Hide("snow") else inst.AnimState:Show("snow") end end