Commit Graph

56 Commits

Author SHA1 Message Date
Bassoonian e5ac2fe0b1 Clean up pokemon/ball/dex mentions in comments 2023-12-12 19:02:36 +01:00
sbird 4ed4b69019 [BUGFIX] for abilities affecting wild encounter tables
fixes a potential buffer overread in TryGetAbilityInfluencedWildMonIndex.
The bug can occur if an electric type mon is in the first slots of a fishing
encounter table and the player carries a mon with the `ABILITY_STATIC` ability.
This never happens in the vanilla codebase.
2023-09-15 19:11:25 +02:00
Bassoonian 7bf34448e4 Rename GAME_STAT_FISHING_CAPTURES to GAME_STAT_FISHING_ENCOUNTERS 2023-06-05 14:15:07 +02:00
Eduardo Quezada 7327be6f9e Made Types and Egg Groups into arrays 2022-11-22 17:05:25 -03:00
Eduardo Quezada 3ed485632f Renamed gBaseStats to gSpeciesInfo 2022-10-24 17:01:48 -03:00
Abaresk af081b08ee Make related func names more concise 2022-10-12 04:35:23 +00:00
Abaresk 11e3f03bd8 Document new metatile wild encounter odds 2022-10-12 04:03:02 +00:00
Eduardo Quezada 65108c3192 Cleaned trailing whitespace 2022-09-11 14:14:49 -04:00
tustin2121 1cb659df8c Renaming Script Contexts
- Determined how the various script contexts were used and renamed accordingly.
- ScriptContext2_Enable/Disable => Lock/UnlockPlayerFieldControls - The sole purpose of the flag is to make sure the player can't move around in the overworld. It has nothing to do with script contexts.
- ScriptContext1 => ScriptContext - It is the global script context used to set up scripts which run over many frames.
- ScriptContext2_RunNewScript => RunScriptImmediately - ScriptContext2's sole purpose was to run scripts immediately and in a separate context, usually while the global context is waiting for things like map loads or screen changes.
2022-08-15 15:18:12 -04:00
Eduardo Quezada a37d8b1346 Documented boolean uses 2022-07-25 14:59:14 -04:00
GriffinR 23f5c9fd5c Clean up pokedex_area_screen 2021-12-31 00:16:56 -05:00
GriffinR 04cc923d6c Handle optional arguments for warp commands, add WARP_ID_NONE 2021-11-16 10:53:00 -05:00
GriffinR 50d3003a0d Text clean-up, TEXT_SPEED_FF to TEXT_SKIP_DRAW 2021-11-03 19:54:20 -04:00
GriffinR b31bddddca Clean up metatile_behavior 2021-10-18 12:54:29 -04:00
GriffinR b01213b8bc Some constants in wild_encounter.c, document Feebas spot generation 2021-10-09 15:23:59 -04:00
GriffinR 862febe03a Add MAP_OFFSET 2021-10-09 13:19:27 -04:00
garakmon d391c136d8 fix encounter slot logic to accomodate changes 2021-06-27 21:14:21 -04:00
GriffinR 86856098a3 Document Dewford Trend 2021-03-31 16:08:42 -04:00
GriffinR 5259898325 Replace POKEMON_SLOTS_NUMBER 2020-10-01 17:07:12 -05:00
GriffinR af09e73d67 Merge branch 'master' into doc-overworld 2020-07-18 20:24:09 -04:00
GriffinR aba42513d3 Clean up some battle scr cmd data 2020-07-18 18:10:15 -04:00
GriffinR abdf7cbf02 Label fishing effect functions 2020-06-29 16:53:38 -04:00
AsparagusEduardo 6eefcb1f82 Using sandstorm weather constant for Sand Veil encounter rate. 2020-04-15 07:40:39 -05:00
GriffinR faf0ba8662 Use macro for randomization with ISO value 2020-02-25 12:54:08 -06:00
GriffinR 75b0c9d7a9 Document Battle Pyramid scripts 2019-12-14 08:38:26 -06:00
GriffinR 4dfa959fa2 Begin documenting Battle Pike and Frontier Util 2019-11-25 18:37:48 -06:00
garak c73e20b6af add subgroups for fishing rods to encounter json 2019-10-14 18:12:03 -05:00
garak 08a3ff77dd index to slot in c file 2019-07-29 20:02:43 -04:00
garak 4594c955b4 create defines to support encounter index ratios 2019-07-01 23:47:45 -04:00
garak adb0a44457 add field info to wild pokemon json 2019-06-30 12:05:45 -04:00
Marcus Huderle 0babaa8c07 Convert wild encounter data to JSON 2019-05-08 17:06:39 -05:00
Marcus Huderle 29d6221935 Convert map data to JSON 2019-01-31 15:51:20 -06:00
Melody 370b1093cd fix feebas check 2018-12-24 13:48:31 -06:00
DizzyEggg ecee02816d Merge with master 2018-12-20 22:53:08 +01:00
Deokishisu a3543c9a34 Move data out of wild_encounter.c
wild_encounter.c is cleaned up, and its data has been moved to src/data/wild_encounters.h.
2018-12-19 22:50:54 -05:00
DizzyEggg f1421d94c3 Up to sub 0x80ce580 2018-12-15 23:58:47 +01:00
nullableVoidPtr f9ff7316d5 Remove uses of INVALID_ defines, clean up some arrays with constants, and spaces -> tabs 2018-12-06 10:38:28 +08:00
nullableVoidPtr 3909b6408c Fix alloc.c as per #386, define INVALID_ constants and rename malloc to alloc as per #325
Some of the INVALID_ are likely erroneously placed, due to lack of documentation
2018-12-06 09:44:08 +08:00
DizzyEggg 4e37723288 Document Battle Pyramid 2018-11-18 17:52:22 +01:00
DizzyEggg d5abd7b696 Document Battle Pie 2018-11-12 14:36:31 +01:00
DizzyEggg 16026fe91d More battle tower. 2018-10-21 00:06:42 +02:00
DizzyEggg 15fe5a031b Merge branch 'master' into decompile_battle_tent 2018-06-30 14:43:41 +02:00
Marcus Huderle 5e00c0bfcf Fix map constants 2018-06-20 19:54:21 -05:00
Marcus Huderle ed8b006e67 Rename map-layout-related things 2018-06-20 19:54:21 -05:00
DizzyEggg 0fe3e612eb battle tent start and create frontier struct in saveblock 2018-06-17 12:30:09 +02:00
Marcus Huderle acc1a5d446 Get all map constants from include/ rather than constants/ 2018-06-15 07:49:21 -05:00
DizzyEggg 541fef5368 move wild data to C 2018-02-05 22:27:29 +01:00
camthesaxman c681b482c2 convert more constants 2017-12-11 12:27:51 -06:00
camthesaxman 19fbf024ff fix merge conflicts 2017-12-05 12:42:30 -06:00
camthesaxman 00896cb3b5 rename rng.c to random.c and rom4.c to overworld.c 2017-12-05 12:27:33 -06:00