Don't Starve Revision History Viewer

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

prefabs/spiderhole.lua

91011121314
"spider_spitter", } local function ReturnChildren(inst) if inst.components.childspawner then for k,child in pairs(inst.components.childspawner.childrenoutside) do
91011121314151617181920212223
"spider_spitter", } SetSharedLootTable( 'spider_hole', { {'rocks', 1.00}, {'rocks', 1.00}, {'silk', 1.00}, {'spidergland', 0.25}, {'silk', 0.50}, }) local function ReturnChildren(inst) if inst.components.childspawner then for k,child in pairs(inst.components.childspawner.childrenoutside) do
140141142143144145146147148
inst.components.workable:SetOnFinishCallback(GoToBrokenState) inst:AddComponent("lootdropper") inst.components.lootdropper:SetLoot({"rocks", "rocks", "silk"}) inst.components.lootdropper:AddChanceLoot("spidergland", 0.25) inst.components.lootdropper:AddChanceLoot("silk", 0.5) inst.broken = false inst.OnSave = onsave
149150151152153154155
inst.components.workable:SetOnFinishCallback(GoToBrokenState) inst:AddComponent("lootdropper") inst.components.lootdropper:SetChanceLootTable('spider_hole') inst.broken = false inst.OnSave = onsave