feat: reconstruct standard battle continuations

This commit is contained in:
MaxTomahawk
2026-08-07 16:32:42 +02:00
parent 85c6fde443
commit 44a7910c69
7 changed files with 196 additions and 8 deletions
+9
View File
@@ -98,6 +98,15 @@ function BattleState:bgMode()
return "white"
end
-- Resume a semantic checkpoint directly at the command menu. Unlike enter(),
-- this deliberately does not replay the battle transition, intro queues,
-- cries, happiness changes, or battle-start events.
function BattleState:resumeCheckpoint()
self.isOpaque = self:bgMode() ~= "world"
require("src.core.Music").playBattle(self.data,
self.musicKind or self:computeMusicKind())
end
-- How far to dim the overworld behind a "world" background, 0..1. Enough
-- that the battle reads as the foreground rather than competing with a fully
-- lit map behind it.