added 89 ascension
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Zoltan Timar
2026-04-29 16:20:11 +02:00
parent 395208f814
commit 3e31398d9d
17 changed files with 399 additions and 118 deletions

View File

@@ -2,9 +2,11 @@
CommuteGlitch = {}
--- Gets the current commute glitch level.
--- At ascension level 8+, always returns 7 (max) regardless of stored value.
--- @within CommuteGlitch
--- @return number Current glitch level (0-7).
function CommuteGlitch.get_level()
if Ascension.get_level() >= 8 then return 7 end
return Context and (Context.commute_glitch_level or 0) or 0
end
@@ -34,11 +36,11 @@ function CommuteGlitch.enter_truth()
Ascension.start_flash()
end
--- Returns true when ascension level is 7 (ASCENSIO step active).
--- Returns true when ascension level is 7 or 8 (ASCENSIO/N steps active).
--- @within CommuteGlitch
--- @return boolean Whether the commute glitch system is active.
function CommuteGlitch.is_active()
return Ascension.get_level() == 7
return Ascension.get_level() >= 7
end
--- Returns the music playback speed for the current glitch level.

View File

@@ -312,3 +312,18 @@ function Meter.draw()
Ascension.draw(bar_x - 4, ascension_y, { spacing = 8 })
end
--- Draws only the ascension letters at the same position as in Meter.draw().
--- Used when meters are hidden but ascension letters still need to be visible.
--- @within Meter
function Meter.draw_ascension_only()
local screen_w = Config.screen.width
local screen_h = Config.screen.height
local bar_w = screen_w * 0.25
local edge = math.max(2, math.floor(screen_w * 0.03))
local bar_x = screen_w - bar_w - edge
local line_h = 3
local start_y = screen_h * 0.05
local ascension_y = start_y + 3 * line_h + 1
Ascension.draw(bar_x - 4, ascension_y, { spacing = 8 })
end