diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-08-18 17:36:59 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-08-18 17:36:59 -0400 |
commit | c9c42fb3319151221f317b3cbc255f6d117af5b9 (patch) | |
tree | 74b754f9343c0f9fb6154ea200408afc088a626d /gba/source/basestats.h | |
parent | 8ad189bc5a88f43e688fc980db30169f0adac0fb (diff) | |
download | gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.tar.gz gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.tar.bz2 gen3uploader-c9c42fb3319151221f317b3cbc255f6d117af5b9.zip |
Removed dependency on ROM-internal arrays
I looked at the base stats array and determined that, especially if I limited it to just the data I needed, that it wouldn't be too bad a thing to just include it and the other two arrays I need in my multiboot image rather than reference the ones already located in the game ROM. This way, we get back compatibility with all previously-compatible ROMs, and not just ones that I have dumped. New issue: Deoxys's base stats are actually different per-game, though, so a special case will have to be written for that.
Diffstat (limited to 'gba/source/basestats.h')
-rw-r--r-- | gba/source/basestats.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gba/source/basestats.h b/gba/source/basestats.h new file mode 100644 index 0000000..8adb031 --- /dev/null +++ b/gba/source/basestats.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 Scott Norton | ||
3 | * Copyright (C) 2017 hatkirby | ||
4 | * | ||
5 | * This software may be modified and distributed under the terms | ||
6 | * of the MIT license. See the LICENSE file for details. | ||
7 | */ | ||
8 | #ifndef BASESTATS_H | ||
9 | #define BASESTATS_H | ||
10 | |||
11 | #include <gba.h> | ||
12 | |||
13 | struct SmallBaseStats { | ||
14 | u8 baseHP; | ||
15 | u8 baseAttack; | ||
16 | u8 baseDefense; | ||
17 | u8 baseSpeed; | ||
18 | u8 baseSpAttack; | ||
19 | u8 baseSpDefense; | ||
20 | u8 genderRatio; | ||
21 | u8 growthRate; | ||
22 | }; | ||
23 | |||
24 | extern const struct SmallBaseStats gSmallBaseStats[]; | ||
25 | |||
26 | #endif | ||