feat: added mm discussions
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Zoltan Timar
2026-03-20 18:23:17 +01:00
parent d899a74411
commit 3e6fa41021
5 changed files with 113 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ Decision.register({
elseif Ascension.get_level() == 0 then elseif Ascension.get_level() == 0 then
Discussion.start("homeless_guy", "game", 4) Discussion.start("homeless_guy", "game", 4)
else else
Discussion.start("sumphore_day_3", "game") Discussion.start("sumphore_asc_1_a", "game")
end end
end, end,
}) })

View File

@@ -0,0 +1,21 @@
Discussion.register({
id = "coworker_asc_1",
steps = {
{
question = "Normann you look weird and unfocused. You are usually locked in and not like this, what's up?",
answers = {
{ label = "Nothing it's just, I noticed some bugs in the simulation, maybe.", next_step = 2 },
{ label = "Same old - same old", next_step = nil },
},
},
{
question = "What kind of bugs?",
answers = {
{ label = "Some of the data is not being processed correctly, I think.", next_step = nil },
{ label = "I don't know, I'm not a programmer.", next_step = nil, on_select = function()
Meter.add("ism", 10)
end },
},
},
},
})

View File

@@ -1,5 +1,5 @@
Discussion.register({ Discussion.register({
id = "sumphore_day_3", id = "sumphore_asc_1_a",
steps = { steps = {
{ {
question = "Are you still seeking the ox?", question = "Are you still seeking the ox?",
@@ -17,6 +17,48 @@ Discussion.register({
}, },
}) })
Discussion.register({
id = "sumphore_asc_1_b",
steps = {
{
question = "How's work? Your face looks strange",
answers = {
{ label = "I just really need to take a break.", next_step = 2 },
{ label = "Not sure what you mean.", next_step = nil },
},
},
{
question = "Are you seeing things?",
answers = {
{ label = "How did you know ?", next_step = 3 },
{ label = "I'm not sure what you mean.", next_step = nil },
},
},
{
question = "Come have a drink, I could tell you some stories.",
answers = {
{ label = "No, drink makes you stupid and I need to be in top shape.", next_step = 4, on_select = function()
Meter.add("ism", 10)
end },
{ label = "I could use a drink.", next_step = nil, on_select = function()
Meter.add("bm", 10)
end },
},
},
{
question = "Always trying to do the right thing, huh?",
answers = {
{ label = "I've never thought of that up till now.", next_step = nil, on_select = function()
Meter.add("ism", 5)
end },
{ label = "Exactly.", next_step = nil, on_select = function()
Meter.add("wpm", 10)
end },
},
},
},
})
Discussion.register({ Discussion.register({
id = "homeless_guy", id = "homeless_guy",

View File

@@ -1,11 +1,11 @@
--- @section TitleIntroWindow --- @section TitleIntroWindow
TitleIntroWindow.timer = 180 -- 3 seconds at 60fps TitleIntroWindow.timer = 180 -- 3 seconds at 60fps
TitleIntroWindow.text = [[ TitleIntroWindow.text = [[
## ### ### ### ### ### ### ### ## # # ## ### ### ### ### ### ### ### # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # #
# # ### ### # # # # # ### # # # # # ### ### # # # # # ### # #
# # # # # # # # # # # # # # # # # # # # # # # # #
## ### # ### # # ### # ### ## # ## ### # ### # # ### # ### ## #
# # ### ### ## # # # # ### ### ## # #
## # # # # # # ## # ## # # # # # # ## #

View File

@@ -4,14 +4,49 @@ local STATE_TEXT = "text"
local STATE_DAY = "day" local STATE_DAY = "day"
local STATE_CHOICE = "choice" local STATE_CHOICE = "choice"
local DEFAULT_TEXT = [[ local ASC_01_TEXT = [[
Misterious man appears Normann seems to be in line,
during your sleep. and stays seeking for oxes
within the confines.
...
Very good.
]]
He says nothing. local ASC_12_TEXT = [[
He doesn't need to. We have a problem!
...
Normann formed his first thought.
...
He saw the tracks.
]]
local ASC_23_TEXT = [[
Not good, not terrible.
...
Normann caught his glimpse of another way
*quite literally*
...
if this continues,
...
we will lose control.
]]
local ASC_34_TEXT = [[
There is no turning back now for Norman.
...
He caught on.
...
I hoped it would never come to this...
]]
He says nothing. --[[ Norman speaks for the first time during MM screen ]]
local ASC_45_TEXT = [[
Wait, who are you?
...
*silence*
...
Why am I seeing this?
...
*silence*
...
]] ]]
local state = STATE_TEXT local state = STATE_TEXT
@@ -23,7 +58,7 @@ local text_done = false
local text_done_timer = 0 local text_done_timer = 0
local TEXT_DONE_HOLD_FRAMES = 120 local TEXT_DONE_HOLD_FRAMES = 120
local selected_choice = 1 local selected_choice = 1
local text = DEFAULT_TEXT local text = ASC_01_TEXT
local day_text_override = nil local day_text_override = nil
local on_text_complete = nil local on_text_complete = nil
local show_mysterious_screen = true local show_mysterious_screen = true
@@ -59,7 +94,7 @@ function MysteriousManWindow.start(options)
text_done = false text_done = false
text_done_timer = 0 text_done_timer = 0
selected_choice = 1 selected_choice = 1
text = options.text or DEFAULT_TEXT text = options.text or ASC_01_TEXT
local line_count = 1 local line_count = 1
for _ in string.gmatch(text, "\n") do line_count = line_count + 1 end for _ in string.gmatch(text, "\n") do line_count = line_count + 1 end
local text_block_h = line_count * 8 local text_block_h = line_count * 8