From e4c9bbfdf9573ff47a15ca4c60a2579ac0c50e8e Mon Sep 17 00:00:00 2001 From: aMannus Date: Sat, 18 Oct 2025 20:38:02 +0200 Subject: [PATCH] Add item and player names on AP shop items --- soh/soh/Enhancements/randomizer/randomizer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index d1ddb629d..698b6b9c0 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -4697,6 +4697,12 @@ CustomMessage Randomizer::GetMerchantMessage(RandomizerCheck rc, TextIDs textId, } else if (shopItemGet == RG_ICE_TRAP) { shopItemGet = ctx->overrides[rc].LooksLike(); shopItemName = CustomMessage(ctx->overrides[rc].GetTrickName()); + } else if (shopItemGet == RG_ARCHIPELAGO_ITEM_PROGRESSIVE || shopItemGet == RG_ARCHIPELAGO_ITEM_USEFUL || + shopItemGet == RG_ARCHIPELAGO_ITEM_JUNK) { + auto shopItem = Rando::StaticData::RetrieveItem(shopItemGet); + std::string apItemName = std::string(gSaveContext.ship.quest.data.archipelago.locations[rc].itemName) + " (" + + std::string(gSaveContext.ship.quest.data.archipelago.locations[rc].playerName) + ")"; + shopItemName = { Text(apItemName) }; } else { auto shopItem = Rando::StaticData::RetrieveItem(shopItemGet); shopItemName = { shopItem.GetName() };