prefabs/player_common.lua
767778798081
"book_brimstone",
"pine_needles",
"reticule",
}
if starting_inventory then
767778798081828384
"book_brimstone",
"pine_needles",
"reticule",
"shovel_dirt",
"mining_fx"
}
if starting_inventory then
120121122123124125126
minimap:SetPriority( 10 )
local lightwatch = inst.entity:AddLightWatcher()
lightwatch:SetLightThresh(.2)
lightwatch:SetDarkThresh(.05)
inst:AddTag("player")
123124125126127128129
minimap:SetPriority( 10 )
local lightwatch = inst.entity:AddLightWatcher()
lightwatch:SetLightThresh(.075)
lightwatch:SetDarkThresh(.05)
inst:AddTag("player")
156157158159160161162
inst:AddComponent("sanitymonsterspawner")
inst:AddComponent("autosaver")
------
inst:AddComponent("health")
159160161162163164165166167
inst:AddComponent("sanitymonsterspawner")
if PLATFORM ~= "PS4" then
inst:AddComponent("autosaver")
end
------
inst:AddComponent("health")
290291292293294295296297
inst.components.talker:Say(GetActionFailString(inst.prefab, data.action.action.id, data.reason))
end)
if customfn then
customfn(inst)
end
295296297298299300301302
inst.components.talker:Say(GetActionFailString(inst.prefab, data.action.action.id, data.reason))
end)
inst.CanExamine = function() return not inst.beaver end
if customfn then
customfn(inst)
end