Skip to Content
The Alchemy Project

src/shop

Guide: Shops, Sanctums, Inns & Forge

Files

FileDescription
shop.cThe shop object: every counter the party trades at.
shop_buy.cBuying: the stock list, the money and party windows, quantities and prices.
shop_cursor.cThe quantity bar, the price digits and their sprites, the field's tint behind the sanctum and the Djinn, the hand cursor's glides, and loading a picture into VRAM.
shop_forge.cThe forge: its recipes, the materials the party holds and the roll for the result.
shop_inn.cThe inn: room prices, checking in and the night's sleep.
shop_internal.hWhat every part of the shop object shares: its includes, its state, the counters and services it runs, the stock table's columns and the tables shop_tables.c holds.
shop_item_picker.cThe forge's counter; the item picker scripts use to choose one of a party member's items, to show Naribwe's fortune teller or to drop; and the grid of item icons the shop's windows draw.
shop_repair.cRepairing broken items.
shop_run.cRunning a shop: the artifacts it lists, opening its state, the counter's loop and the message helpers every counter uses.
shop_sanctum.cThe sanctum's services, their donations and their sparkles.
shop_sell.cSelling: choosing a party member, the item grid and the sale.
shop_stock.cThe Game Ticket counter and every shop's stock.
shop_tables.cThe shop's tables: the quantity bar's and the price digits' tile offsets, the Game Ticket costs, the gift items, every shop's stock, the forge's recipes, the sanctum's tunes and the inns' prices.

On this page