feat: trigger logic implementation
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
Zoltan Timar
2026-03-05 20:26:23 +01:00
parent 3db1ae1064
commit 3f2df7d512
5 changed files with 141 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ Context = {}
--- * minigame_button_mash (table) Button mash minigame state (see Minigame.get_default_button_mash).<br/>
--- * minigame_rhythm (table) Rhythm minigame state (see Minigame.get_default_rhythm).<br/>
--- * meters (table) Meter values (see Meter.get_initial).<br/>
--- * triggers (table) Active trigger runtime state, keyed by trigger ID.<br/>
--- * stat_screen_active (boolean) Whether the stat screen overlay is currently shown.<br/>
--- * game (table) Current game progress state. Contains: `current_screen` (string) active screen ID, `current_situation` (string|nil) active situation ID.<br/>
function Context.initial_data()
@@ -35,6 +36,7 @@ function Context.initial_data()
minigame_rhythm = {},
meters = Meter.get_initial(),
timer = Timer.get_initial(),
triggers = {},
game = {
current_screen = "home",
current_situation = nil,

View File

@@ -13,4 +13,5 @@ Sprite = {}
Audio = {}
Focus = {}
Day = {}
Timer = {}
Timer = {}
Trigger = {}