yellow residuals

This commit is contained in:
bryanthaboi
2026-09-05 09:03:47 -04:00
parent 4420f14cbd
commit fdd1d61ea6
2 changed files with 34 additions and 5 deletions
+18 -3
View File
@@ -459,18 +459,19 @@ M.SS_ANNE_CAPTAINS_ROOM = {
talk = {
TEXT_SSANNECAPTAINSROOM_CAPTAIN = {
{ "check_flag", "EVENT_GOT_HM01" }, -- 1
{ "jump_if_true", 12 },
{ "jump_if_true", 0 },
{ "text_opts", captainRubOpts() },
{ "show_text", "_SSAnneCaptainsRoomRubCaptainsBackText" },
-- pokeyellow scripts/SSAnneCaptainsRoom.asm:64; pokered scripts/SSAnneCaptainsRoom.asm:66
-- pokeyellow scripts/SSAnneCaptainsRoom.asm:64-66; pokered scripts/SSAnneCaptainsRoom.asm:66-68
{ "set_flag", "EVENT_RUBBED_CAPTAINS_BACK" },
{ "no_npc_face_player", false },
{ "show_text", "_SSAnneCaptainsRoomCaptainIFeelMuchBetterText" },
-- give-then-print like scripts/SSAnneCaptainsRoom.asm (GiveItem
-- fills wStringBuffer; the received text reads it)
{ "give_item", "HM_CUT", 1, false },
{ "show_text", "_SSAnneCaptainsRoomCaptainReceivedHM01Text" },
{ "set_flag", "EVENT_GOT_HM01" },
-- scripts/SSAnneCaptainsRoom.asm:32-33
-- pokeyellow scripts/SSAnneCaptainsRoom.asm:32-33
{ "no_npc_face_player", false },
{ "jump", "end" },
{ "show_text", "_SSAnneCaptainsRoomCaptainNotSickAnymoreText" },
@@ -478,6 +479,20 @@ M.SS_ANNE_CAPTAINS_ROOM = {
},
}
do
local rows = M.SS_ANNE_CAPTAINS_ROOM.talk.TEXT_SSANNECAPTAINSROOM_CAPTAIN
if not require("src.core.GameVersion").isYellow() then
for i, row in ipairs(rows) do
if row[1] == "give_item" then
-- pokered scripts/SSAnneCaptainsRoom.asm:34-37
table.insert(rows, i, { "no_npc_face_player", true })
break
end
end
end
rows[2][2] = #rows
end
-- -------------------------------------------------------------------
-- Pokémon Tower / Poké Flute (scripts/PokemonTower7F.asm,
-- MrFujisHouse.asm; the teleport back to his house is a warp)