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 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 TILE_SIZE_4BPP 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 items ended by 0, which nothing reads: the Long Sword to the Muramasa, the Short Sword, Mint, the Demon Axe, Asura's Armor, the Cotton Shirt, the Travel Vest, Herb, Nut and the id after the Water of Life. |
const Sint16 | ShopStockTable [SHOP_STOCK_ROWS][SHOP_STOCK_COLUMNS] | Every shop's stock, a row by stock row: its items, artifacts and type. |
const Sint8 | SanctumServiceTunes [4] | The tune each service's burst plays. |
const Sint8 | InnPricesPerGuest [12] | The coins a night costs each living guest, by inn: Vale, Vault, Bilibin, Kolima, Imil, Xian, Altin, Kalay, Lunpa, Tolbi, Suhalla, Lalivero, in the order of their area names. |
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 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
TILE_SIZE_4BPP bytes on, eight tiles in all.
Referenced by mnQuantityBarFill().
Definition at line 12 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 18 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. The gift count stops at 28
(gmPartyAdjustShopGifts), so every ticket from the 29th costs entry 28's 8000
and entry 29 is never read.
Referenced by mnShopGiveGameTicket().
Definition at line 31 of file shop_tables.c.
ShopUnusedItemIds
const Sint16 ShopUnusedItemIds[21]
Unused: a list of items ended by 0, which nothing reads: the Long Sword to the Muramasa, the Short Sword, Mint, the Demon Axe, Asura's Armor, the Cotton Shirt, the Travel Vest, Herb, Nut and the id after the Water of Life.
Definition at line 43 of file shop_tables.c.
ShopStockTable
const Sint16 ShopStockTable[SHOP_STOCK_ROWS][SHOP_STOCK_COLUMNS]
Every shop's stock, a row by stock row: its items, artifacts and type.
Referenced by mnShopStockAddArtifacts(), mnShopStockCopyItems() and mnShopStockGetType().
Definition at line 54 of file shop_tables.c.
SanctumServiceTunes
const Sint8 SanctumServiceTunes[4]
The tune each service's burst plays.
Referenced by mnSanctumRunMemberIconBurst().
Definition at line 250 of file shop_tables.c.
InnPricesPerGuest
const Sint8 InnPricesPerGuest[12]
The coins a night costs each living guest, by inn: Vale, Vault, Bilibin,
Kolima, Imil, Xian, Altin, Kalay, Lunpa, Tolbi, Suhalla, Lalivero, in the
order of their area names. Unused: Tolbi's row, 9, costs nothing and no
script opens it, since Tolbi's inns are always full
(MsgTolbiInteriorsIsaacCheckedTheSignInnFull).
Referenced by mnInnRoomPrice().
Definition at line 262 of file shop_tables.c.