mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-20 12:40:21 +02:00
fixing bugs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user