- hooked up ddr logic into game logic - TODO: "left_only" ddr needs tweak
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user