Files
impostor/inc/decision/decision.sumphore_discussion.lua
mr.one 4cc0025f5e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
sort-of progress, lots of bugs
2026-04-28 23:42:34 +02:00

26 lines
695 B
Lua

Decision.register({
id = "sumphore_discussion",
label = function()
if Context.have_met_sumphore then
return "Talk to Sumphore"
end
return "Talk to the homeless guy"
end,
handle = function()
if not Context.have_met_sumphore then
Discussion.start("homeless_guy", "game")
return
end
local level = Ascension.get_level()
if level >= 1 and level <= 3 then
Discussion.start("sumphore_disc_asc_" .. level, "game")
elseif level == 7 then
local g = math.min(CommuteGlitch.get_level(), 7)
Discussion.start("sumphore_disc_cg_" .. g, "game")
else
Discussion.start("sumphore_disc_asc_" .. level, "game")
end
end,
})