- added music and sounds to things
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

- hooked up ddr logic into game logic
- TODO: "left_only" ddr needs tweak
This commit is contained in:
2026-03-21 23:20:48 +01:00
parent 9a3c9ee28c
commit 6a33be82e9
13 changed files with 102 additions and 29 deletions

View File

@@ -4,17 +4,31 @@ Decision.register({
handle = function()
Meter.hide()
Util.go_to_screen_by_id("work")
MinigameDDRWindow.start("game", nil, {
on_win = function()
if (Context.minigame_ddr.special_mode_condition and Context.ascension.level == 1) then
local modes_for_ascension_levels = {}
modes_for_ascension_levels[0] = "normal"
modes_for_ascension_levels[1] = "only_special"
modes_for_ascension_levels[2] = "only_left"
modes_for_ascension_levels[3] = "only_nothing"
MinigameDDRWindow.start("game", "generated", {
on_win = function(game_context)
if (game_context.special_mode_condition and Context.ascension.level == 1) then
Context.should_ascend = true
elseif (game_context.special_mode_condition and Context.ascension.level == 2) then
Context.should_ascend = true
elseif (game_context.special_mode_condition and Context.ascension.level == 3) then
Context.should_ascend = true
elseif (game_context.special_mode_condition and Context.ascension.level == 4) then
Context.should_ascend = true
Context.minigame_ddr.special_mode_condition = false
end
Meter.show()
Util.go_to_screen_by_id("office")
Window.set_current("game")
Context.have_done_work_today = true
end,
special_mode = modes_for_ascension_levels[Ascension.get_level()]
})
end,
})