Skip to content

LogicList

Logic typessource

Used in StateMemory

Fields

apep_spawner

LogicApepTrigger?

Triggers and spawns Apep only in rooms set as ROOM_TEMPLATE.APEP

source

arena_1

LogicArena1?

Handles create spawns and more, is cleared as soon as the winner is decided (on last player alive)

source

arena_2

Logic?

source

arena_3

Logic?

Handles time end death

source

arena_alien_blast

LogicArenaAlienBlast?

source

arena_loose_bombs

LogicArenaLooseBombs?

source

basecamp_speedrun

LogicBasecampSpeedrun?

Keep track of time, player position passing official

source

black_market

Logic?

Changes the camera bounds when you reach black market

source

bubbler

LogicTiamatBubbles?

Spawn rising bubbles at Tiamat (position hardcoded)

source

city_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)

source

discovery_info

Logic?

black market, vlad, wet fur discovery, logic shows the toast

source

duat_bosses_spawner

Logic?

source

ghost_toast_trigger

LogicGhostToast?

source

ghost_trigger

Logic?

It's absence is the only reason why ghost doesn't spawn at boss levels or CO

source

jellyfish_trigger

Logic?

source

tun_aggro

Logic?

Spawns tun at the door at 30s mark

source

tun_moon_challenge

LogicMoonChallenge?

source

tun_pre_challenge

LogicTunPreChallenge?

source

tun_star_challenge

LogicStarChallenge?

source

tun_sun_challenge

LogicSunChallenge?

source

tusk_pleasure_palace

LogicTuskPleasurePalace?

Triggers aggro on everyone when non-high roller enters door

source

tutorial

LogicTutorial?

Handles dropping of the torch and rope in intro routine (first time play)

source

water_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

source

Methods

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

stop_logic

function LogicList:stop_logic(idx: LOGIC)
idx: LOGIC
function LogicList:stop_logic(log?: Logic)
log?: Logicoptional
source