feat: added ascension logic 4-7, added new decision (eating fast food), indicating meter changes better, added discussions (needs more work, but meh ... fine like this)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -4,10 +4,17 @@ Decision.register({
|
||||
handle = function()
|
||||
local level = Ascension.get_level()
|
||||
local disc_id = "coworker_disc_0"
|
||||
-- TODO: Add more discussions for levels above 3
|
||||
if level >= 1 and level <= 3 then
|
||||
if level >= 1 and level <= 5 then
|
||||
local suffix = Context.have_done_work_today and ("_asc_" .. level) or ("_" .. level)
|
||||
disc_id = "coworker_disc" .. suffix
|
||||
elseif level == 6 then
|
||||
if not Context.glitch_conversation_done_today and Context.glitch_conversation_count < 6 then
|
||||
Context.glitch_conversation_done_today = true
|
||||
Context.glitch_conversation_count = Context.glitch_conversation_count + 1
|
||||
Glitch.show()
|
||||
Discussion.start("coworker_disc_asc_6_" .. Context.glitch_conversation_count, "game")
|
||||
return
|
||||
end
|
||||
end
|
||||
Discussion.start(disc_id, "game")
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user