prefabs/houndmound.lua
121314151617
"houndstooth",
}
local function GetSpecialHoundChance()
local day = GetClock().numcycles
local chance = 0
121314151617181920212223242526
"houndstooth",
}
SetSharedLootTable( 'hound_mound',
{
{'houndstooth', 1.00},
{'houndstooth', 1.00},
{'houndstooth', 1.00},
{'redgem', 0.01},
{'bluegem', 0.01},
})
local function GetSpecialHoundChance()
local day = GetClock().numcycles
local chance = 0
111112113114115116117118119
---------------------
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetLoot({"houndstooth", "houndstooth", "houndstooth"})
inst.components.lootdropper:AddChanceLoot("redgem", 0.01)
inst.components.lootdropper:AddChanceLoot("bluegem", 0.01)
inst:AddComponent("combat")
inst.components.combat:SetOnHit(SpawnAllGuards)
120121122123124125126
---------------------
inst:AddComponent("lootdropper")
inst.components.lootdropper:SetChanceLootTable('hound_mound')
inst:AddComponent("combat")
inst.components.combat:SetOnHit(SpawnAllGuards)