Logic typessource
Used in StateMemory
Fields
arena_1
LogicArena1?
Handles create spawns and more, is cleared as soon as the winner is decided (on last player alive)
sourceblack_market
Logic?
Changes the camera bounds when you reach black market
sourcecity_of_gold_ankh_sacrifice
LogicCOGAnkhSacrifice?
All it does is it runs transition to Duat after time delay (sets the state next theme etc. and state.items for proper player respawn)
sourcediscovery_info
Logic?
black market, vlad, wet fur discovery, logic shows the toast
sourceghost_trigger
Logic?
It's absence is the only reason why ghost doesn't spawn at boss levels or CO
sourcetun_aggro
Logic?
Spawns tun at the door at 30s mark
sourcetutorial
LogicTutorial?
Handles dropping of the torch and rope in intro routine (first time play)
sourcewater_bubbles
LogicUnderwaterBubbles?
Only the bubbles that spawn from the floor (no border tiles, checks decoration flag), also spawn droplets falling from ceiling
Even without it, entities moving in water still spawn bubbles
sourceMethods
start_logic
function LogicList:start_logic(idx: LOGIC): any
idx: LOGIC
Returns any (may be nil)
This only properly constructs the base class
you may still need to initialise the parameters correctly
source