Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
stitshop.c
Go to the documentation of this file.
1/* STITSHOP's data, all of it in one file */
2
3#include "menus/item_shop.h"
4
5/* The item list each kind of sale shows */
7 1, 2, 3, 4,
8};
9/* Where the stat change arrows go in a partner's column */
11 { 23, 172 }, { 23, 186 }, { 23, 200 }, { 65, 200 }, { 23, 214 }, { 65, 214 },
12};
13/* The stats the info shows, in PartnerTotals.stats: six battle stats, then
14 the resistances */
20/* The strings of the item kinds (the records' kind) */
22 0, 35, 36, 37,
23 38, 39, 40, 41,
24 42,
25};
26/* The shops' names, by ItemShop.shop */
28 17, 1, 5, 18,
29 6, 25, 13, 24,
30 4, 12, 29, 30,
31 16, 21, 9, 19,
32 2, 7, 20, 8,
33 26, 14, 23, 3,
34 11, 27, 28, 15,
35 22, 10,
36};
37/* The items each shop sells (STITSHOP_shops), up to 0 */
39 0x05C, 0x06A, 0x09D, 0x0A7, 0x0BE, 0x0D7, 0x0E2, 0x0EC,
40 0x0F9, 0x106, 0x113, 0x000,
41};
43 0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
44 0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
45 0x13A, 0x13B, 0x000,
46};
48 0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
49 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
50 0x052, 0x053, 0x054, 0x000,
51};
53 0x060, 0x06E, 0x07A, 0x086, 0x093, 0x0A1, 0x0AB, 0x0B2,
54 0x0B9, 0x0C2, 0x0C9, 0x0D1, 0x0DB, 0x0E6, 0x0F0, 0x0FD,
55 0x10A, 0x117, 0x000,
56};
58 0x02B, 0x02C, 0x000,
59};
61 0x05D, 0x06B, 0x09E, 0x0A8, 0x0BF, 0x0D8, 0x0E3, 0x0ED,
62 0x0FA, 0x107, 0x114, 0x000,
63};
65 0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
66 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
67 0x052, 0x053, 0x054, 0x000,
68};
70 0x05E, 0x06C, 0x09F, 0x0A9, 0x0C0, 0x0D9, 0x0E4, 0x0EE,
71 0x0FB, 0x108, 0x115, 0x000,
72};
74 0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
75 0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
76 0x13A, 0x13B, 0x000,
77};
79 0x02B, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048, 0x049,
80 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050, 0x051,
81 0x052, 0x053, 0x054, 0x000,
82};
84 0x05F, 0x06D, 0x078, 0x084, 0x091, 0x0A0, 0x0AA, 0x0B0,
85 0x0B7, 0x0C1, 0x0C7, 0x0CF, 0x0DA, 0x0E5, 0x0EF, 0x0FC,
86 0x109, 0x116, 0x000,
87};
89 0x05F, 0x06D, 0x078, 0x084, 0x091, 0x0A0, 0x0AA, 0x0B0,
90 0x0B7, 0x0C1, 0x0C7, 0x0CF, 0x0DA, 0x0E5, 0x0EF, 0x0FC,
91 0x109, 0x116, 0x000,
92};
94 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
95 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
96 0x051, 0x052, 0x053, 0x054, 0x000,
97};
99 0x061, 0x06F, 0x07B, 0x087, 0x094, 0x0A2, 0x0AC, 0x0B3,
100 0x0BA, 0x0C3, 0x0CA, 0x0D2, 0x0DC, 0x0E7, 0x0F1, 0x0FE,
101 0x10B, 0x118, 0x000,
102};
104 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
105 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
106 0x051, 0x052, 0x053, 0x054, 0x000,
107};
109 0x065, 0x073, 0x07F, 0x08C, 0x098, 0x0A6, 0x0AF, 0x0B6,
110 0x0BD, 0x0C6, 0x0CE, 0x0D6, 0x0E1, 0x0EB, 0x0F8, 0x105,
111 0x112, 0x123, 0x000,
112};
114 0x125, 0x127, 0x129, 0x12B, 0x12D, 0x12F, 0x130, 0x131,
115 0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
116 0x13A, 0x13B, 0x000,
117};
119 0x02B, 0x02C, 0x02D, 0x042, 0x043, 0x045, 0x046, 0x047,
120 0x048, 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F,
121 0x050, 0x051, 0x052, 0x053, 0x054, 0x000,
122};
124 0x062, 0x070, 0x07C, 0x088, 0x089, 0x095, 0x0A3, 0x0CB,
125 0x0D3, 0x0DD, 0x0DE, 0x0E8, 0x0F2, 0x0F3, 0x0F4, 0x0F5,
126 0x0FF, 0x100, 0x101, 0x102, 0x10C, 0x10D, 0x10E, 0x10F,
127 0x119, 0x11A, 0x11B, 0x11C, 0x11D, 0x11E, 0x11F, 0x120,
128 0x000,
129};
131 0x02F, 0x030, 0x031, 0x032, 0x033, 0x034, 0x035, 0x036,
132 0x037, 0x038, 0x039, 0x03A, 0x03B, 0x03C, 0x03D, 0x000,
133};
135 0x060, 0x06E, 0x07A, 0x086, 0x093, 0x0A1, 0x0AB, 0x0B2,
136 0x0B9, 0x0C2, 0x0C9, 0x0D1, 0x0DB, 0x0E6, 0x0F0, 0x0FD,
137 0x10A, 0x117, 0x000,
138};
140 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
141 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
142 0x051, 0x052, 0x053, 0x054, 0x000,
143};
145 0x061, 0x06F, 0x07B, 0x087, 0x094, 0x0A2, 0x0AC, 0x0B3,
146 0x0BA, 0x0C3, 0x0CA, 0x0D2, 0x0DC, 0x0E7, 0x0F1, 0x0FE,
147 0x10B, 0x118, 0x000,
148};
150 0x124, 0x126, 0x128, 0x12A, 0x12C, 0x12E, 0x130, 0x131,
151 0x132, 0x133, 0x134, 0x135, 0x136, 0x137, 0x138, 0x139,
152 0x13A, 0x13B, 0x000,
153};
155 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
156 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
157 0x051, 0x052, 0x053, 0x054, 0x000,
158};
160 0x063, 0x071, 0x07D, 0x08A, 0x096, 0x0A4, 0x0AD, 0x0B4,
161 0x0BB, 0x0C4, 0x0CC, 0x0D4, 0x0DF, 0x0E9, 0x0F6, 0x103,
162 0x110, 0x121, 0x000,
163};
165 0x064, 0x072, 0x07E, 0x08B, 0x097, 0x0A5, 0x0AE, 0x0B5,
166 0x0BC, 0x0C5, 0x0CD, 0x0D5, 0x0E0, 0x0EA, 0x0F7, 0x104,
167 0x111, 0x122, 0x000,
168};
170 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
171 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
172 0x051, 0x052, 0x053, 0x054, 0x000,
173};
175 0x064, 0x072, 0x07E, 0x08B, 0x097, 0x0A5, 0x0AE, 0x0B5,
176 0x0BC, 0x0C5, 0x0CD, 0x0D5, 0x0E0, 0x0EA, 0x0F7, 0x104,
177 0x111, 0x122, 0x000,
178};
180 0x02B, 0x02C, 0x042, 0x043, 0x045, 0x046, 0x047, 0x048,
181 0x049, 0x04A, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F, 0x050,
182 0x051, 0x052, 0x053, 0x054, 0x000,
183};
185 0x001, 0x002, 0x003, 0x004, 0x005, 0x006, 0x007, 0x008,
186 0x009, 0x00A, 0x00B, 0x00C, 0x00D, 0x00E, 0x00F, 0x010,
187 0x011, 0x012, 0x013, 0x014, 0x015, 0x016, 0x017, 0x018,
188 0x019, 0x01A, 0x01B, 0x01C, 0x01D, 0x01E, 0x01F, 0x020,
189 0x021, 0x022, 0x023, 0x024, 0x025, 0x026, 0x027, 0x028,
190 0x029, 0x02A, 0x168, 0x18A, 0x18B, 0x18C, 0x18D, 0x18E,
191 0x18F, 0x190, 0x191, 0x192, 0x000,
192};
193/* The shops, by ItemShop.shop */
195 { 11, STITSHOP_stock0 },
196 { 18, STITSHOP_stock1 },
197 { 19, STITSHOP_stock2 },
198 { 18, STITSHOP_stock3 },
199 { 2, STITSHOP_stock4 },
200 { 11, STITSHOP_stock5 },
201 { 19, STITSHOP_stock6 },
202 { 11, STITSHOP_stock7 },
203 { 18, STITSHOP_stock8 },
204 { 19, STITSHOP_stock9 },
205 { 18, STITSHOP_stock10 },
206 { 18, STITSHOP_stock11 },
207 { 20, STITSHOP_stock12 },
208 { 18, STITSHOP_stock13 },
209 { 20, STITSHOP_stock14 },
210 { 18, STITSHOP_stock15 },
211 { 18, STITSHOP_stock16 },
212 { 21, STITSHOP_stock17 },
213 { 32, STITSHOP_stock18 },
214 { 15, STITSHOP_stock19 },
215 { 18, STITSHOP_stock20 },
216 { 20, STITSHOP_stock21 },
217 { 18, STITSHOP_stock22 },
218 { 18, STITSHOP_stock23 },
219 { 20, STITSHOP_stock24 },
220 { 18, STITSHOP_stock25 },
221 { 18, STITSHOP_stock26 },
222 { 20, STITSHOP_stock27 },
223 { 18, STITSHOP_stock28 },
224 { 20, STITSHOP_stock29 },
225 { 52, STITSHOP_stock30 },
226};
227/* The shop's helpers */
signed int s32
Definition common.h:11
signed short s16
Definition common.h:9
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
#define STAT_STRENGTH
the six battle stats
Definition game_state.h:286
#define STAT_SPIRIT
Definition game_state.h:288
#define STAT_SPEED
Definition game_state.h:290
#define STAT_DEFENSE
Definition game_state.h:287
#define STAT_CHARISMA
Definition game_state.h:291
#define STAT_RESISTS
the first of the seven resistances
Definition game_state.h:292
#define STAT_WISDOM
Definition game_state.h:289
STITSHOP.PRO: the item shop.
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
s16 STITSHOP_stock4[]
Definition stitshop.c:57
s16 STITSHOP_stock21[]
Definition stitshop.c:139
s16 STITSHOP_stock9[]
Definition stitshop.c:78
s16 STITSHOP_stock15[]
Definition stitshop.c:108
s16 STITSHOP_stock26[]
Definition stitshop.c:164
s16 STITSHOP_stock14[]
Definition stitshop.c:103
s32 STITSHOP_stats[]
The stats the info shows, in PartnerTotals.stats: six battle stats, then the resistances.
Definition stitshop.c:15
s16 STITSHOP_stock11[]
Definition stitshop.c:88
s16 STITSHOP_stock0[]
The items each shop sells (STITSHOP_shops), up to 0.
Definition stitshop.c:38
s32 STITSHOP_sellLists[]
The item list each kind of sale shows.
Definition stitshop.c:6
s32 STITSHOP_kindStrings[]
The strings of the item kinds (the records' kind)
Definition stitshop.c:21
s16 STITSHOP_stock10[]
Definition stitshop.c:83
s16 STITSHOP_stock16[]
Definition stitshop.c:113
s16 STITSHOP_stock12[]
Definition stitshop.c:93
s16 STITSHOP_stock23[]
Definition stitshop.c:149
ItemShopFuncs STITSHOP_funcs
The shop's helpers.
Definition stitshop.c:228
s16 STITSHOP_stock24[]
Definition stitshop.c:154
s16 STITSHOP_stock13[]
Definition stitshop.c:98
s16 STITSHOP_stock5[]
Definition stitshop.c:60
s16 STITSHOP_stock30[]
Definition stitshop.c:184
s16 STITSHOP_stock28[]
Definition stitshop.c:174
ShopList STITSHOP_shops[31]
The shops, by ItemShop.shop.
Definition stitshop.c:194
s16 STITSHOP_stock27[]
Definition stitshop.c:169
s16 STITSHOP_stock22[]
Definition stitshop.c:144
s16 STITSHOP_stock25[]
Definition stitshop.c:159
s16 STITSHOP_stock17[]
Definition stitshop.c:118
s16 STITSHOP_stock1[]
Definition stitshop.c:42
s16 STITSHOP_stock8[]
Definition stitshop.c:73
s32 STITSHOP_shopNames[]
The shops' names, by ItemShop.shop.
Definition stitshop.c:27
Vec2 STITSHOP_changePos[]
Where the stat change arrows go in a partner's column.
Definition stitshop.c:10
s16 STITSHOP_stock2[]
Definition stitshop.c:47
s16 STITSHOP_stock29[]
Definition stitshop.c:179
s16 STITSHOP_stock7[]
Definition stitshop.c:69
s16 STITSHOP_stock6[]
Definition stitshop.c:64
s16 STITSHOP_stock18[]
Definition stitshop.c:123
s16 STITSHOP_stock3[]
Definition stitshop.c:52
s16 STITSHOP_stock20[]
Definition stitshop.c:134
s16 STITSHOP_stock19[]
Definition stitshop.c:130
The shop's helpers (STITSHOP_funcs)
Definition item_shop.h:224
A shop: the items it sells.
Definition item_shop.h:218
Definition gfx.h:352