prefabs/stalagmite_tall.lua
121314151617
"yellowgem",
}
local function workcallback(inst, worker, workleft)
local pt = Point(inst.Transform:GetWorldPosition())
if workleft <= 0 then
1213141516171819202122232425262728293031323334353637383940414243444546
"yellowgem",
}
SetSharedLootTable( 'stalagmite_tall_full_rock',
{
{'rocks', 1.00},
{'rocks', 1.00},
{'goldnugget', 1.00},
{'flint', 1.00},
{'goldnugget', 0.25},
{'flint', 0.60},
{'redgem', 0.05},
{'log', 0.05},
})
SetSharedLootTable( 'stalagmite_tall_med_rock',
{
{'rocks', 1.00},
{'rocks', 1.00},
{'flint', 1.00},
{'goldnugget', 0.15},
{'flint', 0.60},
})
SetSharedLootTable( 'stalagmite_tall_low_rock',
{
{'rocks', 1.00},
{'flint', 1.00},
{'goldnugget', 0.15},
{'flint', 0.30},
})
local function workcallback(inst, worker, workleft)
local pt = Point(inst.Transform:GetWorldPosition())
if workleft <= 0 then
69707172737475767778798081
local function fullrock()
local inst = commonfn()
inst.components.lootdropper:SetLoot({"rocks", "rocks", "goldnugget", "flint"})
inst.components.lootdropper:AddChanceLoot("goldnugget", 0.25)
inst.components.lootdropper:AddChanceLoot("flint", 0.6)
inst.components.lootdropper:AddChanceLoot("bluegem", 0.05)
inst.components.lootdropper:AddChanceLoot("redgem", 0.05)
inst.AnimState:PlayAnimation("full_"..inst.type)
return inst
end
9899100101102103104105
local function fullrock()
local inst = commonfn()
inst.components.lootdropper:SetChanceLootTable('stalagmite_tall_full_rock')
inst.AnimState:PlayAnimation("full_"..inst.type)
return inst
end
848586878889909192
local inst = commonfn()
inst.components.workable:SetWorkLeft(TUNING.ROCKS_MINE_MED)
inst.AnimState:PlayAnimation("med_" .. inst.type)
inst.components.lootdropper:SetLoot({"rocks", "rocks", "flint"})
inst.components.lootdropper:AddChanceLoot("goldnugget", 0.15)
inst.components.lootdropper:AddChanceLoot("flint", 0.6)
return inst
end
108109110111112113114
local inst = commonfn()
inst.components.workable:SetWorkLeft(TUNING.ROCKS_MINE_MED)
inst.AnimState:PlayAnimation("med_" .. inst.type)
inst.components.lootdropper:SetChanceLootTable('stalagmite_tall_med_rock')
return inst
end
9596979899100101102103
local inst = commonfn()
inst.components.workable:SetWorkLeft(TUNING.ROCKS_MINE_LOW)
inst.AnimState:PlayAnimation("low_" .. inst.type)
inst.components.lootdropper:SetLoot({"rocks", "flint"})
inst.components.lootdropper:AddChanceLoot("goldnugget", 0.15)
inst.components.lootdropper:AddChanceLoot("flint", 0.3)
return inst
end
117118119120121122123
local inst = commonfn()
inst.components.workable:SetWorkLeft(TUNING.ROCKS_MINE_LOW)
inst.AnimState:PlayAnimation("low_" .. inst.type)
inst.components.lootdropper:SetChanceLootTable('stalagmite_tall_low_rock')
return inst
end