Jump to content

Added loot to the new worm mob


Recommended Posts

22 minutes ago, Snapchrap said:

Ive killed 10 and nothing, can I get a picture?

I think it is a joke? Can't find anything in the game files:

SetSharedLootTable("worm_boss",
{
    { "monstermeat",  1.00 },
    { "monstermeat",  1.00 },
    { "monstermeat",  1.00 },
    { "monstermeat",  1.00 },
    { "monstermeat",  1.00 },
    { "monstermeat",  0.66 },
    { "monstermeat",  0.66 },
    { "wormlight",    1.00 },
})

-----------------------------------------------------------------------------------------------------------------------

local function GenerateLoot(inst)
    local loottable = {
        boneshard = 40,
        redgem = 2,
        bluegem = 2,
        thulecite = 1,
        rocks = 8,
        purplegem = 2,
    }

    local choice = weighted_random_choice(loottable)

    if choice ~= nil then
        inst.components.lootdropper:FlingItem(SpawnPrefab(choice))
    end
end

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...