From c9c42fb3319151221f317b3cbc255f6d117af5b9 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 18 Aug 2017 17:36:59 -0400 Subject: 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. --- gba/source/basestats.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gba/source/basestats.h (limited to 'gba/source/basestats.h') 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 @@ +/* + * Copyright (C) 2017 Scott Norton + * Copyright (C) 2017 hatkirby + * + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ +#ifndef BASESTATS_H +#define BASESTATS_H + +#include + +struct SmallBaseStats { + u8 baseHP; + u8 baseAttack; + u8 baseDefense; + u8 baseSpeed; + u8 baseSpAttack; + u8 baseSpDefense; + u8 genderRatio; + u8 growthRate; +}; + +extern const struct SmallBaseStats gSmallBaseStats[]; + +#endif -- cgit 1.4.1