src/shop/shop_tables.c
The 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. More…
Variables
| Name | Description | |
|---|---|---|
const Uint16 | ShopQuantityBarSegmentOffsets [30] | Where each of the quantity bar's 30 segments starts in its tile buffer: a byte column of a 4-bit tile, so four segments to a tile and the next tile 32 bytes on, eight tiles in all. |
const Uint16 | ShopPriceDigitTileOffsets [5] | Where each of a price's five digits starts in its tile buffer, ones first. |
const Sint16 | ShopGameTicketCreditCosts [30] | The shop credit each Game Ticket costs, by how many have been given: five at each price: 300, then 500 doubling to 8000. |
const Sint16 | ShopUnusedItemIds [21] | Unused: a list of gift items, ended by 0, that nothing reads: The Broken Seal's, with the Fire Brand where it has the Masamune. |
const Sint16 | ShopStockTable [SHOP_STOCK_ROWS][SHOP_STOCK_COLUMNS] | The shops' stock, one row per shop: up to 24 items, then up to 8 artifacts (each list ending with 0 when shorter), then the shop's type, which an item shop, SHOP_TYPE_ITEMS, leaves at 0. |
const FORGE_RECIPE | ForgeRecipes [] | What the forge makes of each material, ended by an item of -1: a rare material may become any of its results, by weight out of 100, and a rusted weapon always becomes its one result. |
const Sint8 | SanctumServiceTunes [4] | The tune each service's burst plays. |
const Sint8 | InnPricesPerGuest [16] | The coins a night costs each living guest, by inn: Daila, Madra, Alhafra, Garoh, Mikasalla, Naribwe, Kibombo, Yallam, the Apojii Islands, Izumo, Champa, the Shaman Village, Contigo, Loho and Prox, as their scripts open them. |
Description
The 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. The linker places them after the shop's pictures, apart from its code.
Variables in detail
ShopQuantityBarSegmentOffsets
const Uint16 ShopQuantityBarSegmentOffsets[30]
Where each of the quantity bar's 30 segments starts in its tile buffer: a byte column of a 4-bit tile, so four segments to a tile and the next tile 32 bytes on, eight tiles in all.
Referenced by mnQuantityBarFill().
Definition at line 13 of file shop_tables.c.
ShopPriceDigitTileOffsets
const Uint16 ShopPriceDigitTileOffsets[5]
Where each of a price's five digits starts in its tile buffer, ones first.
Referenced by mnShopDrawPriceDigit().
Definition at line 25 of file shop_tables.c.
ShopGameTicketCreditCosts
const Sint16 ShopGameTicketCreditCosts[30]
The shop credit each Game Ticket costs, by how many have been given: five at each price: 300, then 500 doubling to 8000.
Referenced by mnShopGiveGameTicket().
Definition at line 31 of file shop_tables.c.
ShopUnusedItemIds
const Sint16 ShopUnusedItemIds[21]
Unused: a list of gift items, ended by 0, that nothing reads: The Broken Seal's, with the Fire Brand where it has the Masamune.
Definition at line 42 of file shop_tables.c.
ShopStockTable
const Sint16 ShopStockTable[SHOP_STOCK_ROWS][SHOP_STOCK_COLUMNS]
The shops' stock, one row per shop: up to 24 items, then up to 8 artifacts (each list ending with
0 when shorter), then the shop's type, which an item shop, SHOP_TYPE_ITEMS, leaves at 0. Each row
is named by the town whose script opens it.
Referenced by mnShopStockAddArtifacts(), mnShopStockCopyItems() and mnShopStockGetType().
Definition at line 53 of file shop_tables.c.
ForgeRecipes
const FORGE_RECIPE ForgeRecipes[]
What the forge makes of each material, ended by an item of -1: a rare material may become any of its results, by weight out of 100, and a rusted weapon always becomes its one result.
Referenced by mnForgeFindRecipe().
Definition at line 245 of file shop_tables.c.
SanctumServiceTunes
const Sint8 SanctumServiceTunes[4]
The tune each service's burst plays.
Referenced by mnSanctumRunMemberIconBurst().
Definition at line 377 of file shop_tables.c.
InnPricesPerGuest
const Sint8 InnPricesPerGuest[16]
The coins a night costs each living guest, by inn: Daila, Madra, Alhafra, Garoh, Mikasalla, Naribwe, Kibombo, Yallam, the Apojii Islands, Izumo, Champa, the Shaman Village, Contigo, Loho and Prox, as their scripts open them. Unused: inn 15 costs nothing and no script opens it.
Referenced by mnInnRoomPrice().
Definition at line 387 of file shop_tables.c.