Commit Graph

343 Commits

Author SHA1 Message Date
Seth Barberee
bfde61cee6 some more decomp 2022-11-18 15:14:06 -08:00
Seth Barberee
e12e133458 document more functions and cleanup some code 2022-11-18 10:00:22 -08:00
Seth Barberee
0d02904c9b finish decomp of code_8075BA4.s 2022-11-17 19:50:37 -08:00
Seth Barberee
9befb0ef4e more decomp work 2022-11-12 15:44:26 -08:00
Seth Barberee
4c760a92cb more decomp 2022-11-11 16:49:48 -08:00
Seth Barberee
e9f8c788da more decomp 2022-11-02 22:05:20 -07:00
Seth Barberee
5ecb84bfbc doing some more decomp 2022-10-18 18:45:08 -05:00
AnonymousRandomPerson
393c650201 Merge branch 'master' of https://github.com/pret/pmd-red 2022-10-17 20:25:34 -04:00
Seth Barberee
086f56dc6f Merge branch 'sept_2022' of github.com:SethBarberee/pmd-red into sept_2022 2022-10-17 17:21:23 -07:00
Seth Barberee
62b2d12afe address review 2022-10-17 17:19:48 -07:00
Seth Barberee
efaf26662b Finish converting pokemon found tables to JSON 2022-10-17 09:24:15 -05:00
AnonymousRandomPerson
b1e02bd9ef Decomped GetLeaderEntity() 2022-10-16 22:00:14 -04:00
AnonymousRandomPerson
d93c95ac80 Decomped GetLeaderEntityIfVisible() 2022-10-16 21:26:43 -04:00
AnonymousRandomPerson
427c05dab5 Decomped CanCrossWalls() 2022-10-16 21:14:00 -04:00
AnonymousRandomPerson
42986de336 Decomped TargetLeader() 2022-10-16 20:47:07 -04:00
AnonymousRandomPerson
f54f3b02b1 Merge branch 'master' of https://github.com/pret/pmd-red 2022-10-16 19:55:39 -04:00
AnonymousRandomPerson
e2e4d38776 Decomped ChooseTargetPosition() 2022-10-16 19:48:46 -04:00
Seth Barberee
1e54931d53 More decomp 2022-10-10 10:04:41 -07:00
Seth Barberee
a04883eb86 decomp a few more 2022-10-10 10:04:41 -07:00
Seth Barberee
20babe183e more decomping 2022-10-10 10:04:41 -07:00
Seth Barberee
922695342c decomp multiple move/orb actions and event flag 2022-10-10 10:04:41 -07:00
Seth Barberee
04fa09ec81 more decomping 2022-10-10 10:04:41 -07:00
AnonymousRandomPerson
35d093f690 Merge remote-tracking branch 'upstream/master' 2022-09-17 23:25:29 -04:00
AnonymousRandomPerson
a60c645b70 Rename Kecleon shop functions 2022-09-17 23:24:03 -04:00
Seth Barberee
95aa33612f more decomping 2022-08-26 08:57:51 -07:00
Seth Barberee
7a26ec4d06 more decomping and some cleanup 2022-08-22 11:54:53 -07:00
Seth Barberee
7fd9ef920a continue decomping more dungeon side 2022-08-20 10:03:09 -07:00
Seth Barberee
00940175b4 pre-flight decomp 2022-08-01 09:18:19 -07:00
Seth Barberee
d9893a6274 decomp a few more 2022-07-31 19:13:05 -07:00
Seth Barberee
107bef8fcd better names and clean things up 2022-07-31 15:40:44 -07:00
AnonymousRandomPerson
d04d46950b Started decomping ChooseTargetPosition 2022-07-18 19:23:14 -04:00
Seth Barberee
5443c1b351 address review comment 2022-07-12 16:35:37 -07:00
Seth Barberee
5675d9a1a9 more decomp 2022-07-10 16:10:28 -07:00
Seth Barberee
3239fb776e more decomping 2022-07-10 16:10:28 -07:00
Seth Barberee
1572a015b2 continue documenting music 2022-07-10 16:10:28 -07:00
Seth Barberee
dfffb31195 decomp UpdateSound and label more music stuff 2022-07-10 16:10:28 -07:00
Seth Barberee
6746cb699a continue labeling more music stuff 2022-06-17 11:39:29 -07:00
Seth Barberee
4ba50b5349 document all music players 2022-06-16 16:38:44 -07:00
Seth Barberee
10248ae248 decomp most funcs with CreateRescueTitle 2022-06-12 18:18:09 -07:00
Seth Barberee
b0217dd778 document Fanfare/SoundEffect funcs 2022-06-12 07:46:47 -07:00
Seth Barberee
b6bafe4527 more wonder mail decomp 2022-06-11 20:01:36 -05:00
AnonymousRandomPerson
fd2ed0f93f Decomped CanTakeItem() 2022-06-04 23:16:18 -04:00
Seth Barberee
68b8d3853c finish out all jirachi funcs.. thx jiang for JirachiWish match 2022-06-04 08:36:08 -07:00
Seth Barberee
86196330be document some rescue password 2022-06-03 17:52:24 -07:00
AnonymousRandomPerson
e59285462c Merge remote-tracking branch 'upstream/master' 2022-05-30 13:24:40 -04:00
Seth Barberee
217cd7774d Rename GetMoveUnk12 to GetMoveMaxPowerBoost 2022-05-30 10:03:08 -07:00
Seth Barberee
d1b3d794ab address review comments 2022-05-30 09:58:59 -07:00
Seth Barberee
3a3a2b9c27 decomp sub_8048D50 2022-05-29 12:03:10 -07:00
Seth Barberee
7780e0eba6 do some more decomp 2022-05-28 22:27:11 -07:00
AnonymousRandomPerson
821e14995b Merge remote-tracking branch 'upstream/master' 2022-05-29 00:24:02 -04:00
AnonymousRandomPerson
1448e5903d Added NONMATCHING for Wander() 2022-05-29 00:10:38 -04:00
Seth Barberee
b8cdc75c6e document param for SetVisualFlags 2022-05-20 16:33:14 -07:00
Seth Barberee
3a467af07a decomping decomp 2022-05-20 16:04:12 -07:00
Seth Barberee
773510c329 decomp more of rescue password and label GetDungeonFloorCount 2022-05-16 20:23:45 -07:00
Seth Barberee
3e0ad17b60 label and document more personality test 2022-05-14 18:40:46 -07:00
Seth Barberee
50dca25212 some more decomp dungeon work 2022-05-12 19:51:52 -07:00
Seth Barberee
482ade61be address review commnts, label almost all dialogue and few more funcs 2022-05-07 07:51:12 -07:00
Seth Barberee
576ae3a98b more dungeon items decomp 2022-04-25 18:27:33 -07:00
Seth Barberee
1255d15326 some more decomp 2022-04-24 11:01:01 -07:00
Seth Barberee
6e4fce8608 decomp a few and combine few files 2022-04-23 08:29:33 -07:00
Seth Barberee
519c9ebb6a lazy day so more decomp away 2022-04-22 19:02:28 -07:00
Seth Barberee
01ca155b81 start dumping dialogues 2022-04-16 09:17:32 -07:00
Seth Barberee
16cdcfe04b finish off dungeon random and few simple status funcs 2022-04-04 10:55:21 -07:00
Seth Barberee
7289155f83 decomp some dungeon weather stuff 2022-04-03 17:52:19 -07:00
AnonymousRandomPerson
4e2a813822 Decomped CanMoveForward() 2022-03-26 22:47:38 -04:00
AnonymousRandomPerson
e040eafca8 Decomped AvoidEnemies() 2022-03-26 22:47:38 -04:00
AnonymousRandomPerson
905723858c Decomped MoveIfPossible() 2022-03-26 22:47:38 -04:00
Seth Barberee
57f540b320 fix a few nonmatchings and code cleanup 2022-03-21 17:48:40 -07:00
Seth Barberee
3477f61cf2 continue doing some more decomp 2022-03-13 17:48:04 -07:00
Seth Barberee
aa939e0955 All saving functions decomped
- poke_sub_4 was determined to be Dungeon Index/Floor
- Clean up code that references these functions
2022-03-11 10:14:32 -08:00
Seth Barberee
a5c90b0970 decomp some more saving functions 2022-03-11 10:14:30 -08:00
AnonymousRandomPerson
64651ef818 Renamed move boolean functions 2022-03-10 22:59:38 -05:00
AnonymousRandomPerson
ddb9c518ec Decomped ResetAction() 2022-03-10 22:33:13 -05:00
AnonymousRandomPerson
cc4053130f Decomped TargetRegularAttack() 2022-03-10 22:33:13 -05:00
AnonymousRandomPerson
83d097624b Renamed sprintf() duplicate function 2022-03-10 22:33:13 -05:00
AnonymousRandomPerson
458001dbbd Decomped IsMoveUsable() 2022-03-10 22:33:13 -05:00
AnonymousRandomPerson
951b01114a Decomped IsMoveIndexUsable 2022-03-10 22:33:13 -05:00
AnonymousRandomPerson
26a7012be1 Removed function address comments in favor of .map file 2022-03-10 22:33:12 -05:00
AnonymousRandomPerson
7e0046a2c9 Decomped IsTargetInLineRange()
.
2022-03-10 22:33:12 -05:00
AnonymousRandomPerson
f7a73281cf Decomped GetFlashFireStatus() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
9a4864c1cf Decomped WeightWeakTypePicker() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
8c0df48b9e Decomped WeightMove() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
f50e233c91 Removed redundant struct fills 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
70ce2c1642 Decomped LastUsedMoveOutOfPP() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
07285e7e82 Decomped HasDisabledMove() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
91c0a142cc Decomped HasLastUsedMove() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
17a6ab3794 Decomped CanUseOnTargetWithStatusChecker() 2022-03-10 22:32:17 -05:00
AnonymousRandomPerson
a5296a2f99 Merge remote-tracking branch 'upstream/master' 2022-02-26 13:29:30 -05:00
AnonymousRandomPerson
6e56b9f034 Decomped CanUseStatusMove() 2022-02-24 23:38:21 -05:00
AnonymousRandomPerson
40a34fafd6 Decomped WeightMoveIfUsable() 2022-02-22 22:38:57 -05:00
AnonymousRandomPerson
598a588589 Decomped CanAttackInFront() 2022-02-21 17:03:34 -05:00
AnonymousRandomPerson
33d2d61750 Decomped CanLayTrap() 2022-02-21 15:40:12 -05:00
AnonymousRandomPerson
07795b6ff6 Decomped IsWaterTileset() 2022-02-20 23:59:57 -05:00
AnonymousRandomPerson
4aafa434a6 Decomped IsTileGround() 2022-02-20 23:43:06 -05:00
AnonymousRandomPerson
ec6abc684e Decomped HasQuarterHPOrLess 2022-02-20 22:51:36 -05:00
AnonymousRandomPerson
7c714bd14e Decomped GetWeather() 2022-02-20 22:30:05 -05:00
AnonymousRandomPerson
e54b3427db Decomped IsBossBattle() 2022-02-20 22:12:40 -05:00
AnonymousRandomPerson
60a19d681c Decomped GetMapTile_2 2022-02-20 21:59:23 -05:00
AnonymousRandomPerson
96372eb336 Decomped CanUseOnSelfWithStatusChecker() 2022-02-20 21:59:22 -05:00
Seth Barberee
8e0ba3615a few more decomped funcs 2022-02-17 19:02:44 -06:00
Seth Barberee
ee5fb3584d move data from data to wonder_mail 2022-02-17 18:59:56 -06:00
Seth Barberee
3de1f79307 add more to moves header 2022-02-17 18:59:53 -06:00
Seth Barberee
ef97af7d03 add more funcs to headers and clean externs 2022-02-17 18:54:59 -06:00
Seth Barberee
b2e109dab1 Move some data to src and add some more headers
- Finish moving all data for main menu to src
- Move some more data to wonder_mail
- Add some headers to clean up some externs
2022-02-17 18:54:59 -06:00
AnonymousRandomPerson
ece475a480 Renamed some boolean move functions 2022-02-13 23:17:46 -05:00
AnonymousRandomPerson
2a2a0805b4 Decomped HasType() 2022-02-13 23:15:33 -05:00
AnonymousRandomPerson
3bbb6035e7 Decomped GetMoveTargetingFlagsForPokemon() 2022-02-13 22:30:25 -05:00
AnonymousRandomPerson
a02346be01 Decomped FindMoveTarget() 2022-02-13 22:02:17 -05:00
AnonymousRandomPerson
9939c543ce Decomped TargetTileInFront() 2022-02-05 22:02:03 -05:00
AnonymousRandomPerson
a9b5977d4c Decomped MoveMatchesChargingStatus 2022-02-05 20:23:01 -05:00
AnonymousRandomPerson
f728e7e90e Decomped DecideAttack() 2022-02-04 23:13:01 -05:00
AnonymousRandomPerson
5dc5b3b1f9 Used official or more common names for music tracks 2022-01-26 00:07:18 -05:00
AnonymousRandomPerson
f2457501ee Decomped IsFixedDungeon() 2022-01-25 23:24:14 -05:00
AnonymousRandomPerson
42909d0333 Decomped GetCrossableTerrain() 2022-01-25 23:17:27 -05:00
AnonymousRandomPerson
154c442505 Decomped CanMoveInDirection() 2022-01-25 22:46:40 -05:00
AnonymousRandomPerson
c5cd6e137f Decomped IsSleeping()
-Function provided by SethBarberee.
2022-01-20 18:12:17 -05:00
AnonymousRandomPerson
afbc7deaea Decomped SetWalkAction() 2022-01-13 23:18:59 -05:00
AnonymousRandomPerson
453618864e Decomped HasStatusAffectingActions() 2022-01-13 22:56:30 -05:00
AnonymousRandomPerson
52e7368f30 Labeled CalculateFacingDir() 2022-01-08 00:08:00 -06:00
AnonymousRandomPerson
cbf41c6bf3 Decomped HasNegativeStatus() 2022-01-07 23:32:32 -06:00
AnonymousRandomPerson
42bcb068b6 Decomped CanTargetAdjacentPokemon() 2022-01-07 01:45:35 -06:00
AnonymousRandomPerson
05768ae71d Decomped RoundUpFixedPoint() 2022-01-06 23:11:38 -06:00
AnonymousRandomPerson
d9b1ef43a6 Labeled Warp Scarf variables 2022-01-06 21:52:23 -06:00
AnonymousRandomPerson
c30cf5c6da Decomped EvaluateItem() 2022-01-04 00:00:31 -06:00
AnonymousRandomPerson
a61f7ea2a1 Decomped HasItem() 2021-12-29 23:33:22 -06:00
AnonymousRandomPerson
ea10f7b7bd Created header for pokemon_3 2021-12-28 22:15:56 -06:00
AnonymousRandomPerson
d40d2e55a3 Decomped IsTargetStraightAhead() 2021-12-28 21:38:42 -06:00
AnonymousRandomPerson
4bf154654b Decomped TargetThrownItem() 2021-12-28 21:38:39 -06:00
Seth Barberee
f0ef6ae481 decomp some more 2021-12-24 17:45:49 -06:00
Seth Barberee
e7a59a1a21 move pokemon mail data to src 2021-12-22 17:00:21 -06:00
Seth Barberee
7a1956f51d
Merge pull request #87 from SethBarberee/personality_test_data_2
Personality test data 2
2021-12-21 15:05:05 -06:00
mid-kid
99a038284b Translate all .include to #include
This decision was made to reduce the complexity of using .include whilst
juggling with tools/scaninc and tools/preproc:
- tools/scaninc doesn't apply the proper search rules for .include (it
  assumes #include behavior). In particular, it doesn't consider paths
  starting from $PWD, and doesn't scan the included files as a result.
- .include had to be processed before #include by preproc in many cases,
  as code was being included that had to be preprocessed by CPP (think
  of #define). This contradicts standard GCC behavior.

To make include paths consistent across the asm/ data/ and src/
directories, the following files were moved:
- constants/ → include/asm/constants/
- asm/macros/ → include/asm/macros/
- asm/macros.inc → include/asm/macros.inc
- include/macros/m4a.inc → include/asm/macros/m4a.inc

As part of the necessary changes for this to work, the scaninc method in
the makefile was improved to generate .d files that don't choke when
files are missing.
2021-12-20 16:29:12 +01:00
Seth Barberee
2ec7cc5bad fix nonmatch and move question references 2021-12-19 14:59:10 -08:00
Seth Barberee
3021ae9077 all data moved except questions 2021-12-19 14:59:10 -08:00
AnonymousRandomPerson
0369264407 Decomped GetMapTileAtPosition() 2021-12-18 00:22:03 -05:00
AnonymousRandomPerson
c033aea36e Moved gDungeonGlobalData definition to dungeon_global_data.h 2021-12-17 23:39:50 -05:00
AnonymousRandomPerson
b1fc911965 Decomped InSameRoom_2() 2021-12-17 23:38:06 -05:00
AnonymousRandomPerson
da8fcb2ac8 Decomped CanSee() 2021-12-14 23:26:56 -05:00
AnonymousRandomPerson
cd9a8c5a38 Decomped CanTarget() 2021-12-14 22:54:03 -05:00
mid-kid
087405b9d9 Dump and document status sprites 2021-12-13 10:44:48 -06:00
Cheng Hann Gan
c53bdc35f8
Dungeon random/AI decomp + converted positions to structs (#83)
* Decomped RollPercentChance()

* Decomped DungeonRandomCapped()

* Decomped DungeonRandom()

* Decomped FindRockItemTargets()

-Added position struct.
2021-12-12 12:52:06 -08:00
Cheng Hann Gan
a34c9ab91b
AI decomp + type cleanup (#82)
* Decomped SetAction()

* Changed MapTile.tileType to u16 bit field

* Decomped FindStraightThrowableTargets()

* Cleaned up CannotAttack()

* Cleaned up some externs

* Converted dungeon action to substruct
2021-12-09 10:56:12 -08:00
Seth Barberee
4fc272fea6
No wifi + 2 days on train = more decomp (#80)
* No wifi + 2 days on train = more decomp

* layin some more

* one func, one file
2021-12-01 14:33:06 -08:00
Seth Barberee
fd8720b75c
Label all entities in Boss Fight Cutscenes (#78)
* label all entities in cutscenes

* remove commented func.. wasn't matching anyway

* Skarmony -> Skarmory
2021-11-22 12:14:58 -06:00
Seth Barberee
bfaa55f2fe
Label and doc iq skills and tactics info (#75)
* label/doc iq skills/tactics info

* decomp a few more dungeon_util and label some funcs

* doc the IQSkills field
2021-11-15 11:02:26 -08:00
Cheng Hann Gan
0ea22237c9
Decomped DecideUseItem (#73) 2021-11-13 16:59:20 -08:00
Seth Barberee
561ea52847
Luminous cave (#72)
* fully decomp luminous cave

* remove header file. this one isn't ready yet

* doc few fields and func

* doc more of luminous cave
2021-11-10 08:43:51 -08:00
Seth Barberee
3a1db3dfac Moves and some friend_area_action_menu 2021-11-02 16:31:16 -07:00
Cheng Hann Gan
dd128d78c6
Decomped more dungeon AI (#67)
* Decomped IsMovingClient()

* Fixed typos in boss dialogue

* Fixed spelling of Pelipper

* Decomped CannotUseItems

* Decomped ShouldAvoidEnemies()

* Decomped HasAbility()

* Decomped HasTactic()

* Decomped CannotMove

* Decomped CannotAct() and IsCharging()
2021-10-28 09:01:07 -07:00
Cheng Hann Gan
c98fb2c112
Decomped DecideAction() (#66)
* Decomped DecideAction()

* Defined dungeon Pokémon array sizes
2021-10-22 10:20:01 -07:00