-- Script text flow around the intro stretch: Mom's clock ladder confirms in -- text (InitialSetDSTFlag / InitialClearDSTFlag, engine/rtc/timeset.asm), the -- NameRival special parks the officer until the keyboard closes -- (engine/events/specials.asm NameRival), resolves off the Gold save, -- Mom's leaving speech keeps the cart's page waits (data/text/common_1.asm -- _MomLeavingText1), and a stale wStringBuffer2 never leaks into a complete -- text (the "Obtained the POKeDEX!PSNCUREBERRY!" splice). The catching -- tutorial's map-music restore and the Sprout Tower scene's sfx ids ride -- along: same lane, same seams. -- -- GOLD_CACHE=".../gold" luajit tests/gen2_text_flow_test.lua -- -- Everything is ROM-free except the Sprout Tower row pins, which SKIP. package.path = "./?.lua;./?/init.lua;" .. package.path local S = require("tests.harness").suite("gen2 text flow") local check, eq = S.check, S.eq love = require("tests.love_stub") local Vm = require("src.script.gen2.Vm") local Events = require("src.world.gen2.Events") local Specials = require("src.script.gen2.Specials") local TextBox = require("src.render.TextBox") -- ---- the DST ladder confirms in text --------------------------------------- -- PlayersHouse1F's MeetMomScript: writetext IsItDSTText / yesorno / special / -- yesorno / iffalse back to the top. The special prints "