Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
stitshop.c File Reference

STITSHOP's data, all of it in one file. More...

#include "menus/item_shop.h"
Include dependency graph for stitshop.c:

Go to the source code of this file.

Variables

s32 STITSHOP_sellLists []
 The item list each kind of sale shows.
 
Vec2 STITSHOP_changePos []
 Where the stat change arrows go in a partner's column.
 
s32 STITSHOP_stats []
 The stats the info shows, in PartnerTotals.stats: six battle stats, then the resistances.
 
s32 STITSHOP_kindStrings []
 The strings of the item kinds (the records' kind)
 
s32 STITSHOP_shopNames []
 The shops' names, by ItemShop.shop.
 
s16 STITSHOP_stock0 []
 The items each shop sells (STITSHOP_shops), up to 0.
 
s16 STITSHOP_stock1 []
 
s16 STITSHOP_stock2 []
 
s16 STITSHOP_stock3 []
 
s16 STITSHOP_stock4 []
 
s16 STITSHOP_stock5 []
 
s16 STITSHOP_stock6 []
 
s16 STITSHOP_stock7 []
 
s16 STITSHOP_stock8 []
 
s16 STITSHOP_stock9 []
 
s16 STITSHOP_stock10 []
 
s16 STITSHOP_stock11 []
 
s16 STITSHOP_stock12 []
 
s16 STITSHOP_stock13 []
 
s16 STITSHOP_stock14 []
 
s16 STITSHOP_stock15 []
 
s16 STITSHOP_stock16 []
 
s16 STITSHOP_stock17 []
 
s16 STITSHOP_stock18 []
 
s16 STITSHOP_stock19 []
 
s16 STITSHOP_stock20 []
 
s16 STITSHOP_stock21 []
 
s16 STITSHOP_stock22 []
 
s16 STITSHOP_stock23 []
 
s16 STITSHOP_stock24 []
 
s16 STITSHOP_stock25 []
 
s16 STITSHOP_stock26 []
 
s16 STITSHOP_stock27 []
 
s16 STITSHOP_stock28 []
 
s16 STITSHOP_stock29 []
 
s16 STITSHOP_stock30 []
 
ShopList STITSHOP_shops [31]
 The shops, by ItemShop.shop.
 
ItemShopFuncs STITSHOP_funcs
 The shop's helpers.
 

Detailed Description

STITSHOP's data, all of it in one file.

Definition in file stitshop.c.

Variable Documentation

◆ STITSHOP_sellLists

s32 STITSHOP_sellLists[]
Initial value:
= {
1, 2, 3, 4,
}

The item list each kind of sale shows.

STITSHOP's data (data/stitshop.c), in its order.

Definition at line 6 of file stitshop.c.

Referenced by STITSHOP_reopenSellList(), and STITSHOP_runSell().

◆ STITSHOP_changePos

Vec2 STITSHOP_changePos[]
Initial value:
= {
{ 23, 172 }, { 23, 186 }, { 23, 200 }, { 65, 200 }, { 23, 214 }, { 65, 214 },
}

Where the stat change arrows go in a partner's column.

Definition at line 10 of file stitshop.c.

Referenced by STITSHOP_drawStatsPage().

◆ STITSHOP_stats

s32 STITSHOP_stats[]
Initial value:
= {
6 , 7 , 8 , 9 , 10 , 11 ,
12 , 12 + 1, 12 + 2, 12 + 3,
12 + 4, 12 + 5, 12 + 6,
}

The stats the info shows, in PartnerTotals.stats: six battle stats, then the resistances.

the stats the info shows

Definition at line 15 of file stitshop.c.

Referenced by STITSHOP_colorStat(), STITSHOP_showOtherChanges(), and STITSHOP_showStat().

◆ STITSHOP_kindStrings

s32 STITSHOP_kindStrings[]
Initial value:
= {
0, 35, 36, 37,
38, 39, 40, 41,
42,
}

The strings of the item kinds (the records' kind)

the strings of the item kinds

Definition at line 21 of file stitshop.c.

Referenced by STITSHOP_showItemDesc().

◆ STITSHOP_shopNames

s32 STITSHOP_shopNames[]
Initial value:
= {
17, 1, 5, 18,
6, 25, 13, 24,
4, 12, 29, 30,
16, 21, 9, 19,
2, 7, 20, 8,
26, 14, 23, 3,
11, 27, 28, 15,
22, 10,
}

The shops' names, by ItemShop.shop.

Definition at line 27 of file stitshop.c.

Referenced by STITSHOP_runShop().

◆ STITSHOP_stock0

s16 STITSHOP_stock0[]
Initial value:
= {
0x05C, 0x06A, 0x09D, 0x0A7, 0x0BE, 0x0D7, 0x0E2, 0x0EC,
0x0F9, 0x106, 0x113, 0x000,
}

The items each shop sells (STITSHOP_shops), up to 0.

Definition at line 38 of file stitshop.c.

◆ STITSHOP_stock1

s16 STITSHOP_stock1[]
Initial value:
= {
0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
0x13A, 0x13B, 0x000,
}

Definition at line 42 of file stitshop.c.

◆ STITSHOP_stock2

s16 STITSHOP_stock2[]
Initial value:
= {
0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
0x052, 0x053, 0x054, 0x000,
}

Definition at line 47 of file stitshop.c.

◆ STITSHOP_stock3

s16 STITSHOP_stock3[]
Initial value:
= {
0x060, 0x06E, 0x07A, 0x086, 0x093, 0x0A1, 0x0AB, 0x0B2,
0x0B9, 0x0C2, 0x0C9, 0x0D1, 0x0DB, 0x0E6, 0x0F0, 0x0FD,
0x10A, 0x117, 0x000,
}

Definition at line 52 of file stitshop.c.

◆ STITSHOP_stock4

s16 STITSHOP_stock4[]
Initial value:
= {
0x02B, 0x02C, 0x000,
}

Definition at line 57 of file stitshop.c.

◆ STITSHOP_stock5

s16 STITSHOP_stock5[]
Initial value:
= {
0x05D, 0x06B, 0x09E, 0x0A8, 0x0BF, 0x0D8, 0x0E3, 0x0ED,
0x0FA, 0x107, 0x114, 0x000,
}

Definition at line 60 of file stitshop.c.

◆ STITSHOP_stock6

s16 STITSHOP_stock6[]
Initial value:
= {
0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
0x052, 0x053, 0x054, 0x000,
}

Definition at line 64 of file stitshop.c.

◆ STITSHOP_stock7

s16 STITSHOP_stock7[]
Initial value:
= {
0x05E, 0x06C, 0x09F, 0x0A9, 0x0C0, 0x0D9, 0x0E4, 0x0EE,
0x0FB, 0x108, 0x115, 0x000,
}

Definition at line 69 of file stitshop.c.

◆ STITSHOP_stock8

s16 STITSHOP_stock8[]
Initial value:
= {
0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
0x13A, 0x13B, 0x000,
}

Definition at line 73 of file stitshop.c.

◆ STITSHOP_stock9

s16 STITSHOP_stock9[]
Initial value:
= {
0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
0x052, 0x053, 0x054, 0x000,
}

Definition at line 78 of file stitshop.c.

◆ STITSHOP_stock10

s16 STITSHOP_stock10[]
Initial value:
= {
0x05F, 0x06D, 0x078, 0x084, 0x091, 0x0A0, 0x0AA, 0x0B0,
0x0B7, 0x0C1, 0x0C7, 0x0CF, 0x0DA, 0x0E5, 0x0EF, 0x0FC,
0x109, 0x116, 0x000,
}

Definition at line 83 of file stitshop.c.

◆ STITSHOP_stock11

s16 STITSHOP_stock11[]
Initial value:
= {
0x05F, 0x06D, 0x078, 0x084, 0x091, 0x0A0, 0x0AA, 0x0B0,
0x0B7, 0x0C1, 0x0C7, 0x0CF, 0x0DA, 0x0E5, 0x0EF, 0x0FC,
0x109, 0x116, 0x000,
}

Definition at line 88 of file stitshop.c.

◆ STITSHOP_stock12

s16 STITSHOP_stock12[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 93 of file stitshop.c.

◆ STITSHOP_stock13

s16 STITSHOP_stock13[]
Initial value:
= {
0x061, 0x06F, 0x07B, 0x087, 0x094, 0x0A2, 0x0AC, 0x0B3,
0x0BA, 0x0C3, 0x0CA, 0x0D2, 0x0DC, 0x0E7, 0x0F1, 0x0FE,
0x10B, 0x118, 0x000,
}

Definition at line 98 of file stitshop.c.

◆ STITSHOP_stock14

s16 STITSHOP_stock14[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 103 of file stitshop.c.

◆ STITSHOP_stock15

s16 STITSHOP_stock15[]
Initial value:
= {
0x065, 0x073, 0x07F, 0x08C, 0x098, 0x0A6, 0x0AF, 0x0B6,
0x0BD, 0x0C6, 0x0CE, 0x0D6, 0x0E1, 0x0EB, 0x0F8, 0x105,
0x112, 0x123, 0x000,
}

Definition at line 108 of file stitshop.c.

◆ STITSHOP_stock16

s16 STITSHOP_stock16[]
Initial value:
= {
0x125, 0x127, 0x129, 0x12B, 0x12D, 0x12F, 0x130, 0x131,
0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
0x13A, 0x13B, 0x000,
}

Definition at line 113 of file stitshop.c.

◆ STITSHOP_stock17

s16 STITSHOP_stock17[]
Initial value:
= {
0x02B, 0x02C, 0x02D, 0x042, 0x043, 0x045, 0x046, 0x047,
0x048, 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F,
0x050, 0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 118 of file stitshop.c.

◆ STITSHOP_stock18

s16 STITSHOP_stock18[]
Initial value:
= {
0x062, 0x070, 0x07C, 0x088, 0x089, 0x095, 0x0A3, 0x0CB,
0x0D3, 0x0DD, 0x0DE, 0x0E8, 0x0F2, 0x0F3, 0x0F4, 0x0F5,
0x0FF, 0x100, 0x101, 0x102, 0x10C, 0x10D, 0x10E, 0x10F,
0x119, 0x11A, 0x11B, 0x11C, 0x11D, 0x11E, 0x11F, 0x120,
0x000,
}

Definition at line 123 of file stitshop.c.

◆ STITSHOP_stock19

s16 STITSHOP_stock19[]
Initial value:
= {
0x02F, 0x030, 0x031, 0x032, 0x033, 0x034, 0x035, 0x036,
0x037, 0x038, 0x039, 0x03A, 0x03B, 0x03C, 0x03D, 0x000,
}

Definition at line 130 of file stitshop.c.

◆ STITSHOP_stock20

s16 STITSHOP_stock20[]
Initial value:
= {
0x060, 0x06E, 0x07A, 0x086, 0x093, 0x0A1, 0x0AB, 0x0B2,
0x0B9, 0x0C2, 0x0C9, 0x0D1, 0x0DB, 0x0E6, 0x0F0, 0x0FD,
0x10A, 0x117, 0x000,
}

Definition at line 134 of file stitshop.c.

◆ STITSHOP_stock21

s16 STITSHOP_stock21[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 139 of file stitshop.c.

◆ STITSHOP_stock22

s16 STITSHOP_stock22[]
Initial value:
= {
0x061, 0x06F, 0x07B, 0x087, 0x094, 0x0A2, 0x0AC, 0x0B3,
0x0BA, 0x0C3, 0x0CA, 0x0D2, 0x0DC, 0x0E7, 0x0F1, 0x0FE,
0x10B, 0x118, 0x000,
}

Definition at line 144 of file stitshop.c.

◆ STITSHOP_stock23

s16 STITSHOP_stock23[]
Initial value:
= {
0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
0x13A, 0x13B, 0x000,
}

Definition at line 149 of file stitshop.c.

◆ STITSHOP_stock24

s16 STITSHOP_stock24[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 154 of file stitshop.c.

◆ STITSHOP_stock25

s16 STITSHOP_stock25[]
Initial value:
= {
0x063, 0x071, 0x07D, 0x08A, 0x096, 0x0A4, 0x0AD, 0x0B4,
0x0BB, 0x0C4, 0x0CC, 0x0D4, 0x0DF, 0x0E9, 0x0F6, 0x103,
0x110, 0x121, 0x000,
}

Definition at line 159 of file stitshop.c.

◆ STITSHOP_stock26

s16 STITSHOP_stock26[]
Initial value:
= {
0x064, 0x072, 0x07E, 0x08B, 0x097, 0x0A5, 0x0AE, 0x0B5,
0x0BC, 0x0C5, 0x0CD, 0x0D5, 0x0E0, 0x0EA, 0x0F7, 0x104,
0x111, 0x122, 0x000,
}

Definition at line 164 of file stitshop.c.

◆ STITSHOP_stock27

s16 STITSHOP_stock27[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 169 of file stitshop.c.

◆ STITSHOP_stock28

s16 STITSHOP_stock28[]
Initial value:
= {
0x064, 0x072, 0x07E, 0x08B, 0x097, 0x0A5, 0x0AE, 0x0B5,
0x0BC, 0x0C5, 0x0CD, 0x0D5, 0x0E0, 0x0EA, 0x0F7, 0x104,
0x111, 0x122, 0x000,
}

Definition at line 174 of file stitshop.c.

◆ STITSHOP_stock29

s16 STITSHOP_stock29[]
Initial value:
= {
0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
0x051, 0x052, 0x053, 0x054, 0x000,
}

Definition at line 179 of file stitshop.c.

◆ STITSHOP_stock30

s16 STITSHOP_stock30[]
Initial value:
= {
0x001, 0x002, 0x003, 0x004, 0x005, 0x006, 0x007, 0x008,
0x009, 0x00A, 0x00B, 0x00C, 0x00D, 0x00E, 0x00F, 0x010,
0x011, 0x012, 0x013, 0x014, 0x015, 0x016, 0x017, 0x018,
0x019, 0x01A, 0x01B, 0x01C, 0x01D, 0x01E, 0x01F, 0x020,
0x021, 0x022, 0x023, 0x024, 0x025, 0x026, 0x027, 0x028,
0x029, 0x02A, 0x168, 0x18A, 0x18B, 0x18C, 0x18D, 0x18E,
0x18F, 0x190, 0x191, 0x192, 0x000,
}

Definition at line 184 of file stitshop.c.

◆ STITSHOP_shops

ShopList STITSHOP_shops[31]

The shops, by ItemShop.shop.

STITSHOP_stock0 to 30, the items of each shop, are only STITSHOP_shops'.

Definition at line 194 of file stitshop.c.

Referenced by STITSHOP_getShopItems().

◆ STITSHOP_funcs

ItemShopFuncs STITSHOP_funcs
Initial value:
= {
0,
}
s16 * STITSHOP_getShopItems(s32 shop)
The items a shop sells (up to 0), noting how many in STITSHOP_funcs.count; NULL for none.
Definition equip.c:7
void STITSHOP_equip(s32 partner, s32 slot, s32 item, s32 fromBag)
Puts an item in a partner's equipment slot like STSTATUS_equip, moving the counts between GAME....
Definition equip.c:115
s32 STITSHOP_canEquip(s32 partner, s32 item)
1 when a partner can equip an item: the partner's bit in its partners
Definition equip.c:16
s32 STITSHOP_compareEquip(s32 partner, s32 item)
Which equipment slot a bought item would go in: 2 or 3 for the weapons (the one with the weaker item ...
Definition equip.c:23
void STITSHOP_startFade(PanelAnim *fade, s32 fadeIn)
void STITSHOP_startLerp(MenuLerp *lerp, s32 from, s32 to, s32 frames)
s32 STITSHOP_updateLerp(MenuLerp *lerp)
s32 STITSHOP_updateFade(PanelAnim *fade)
s32 STITSHOP_filesLoading(void)
Whether the shop's strings are still loading.
Definition shop.c:237
void STITSHOP_loadFiles(void)
Loads the shop's textures and requests its strings.
Definition shop.c:224

The shop's helpers.

Definition at line 228 of file stitshop.c.

Referenced by STITSHOP_chooseEquipPartner(), STITSHOP_closeBuyInfo(), STITSHOP_closeEquipQuestion(), STITSHOP_closeSellQuantity(), STITSHOP_closeSellTotal(), STITSHOP_closeSellTypes(), STITSHOP_drawStatsPage(), STITSHOP_endBuyInfo(), STITSHOP_endBuyTotal(), STITSHOP_endEquipped(), STITSHOP_endEquipQuestion(), STITSHOP_fillPartnerRows(), STITSHOP_getShopItems(), STITSHOP_hideBuyInfoPage(), STITSHOP_openBuyInfo(), STITSHOP_openBuyTotal(), STITSHOP_openEquipQuestion(), STITSHOP_openSellQuantity(), STITSHOP_openSellTotal(), STITSHOP_openSellTypes(), STITSHOP_reopenSellList(), STITSHOP_runBuy(), STITSHOP_runBuyInfo(), STITSHOP_runItemList(), STITSHOP_runSell(), STITSHOP_runSellInfo(), STITSHOP_runShop(), STITSHOP_showEquipMarker(), STITSHOP_showPartnerStats(), STITSHOP_startInfoPageTurn(), and STITSHOP_updateShop().