Commit Graph

27 Commits

Author SHA1 Message Date
ShinyTillDawn
55ccabe22e
Updated flash constants (#109)
* Updated flash constants

* Fixed flash constant locations

I originally supplied anchor references, not locations of the constants themselves. That's been fixed. Also, I changed the field name for flash.radius, so it's hopefully clearer.
2023-02-24 10:56:52 -06:00
haven1433
79503e37a2 fix scripts.newgame.start constants for R/S/E 2023-01-31 06:59:10 -06:00
haven1433
fcf80c907d add type hold effects table
some items can effect the power of specific types. This lets us tap into the mapping of effects-to-type so we can play with it.
2022-11-02 22:48:09 -05:00
haven1433
ac20599845 add scripts.money.cap for emerald
this is our first 4-byte constant, so I had to make some changes to how 4-byte constants worked.
* constref file needs to support 4-byte constants
* WordRun needs to be able to tell the difference between a constant that's matched to a table length (displayed as the table name) and a constant that is not matched to a table name (displayed as the number)
* Goto needs to be able to go to 4-byte constants
2022-10-09 22:44:52 -05:00
Haven1433
1aaf079f8d updating shiny odds for French FireRed 2022-09-11 08:04:19 -05:00
Haven1433
cd6ea07d45 add support for expanding emerald starters 2022-06-28 08:12:10 -05:00
Haven1433
fd80fe8b14 add newgame constants for R/S/E 2022-06-02 23:09:56 -05:00
Haven1433
6d3c95b806 improve shiny odds tooltip 2022-05-17 21:29:11 -05:00
Haven1433
aa6e8e5f06 add professor pokemon constants for FireRed 2022-05-15 00:29:46 -05:00
Haven1433
03922d30dc add constant data.abilities.pickup.length for firered 2022-05-14 23:18:56 -05:00
Haven1433
71c8d1ce6f Update exp boost constants
Change the names based on a suggestion from Egg Lemon Soup, and fix the fact that the Ruby constants were mislabeled. Add the trainer-battle exp boost (pokemon get more exp from trainer battles compared to wild battles.
2022-01-29 20:51:40 -06:00
Benjamin Popp
b1a6faa439 add constants for ev caps
fixed a bug in R/S v1: when adding a constant, clear the existing format before adding it. This matters in case the constant was found in a location that contained auto-discovered text or sprite data that is in error.

Using ClearFormat can change the count of runs in an unexpected way, which makes the index we found unusable. So we need to use ObserveRunWritten like the other sections of this method do... which means we need to add a special "am I allowed to make changes" check into the ModelDelta code that handles tracking MatchedWord changes.
2021-09-04 23:01:27 -05:00
Benjamin Popp
6f61ac4d91 Updates from nature research
* Add draft of nature-count constant and expansion automation script. It's incomplete: more research has to be done into pokeblocks and emerald.
* Fix item effects table length
2021-08-21 22:11:53 -05:00
Benjamin Popp
8a062cb3bd additional tables/constants from Scyrous 2021-08-11 20:06:58 -05:00
Benjamin Popp
449058617f Update pokemon fairy type script
* update the move fallback names
* update the pokedex search terms
* update the unionroom type options
2021-07-23 14:56:25 -05:00
Benjamin Popp
b60595ddff add lucky egg exp boost 2021-07-01 07:47:51 -05:00
Benjamin Popp
9dace7e6e3 Add evolution code table
This table stores the thumb routines for the various evolution methods. But the evolution methods are unnamed, so keep the names stored in a list in the .toml.
2021-04-07 15:22:35 -05:00
Benjamin Popp
a43101cc8e Update move expansion: add level-up list length expansion 2021-03-12 19:56:35 -06:00
Benjamin Popp
d45c7c0461 Introduce data.pokemon.type.length
Since the number of types is determined from code that most existing hacks don't change, that means that the length will be interpreted as the default 18 for almost all hacks.

Since hacks that expand types often customize the end of the type chart, make the match-requirement for recognizing table streams a bit less strict.

Update table-length-from-constant logic to be more fault tolerant and to take the constant multiplier into account. Also fix a bug: the ValueOffset should be subtracted off, not added on.

And most importantly: add constants and update tables involving types.
2021-02-16 08:43:38 -06:00
Benjamin Popp
d727174800 Add newgame constants / item hold effect enum names 2021-01-11 20:23:38 -06:00
Benjamin Popp
ce9b6b5c65 Add Trade Exp Boost Constant 2020-12-30 17:39:13 -06:00
Benjamin Popp
ca13d7fb19 Add Ruby/Sapphire battle badge boost 2020-12-29 18:41:14 -06:00
Benjamin Popp
f09604d73f Badge Boost for FR/LG 2020-12-29 16:31:19 -06:00
Benjamin Popp
da9ce5d25f Badge Boost for Emerald 2020-12-29 16:23:04 -06:00
Benjamin Popp
a52140eaf7 Add constant for introduction show-off pokemon 2020-12-29 15:59:47 -06:00
Benjamin Popp
8d1131f6e2 Populate Constant Reference
Move constants from default TOML files into the constantReference file. This makes it so that constants are condensed from 2010 lines spread between 9 files down to just 137 lines stored in a single file, but all the same information is available. This new format is much lighter on boilerplate, which makes it much faster to skim for constants.
2020-12-29 15:30:28 -06:00
Benjamin Popp
784339cb3d Plumbing for constantReference file
As I add more constants, it becomes apparent that I need a more condensed format for adding these. This won't make it much easier to add, but it will make it easier to see.
2020-12-29 10:34:00 -06:00