From 15fc04e0673641f01290d24223e4b96f595ab5b7 Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Fri, 21 Aug 2026 19:46:15 -0400 Subject: [PATCH] Collision-check the remaining single-tile player refusal shoves CLOSES #1548 --- data/scripts/safari.lua | 2 +- data/scripts/story.lua | 6 +++--- data/scripts/story2.lua | 4 ++-- data/scripts/story3.lua | 2 +- data/scripts/story4.lua | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/scripts/safari.lua b/data/scripts/safari.lua index 782f9f1c..b920e883 100644 --- a/data/scripts/safari.lua +++ b/data/scripts/safari.lua @@ -111,7 +111,7 @@ local function joinPrompt(game, ow, done) local t = game.data.text local back = function(text) game.stack:push(TextBox.new(game, text, function() - ow:scriptMove(ow.player, "down", 1, done) + ow:scriptMove(ow.player, "down", 1, done, { collide = true }) end)) end game.stack:push(TextBox.new(game, diff --git a/data/scripts/story.lua b/data/scripts/story.lua index 818d8281..4dc2507e 100644 --- a/data/scripts/story.lua +++ b/data/scripts/story.lua @@ -127,7 +127,7 @@ M.VIRIDIAN_CITY = { game.stack:push(TextBox.new(game, game.data.text._ViridianCityOldManSleepyPrivatePropertyText or "You can't go\nthrough here!\fThis is private\nproperty!", - function() ow:scriptMove(ow.player, "down", 1) end)) + function() ow:scriptMove(ow.player, "down", 1, nil, { collide = true }) end)) return true end, } @@ -356,7 +356,7 @@ M.VERMILION_CITY = { if shipLeft then game.stack:push(TextBox.new(game, t._VermilionCitySailor1ShipSetSailText or "The ship set sail.", - function() ow:scriptMove(ow.player, "up", 1) end)) + function() ow:scriptMove(ow.player, "up", 1, nil, { collide = true }) end)) return true end -- Walk-past is never facing-right / inFrontOfOrBehindGuardCoords, so @@ -377,7 +377,7 @@ M.VERMILION_CITY = { ask .. "\f" .. (t._VermilionCitySailor1YouNeedATicketText or "You need a ticket\nto get aboard."), - function() ow:scriptMove(ow.player, "up", 1) end)) + function() ow:scriptMove(ow.player, "up", 1, nil, { collide = true }) end)) return true end, talk = { diff --git a/data/scripts/story2.lua b/data/scripts/story2.lua index 2ab2a715..09fea14d 100644 --- a/data/scripts/story2.lua +++ b/data/scripts/story2.lua @@ -414,7 +414,7 @@ local function saffronGate(guardText, triggers, horizontal) game.stack:push(TextBox.new(game, t._SaffronGateGuardGeeImThirstyText or "Gee, I'm thirsty\nthough!\nThe road's closed.", function() - ow:scriptMove(ow.player, back, 1) + ow:scriptMove(ow.player, back, 1, nil, { collide = true }) end)) return true end, @@ -769,7 +769,7 @@ M.MUSEUM_1F = { if y == 4 and (x == 9 or x == 10) and not game.save.flags.EVENT_BOUGHT_MUSEUM_TICKET then museumClerk(game, ow, nil, function() - ow:scriptMove(ow.player, "down", 1) + ow:scriptMove(ow.player, "down", 1, nil, { collide = true }) end) return true end diff --git a/data/scripts/story3.lua b/data/scripts/story3.lua index 6e15987c..d2d4dbd5 100644 --- a/data/scripts/story3.lua +++ b/data/scripts/story3.lua @@ -176,7 +176,7 @@ M.POKEMON_TOWER_6F = { -- .did_not_defeat: one simulated step right, off the trigger, -- so fleeing does not leave you standing on a cell that -- immediately re-fires. - ow:scriptMove(ow.player, "right", 1) + ow:scriptMove(ow.player, "right", 1, nil, { collide = true }) end ow:afterBattle(result, battle) end diff --git a/data/scripts/story4.lua b/data/scripts/story4.lua index 5a7a8bda..18c6658c 100644 --- a/data/scripts/story4.lua +++ b/data/scripts/story4.lua @@ -734,7 +734,7 @@ local function e4ExitSeal(flag, closedBlock, openBlock, dontRunText, autoFlag) local TextBox = require("src.render.TextBox") game.stack:push(TextBox.new(game, game.data.text[dontRunText] or "Don't run away!", function() - ow:scriptMove(ow.player, "up", 1) + ow:scriptMove(ow.player, "up", 1, nil, { collide = true }) end)) return true end,