mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-09-30 15:27:16 -04:00
Update oaks_lab_last_ball_bug601.lua
This commit is contained in:
@@ -25,7 +25,7 @@ package.path = "./?.lua;./?/init.lua;" .. package.path
|
||||
|
||||
local T = require("tests.harness")
|
||||
local MapScripts = require("src.script.MapScripts")
|
||||
local generatedText = dofile("data/generated/text.lua")
|
||||
local textOk, generatedText = pcall(dofile, "data/generated/text.lua")
|
||||
|
||||
local contribution = dofile("data/scripts/oaks_lab.lua")
|
||||
local problems = MapScripts.validateContribution(contribution)
|
||||
@@ -90,8 +90,10 @@ T.eq(#offers, 0, "no starter offer after the pick")
|
||||
local box = concat(texts)
|
||||
T.check(box:find("_OaksLabLastMonText", 1, true) ~= nil,
|
||||
"leftover ball uses the extracted last-mon text")
|
||||
T.eq(generatedText._OaksLabLastMonText, "That's PROF.OAK's\nlast POKéMON!{DONE}",
|
||||
"extracted last-mon text keeps the canonical POKéMON capitalization")
|
||||
if textOk and type(generatedText) == "table" then
|
||||
T.eq(generatedText._OaksLabLastMonText, "That's PROF.OAK's\nlast POKéMON!{DONE}",
|
||||
"extracted last-mon text keeps the canonical POKéMON capitalization")
|
||||
end
|
||||
T.check(box:find("Those are", 1, true) == nil,
|
||||
"leftover ball no longer says 'Those are POKé BALLs'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user