src/shop/shop.c
The shop object: every counter the party trades at. More…
#include "shop_internal.h"#include "shop_run.c"#include "shop_cursor.c"#include "shop_buy.c"#include "shop_sell.c"#include "shop_repair.c"#include "shop_stock.c"#include "shop_forge.c"#include "shop_sanctum.c"#include "shop_inn.c"#include "shop_item_picker.c"
Description
The shop object: every counter the party trades at. Shops that buy, sell and repair, the artifact and Game Ticket counters, the forge, the sanctum's services, the inn, and the item picker scripts use.
shop_internal.h holds what every part shares; 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 The Broken Seal's are. Where to start:
- shops:
mnShopRun(shop_run.c),mnShopSelectBuy(shop_buy.c),mnShopSelectSell, which serves repairs too (shop_sell.c); - stock:
mnShopStockAddArtifactsandmnShopGiveGameTicket(shop_stock.c); - the forge:
shop_forge.c, andmnForgeRun(shop_item_picker.c); - the sanctum:
mnSanctumRun(shop_sanctum.c); - the inn:
mnInnCheckIn(shop_inn.c); - the item picker:
mnItemPickerRun(shop_item_picker.c), and the item icon grid,mnItemIconGridShowInventory.