Files
impostor/inc/decision/decision.sumphore_discussion.lua

29 lines
765 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 <= 5 then
Discussion.start("sumphore_disc_asc_" .. level, "game")
elseif level == 6 then
if Context.glitch_conversation_count >= 6 then
Discussion.start("sumphore_disc_asc_6", "game")
else
Discussion.start("sumphore_disc_asc_6_waiting", "game")
end
else
Discussion.start("homeless_guy", "game", 4)
end
end,
})