fixing bugs

This commit is contained in:
bryanthaboi
2026-07-25 12:35:00 -04:00
parent 9307488dc1
commit 347838619b
83 changed files with 5625 additions and 1160 deletions
+7 -1
View File
@@ -24,7 +24,10 @@ local S = require("tests.harness").suite("parity ghost marowak")
local check, eq = S.check, S.eq
-- Real TextBoxes want a Font atlas; the decision under test is which
-- branch runs, not how the text renders.
-- branch runs, not how the text renders. Both stubs are restored at the
-- bottom for the suites run_tests.lua chains after this file.
local realTextBox = package.loaded["src.render.TextBox"]
local realBattleState = package.loaded["src.battle.BattleState"]
package.loaded["src.render.TextBox"] = {
new = function(_, text, done) return { text = text, done = done } end,
}
@@ -158,4 +161,7 @@ do
eq(0, #moved, "no scripted step on a loss")
end
package.loaded["src.render.TextBox"] = realTextBox
package.loaded["src.battle.BattleState"] = realBattleState
S.finish()