prefabs/beefalo.lua
16171819202122
"horn",
}
local loot = {"meat","meat","meat","meat","beefalowool","beefalowool","beefalowool"}
local sounds =
{
1617181920212223242526272829303132
"horn",
}
SetSharedLootTable( 'beefalo',
{
{'meat', 1.00},
{'meat', 1.00},
{'meat', 1.00},
{'meat', 1.00},
{'beefalowool', 1.00},
{'beefalowool', 1.00},
{'beefalowool', 1.00},
{'horn', 0.33},
})
local sounds =
{
147148149150151152153154
inst.components.health:SetMaxHealth(TUNING.BEEFALO_HEALTH)
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetLoot(loot)
inst.components.lootdropper:AddChanceLoot("horn", 0.33)
inst:AddComponent("inspectable")
inst.components.inspectable.getstatus = GetStatus
157158159160161162163
inst.components.health:SetMaxHealth(TUNING.BEEFALO_HEALTH)
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetChanceLootTable('beefalo')
inst:AddComponent("inspectable")
inst.components.inspectable.getstatus = GetStatus