The shop object: every counter the party trades at. More...
Go to the source code of this file.
The shop object: every counter the party trades at.
Shops that buy, sell and repair, the artifact and Game Ticket counters, the sanctum's healing services, the inn, and the item picker scenes use.
Everything lives in one work block, struct ShopRuntime, reached as gMenuWork while a counter is open. shop_internal.h holds what every part shares (includes, the shop actions and the values that differ by edition); the code is in the files under shop/, included here in the order it has in the ROM. Camelot's own files are not recoverable: the ROM shows one object, and these parts are ours, cut where one family ends and the next begins. README.md in this folder gives the words and prefixes. Where to start:
Shops run.c: Shop_Run; buy.c: Shop_SelectBuy; sell.c: Shop_SelectSell; repair.c: Shop_SelectRepair Stock artifacts.c: EventTable_ApplyRowAbilities, Shop_BuySpecialItem Sanctum sanctum.c: Sanctum_RunPartyService Inn inn.c: Inn_CheckIn Item picker item_picker.c: Shop_PickUnitItem
Definition in file shop.c.