bugfixes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Zoltan Timar
2026-04-29 16:41:18 +02:00
parent 3e31398d9d
commit b5596bbbe0
5 changed files with 26 additions and 7 deletions

View File

@@ -10,11 +10,21 @@ Decision.register({
return Ascension.get_level() < 8 return Ascension.get_level() < 8
end, end,
handle = function() handle = function()
local level = Ascension.get_level()
if level == 0 then
if Context.have_met_sumphore then
Discussion.start("homeless_guy", "game", 4)
else
Discussion.start("homeless_guy", "game")
end
return
end
if not Context.have_met_sumphore then if not Context.have_met_sumphore then
Discussion.start("homeless_guy", "game") Discussion.start("homeless_guy", "game")
return return
end end
local level = Ascension.get_level()
if level >= 1 and level <= 5 then if level >= 1 and level <= 5 then
Discussion.start("sumphore_disc_asc_" .. level, "game") Discussion.start("sumphore_disc_asc_" .. level, "game")

View File

@@ -21,7 +21,7 @@ local FADE_COLORS = nil
function Ascension.get_initial() function Ascension.get_initial()
_increased_this_cycle = false _increased_this_cycle = false
return { return {
level = 8, -- FYI: change this to test ascension levels without having to play through them level = 0,
} }
end end

View File

@@ -407,7 +407,7 @@ Screen.register({
spr(304, nx, ny + 64, Config.colors.transparent, 4) spr(304, nx, ny + 64, Config.colors.transparent, 4)
spr(305, nx + 32, ny + 64, Config.colors.transparent, 4) spr(305, nx + 32, ny + 64, Config.colors.transparent, 4)
end end
elseif show_mysterious_screen then elseif show_mysterious_screen and not break_mode then
MysteriousManScreen.draw_background() MysteriousManScreen.draw_background()
end end
@@ -431,7 +431,7 @@ Screen.register({
) )
elseif state == STATE_CHOICE then elseif state == STATE_CHOICE then
if break_mode then if break_mode then
if MysteriousManScreen.pending_end then if MysteriousManScreen.pending_end or Ascension.is_fading() or Ascension.is_flashing() then
Meter.draw_ascension_only() Meter.draw_ascension_only()
else else
local lines = { local lines = {

View File

@@ -49,16 +49,22 @@ Screen.register({
return return
end end
local show_sumphore = Ascension.get_level() ~= 8
if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then
Sprite.draw_at("norman", 7 * 8, 3 * 8) Sprite.draw_at("norman", 7 * 8, 3 * 8)
if show_sumphore then
Sprite.draw_at("sumphore", 9 * 8, 2 * 8) Sprite.draw_at("sumphore", 9 * 8, 2 * 8)
end
CommuteGlitch.draw_sprite_list(Context.walking_to_home_sprites) CommuteGlitch.draw_sprite_list(Context.walking_to_home_sprites)
CommuteGlitch.draw_background_flicker() CommuteGlitch.draw_background_flicker()
Glitch.draw() Glitch.draw()
else else
local norman_x = Context.fast_food_approaching and (19 * 8) or (7 * 8) local norman_x = Context.fast_food_approaching and (19 * 8) or (7 * 8)
Sprite.draw_at("norman", norman_x, 3 * 8) Sprite.draw_at("norman", norman_x, 3 * 8)
if show_sumphore then
Sprite.draw_at("sumphore", 9 * 8, 2 * 8) Sprite.draw_at("sumphore", 9 * 8, 2 * 8)
end
if Context.fast_food_eaten_today < 3 then if Context.fast_food_eaten_today < 3 then
Sprite.draw_at("pizza_vendor", 19 * 8, 1 * 8) Sprite.draw_at("pizza_vendor", 19 * 8, 1 * 8)
end end

View File

@@ -46,8 +46,11 @@ Screen.register({
local w = Window.get_current_id() local w = Window.get_current_id()
if w == "game" or w == "discussion" then if w == "game" or w == "discussion" then
local norman_x = Context.fast_food_approaching and (19 * 8) or (7 * 8) local norman_x = Context.fast_food_approaching and (19 * 8) or (7 * 8)
local show_sumphore = Ascension.get_level() ~= 8
Sprite.draw_at("norman", norman_x, 3 * 8) Sprite.draw_at("norman", norman_x, 3 * 8)
if show_sumphore then
Sprite.draw_at("sumphore", 9 * 8, 2 * 8) Sprite.draw_at("sumphore", 9 * 8, 2 * 8)
end
if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then
Sprite.draw_at("norman_echo", norman_x, 3 * 8) Sprite.draw_at("norman_echo", norman_x, 3 * 8)