Class "LootList"⚓︎
Constructors⚓︎
LootList ()⚓︎
LootList LootList ( )⚓︎
Returns a table of LootListEntries contained in the LootList
.
Functions⚓︎
GetEntries ()⚓︎
LootListEntry[] GetEntries ( )⚓︎
Returns a table of LootListEntries contained in the LootList
.
PushEntry ()⚓︎
void PushEntry ( EntityType Type, int Variant, int SubType, int Seed = Random(), RNG RNG = nil )⚓︎
While usually reserved for chests and sacks that give pickups like hearts, bombs, etc, every EntityPickup
has a LootList
and you can push any type, variant, and subtype as a LootListEntry.
mod:AddCallback(ModCallbacks.MC_PRE_PICKUP_GET_LOOT_LIST, mod.onPrePickupGetLootList)
Creates and pushes a LootListEntry into the LootList
.
local lootList = LootList()
local mod = RegisterMod("Delirium Unboxing", 1)
function mod:onPrePickupGetLootList(pickup, shouldAdvance)
end
1 2 3 4 5 |
|