Commit Graph

27 Commits

Author SHA1 Message Date
Benjamin Popp
7ecf61ccd5 add list for growth rates 2021-10-19 21:07:47 -05:00
Benjamin Popp
b83ccc4f06 Make pocketid different for R/S/E 2021-08-26 19:43:50 -05:00
Benjamin Popp
d9308fc2eb update trainer ai bit name 2021-07-30 20:20:28 -05:00
Benjamin Popp
4b390ae581 update pokestats unknown field
includes the pokemon color for the pokedex as well as the no-flip bit for the summary screen
2021-07-20 16:51:29 -05:00
Benjamin Popp
8615037f92 Name the bag pockets 2021-05-01 23:10:32 -05:00
Benjamin Popp
9196098221 Add map name popup themes
In Emerald, the box behind the mapname is themed. It looks like wood sometimes, or stone othertimes. Add in the palettes, background graphics, outline graphics, and the mapping data that connects each map name to its theme.

Note that the theme table starts out just like the map name table, but then skips 109 elements (the kanto maps) before putting on the last 16 elements. Because of this, the last 16 elements are mislabeled, and actually refer to the last 16 maps, not the first 16 Kanto maps.
2021-03-17 08:19:26 -05:00
Benjamin Popp
8938dd406b Fix toml upgrade bugs
When upgrading TOML and a table length changes, observe the anchor instead of just observing the run.

Upgrade tests need to verify that no tables are missing.

Move items.stats to the top, since lots of other tables depend on it and it doesn't depend on other tables.

LzTilesets need to create LzTilesets when duplicated (matters during upgrade, since duplication is used to change the palette hint.)

Add DebugDictionary, a DictionaryDecorator (thanks Autoimplement) that makes it possible to observe when an element is removed from a dictionary.

Change the name of the "moveeffects" list to "moveeffectoptions". This is to avoid colliding with the previously expected name "moveeffects" in the tableReference file, which is the old name of scripts.moves.effects.

In the Upgrade Tests, verify that all the names in the fresh list exist in the upgraded list. It's ok if there's some cruft names in the upgrade list that don't appear in the fresh list.
2021-03-05 20:06:30 -06:00
Benjamin Popp
39d979cddc Rename "suicide" to "self ko" 2021-02-26 09:14:34 -06:00
Benjamin Popp
3444c04d20 Rename "suicide" 2021-02-25 22:21:18 -06:00
Benjamin Popp
ca8889e9fb Name the egg groups 2021-02-14 13:08:13 -06:00
Benjamin Popp
d727174800 Add newgame constants / item hold effect enum names 2021-01-11 20:23:38 -06:00
Benjamin Popp
2d7d45536e Add catchmap shape names 2020-12-23 20:07:21 -06:00
Benjamin Popp
b330e54d58 Fix move target entry
stole value from decomps
2020-12-15 19:50:29 -06:00
Benjamin Popp
e5383c1737 bugfixes / new tables
fixing bugs found by TrainerX493
adding tables found by Fred40
2020-10-21 22:32:25 -05:00
Benjamin Popp
03f23dad0d Add contest pokemon for R/S/E 2020-08-20 22:31:46 -05:00
Benjamin Popp
64a5db44f8 Basic support for some battle tower / battle frontier data 2020-08-17 20:49:25 -05:00
Benjamin Popp
529d2a7462 Rename growth effect
Growth doesn't raise attack in these games
2020-08-08 19:09:05 -05:00
Benjamin Popp
50e7341041 add namespace to header elements 2020-07-22 21:56:23 -05:00
Benjamin Popp
4a5569508a Fix move effect constant name 2020-07-19 23:11:16 -05:00
Benjamin Popp
4f9013e474 OW footprints 2020-06-23 10:04:47 -05:00
Benjamin Popp
2f79e0252d Decode movement data correctly for FR/LG
the movement enum is different between FR/LG and R/S/E.
To support this, add default.*.toml files which include extra defaults specific to one or more games. Right now, only a single list is there. But this feature should allow for more interesting game-specific defaults in the future.
2020-04-21 21:38:42 -05:00
Benjamin Popp
1fb1460965 Add movement data from script 2020-04-21 08:16:10 -05:00
Benjamin Popp
85422d06e1 Make it possible to edit scripts inline
Also add support for operator decoding for if statements
Inform users on repoint
2020-04-20 14:56:28 -05:00
Benjamin Popp
6f77ef6d02 add labels to trainerStruct values 2020-04-06 08:31:48 -05:00
Benjamin Popp
90e0027d1d Include AI battle scripting bit names
Values from https://github.com/pret/pokeemerald/blob/master/data/battle_ai_scripts.s#L14
2020-01-20 07:22:14 -06:00
Benjamin Popp
f1696f2394 Use bit-array for pokestats EVs
I was considering making a feature that allowed for custom-width bit arrays. But right now this is the only data that would use it, so let's take a shortcut for now.
2020-01-18 22:17:34 -06:00
Benjamin Popp
dc28c0890f Offload standard anchors / lists to a default toml file
Once again, make things more data-driven to reduce the code. Having a default.toml file makes it easier to add to or change the defaults.
2020-01-13 21:47:14 -06:00