prefabs/mushrooms.lua
2122232425262728
data.pickloot
}
local function dig_up(inst, chopper)
if inst.components.pickable and inst.components.pickable:CanBePicked() then
inst.components.lootdropper:SpawnLootPrefab(data.pickloot)
212223242526
data.pickloot
}
local function dig_up(inst, chopper)
if inst.components.pickable and inst.components.pickable:CanBePicked() then
inst.components.lootdropper:SpawnLootPrefab(data.pickloot)
444546474849
end
local function onpickedfn( inst )
inst.AnimState:PlayAnimation("picked")
inst.rain = 10 + math.random(10)
end
42434445464748495051
end
local function onpickedfn( inst )
if inst.growtask then
inst.growtask:Cancel()
inst.growtask = nil
end
inst.AnimState:PlayAnimation("picked")
inst.rain = 10 + math.random(10)
end