Skip to content

Commit

Permalink
Fix item links
Browse files Browse the repository at this point in the history
  • Loading branch information
ScipioWright committed Nov 23, 2024
1 parent 084a806 commit 950959b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ local function ShouldDeliverItem(item)
local location_id = item["location"]
if item["player"] == current_player_slot then
if GameHasFlagRun("ap" .. location_id) then
-- item links is extremely weird, this is the easy way to make it work correctly
local location = Globals.LocationScouts:get_key(location_id)
if not location.is_our_item then
return true
end
if location_id >= AP.FIRST_SHOP_LOCATION_ID and location_id <= AP.LAST_SHOP_LOCATION_ID or
location_id >= AP.FIRST_SHOP_LOCATION_ID + AP.WEST_OFFSET and location_id <= AP.LAST_SHOP_LOCATION_ID + AP.WEST_OFFSET or
location_id >= AP.FIRST_SHOP_LOCATION_ID + AP.EAST_OFFSET and location_id <= AP.LAST_SHOP_LOCATION_ID + AP.EAST_OFFSET then
Expand Down

0 comments on commit 950959b

Please sign in to comment.