summaryrefslogtreecommitdiff
path: root/src/battle_ai.c
AgeCommit message (Collapse)Author
2017-07-23start decompiling battle_3 git sucksDizzyEggg
2017-07-22various fixes before mergecamthesaxman
2017-07-22Merge pull request #372 from DizzyEggg/masterCameron Hall
decompile battle_4
2017-07-20map out ram variablesdrifloony
2017-07-16Battle4.CDizzyEggg
Changed labels: sub_801A02C = ItemBattleEffects sub_8015150 = GetBattleBank gUnknown_02024BEA = gRandomMove BattleBufferB = gBattleBufferB sub_8090D90 = GetNationalPokedexFlag sub_80151D4 = PressurePPLose ai_rate_move = AI_TypeCalc sub_801B928 = IsPokeDisobedient sub_801E3B4 = BankGetTurnOrder sub_801E3EC = SetMoveEffect sub_814A7FC = DestroyMenuCursor sub_8010B88 = SwitchInClearStructs sub_80325B8 = BattleMusicStop sub_8017718 = CantUseMove sub_8028350 = IsTwoTurnsMove b_feature_update_destiny_bond = DestinyBondFlagUpdate sub_801C108 = JumpIfMoveAffectedByProtect move_weather_interaction = AttacksThisTurn sub_8025E20 = ChangeStatBuffs sub_8020B54 = MoveValuesCleanUp
2017-07-05Merge pull request #346 from ProjectRevoTPP/sound_check_menuyenatch
Sound check menu
2017-07-05Fix tab-aligned commentsyenatch
2017-06-30formattingProjectRevoTPP
2017-06-30finish decompiling sound_check_menu.c except for sub_80BAE78ProjectRevoTPP
2017-06-21battle_h update, labelling battle2.cDizzyEggg
2017-06-19Battle labels named (#333)DizzyEggg
* Changed battle labels
2017-06-16Merge remote-tracking branch 'marijn/clean/headers'yenatch
2017-06-10move some common battle struct definitions to battle.hcamthesaxman
2017-06-07decompile sub_811FAE4 - sub_811FCE8camthesaxman
2017-05-26Make rom match checksumMarijn van der Werf
2017-05-26Sort includesMarijn van der Werf
2017-05-26Add headersMarijn van der Werf
2017-05-22Add data2 headerMarijn van der Werf
2017-05-05Various German patchesMarijn van der Werf
2017-05-05Remove trailing whitespaceMarijn van der Werf
2017-04-27Sort includesMarijn van der Werf
2017-03-18reorganize and add new headers for many filesProjectRevoTPP
2017-02-10misc labels and memcpy/set cleanups (#232)ProjectRevoTPP
* some labels and enumerate player speeds * clear up speed enums * GetPlayerSpeed * oops * start decompiling mauville_old_man.c * formatting * decompile more of mauville_old_man.c * someone fix this please * formatting * make ROM build again * formatting again * make ROM match again * label, document, reorganize, and clean up battle_ai.c * move stuff to battle.h and get rid of battle_2000000 * various changes * labeling * minor labels and formatting * contest ai labels and misc stuff
2017-02-01label, document, reorganize, and clean up battle_ai.c (#228)ProjectRevoTPP
label, document, reorganize, and clean up battle_ai.c
2017-01-21formattingYamaArashi
2017-01-17Remove trailing whitespaceMarijn van der Werf
2017-01-17Sort includesMarijn van der Werf
2017-01-10define battle AI rodata in CYamaArashi
2017-01-10nonmatching BattleAICmd_unk_24YamaArashi
2017-01-10more labels and finish decompiling battle_ai.c except for unk_24 (#184)ProjectRevoTPP
* labels for save_menu_util.c * formatting, i suck at it * fix sub_80712B4 to not use MyTask struct * pls don't kill me * current changes * decompile BattleAICmd_if_damage_bonus * formatting * label thinking struct unk8 * decompile BattleAICMd_if_status_not_in_party * decompile more battle_ai.c functions * Began decompilation of a random file * decompile BattleAICmd_if_can_faint and BattleAICmd_if_cant_faint * decompile unk_3F and unk_40 * decompile if_move_effect and if_not_move_effect * formatting, silly * decompile if_last_move_did_damage and if_encored * decompile unk_45 if_random_2 and unk_47 * decompile get_hold_effect and get_gender * decompile is_first_turn and get_stockpile_count * decompile unk_4C and get_item * decompile unk_4E unk_4F and unk_50 * decompile get_protect_count and the remaining stub macros * decompile call jump and unk_5A * decompile if_level_cond * decompile the last AI macros besides unk_24 * finish decompiling battle_ai.c except for unk_24
2017-01-08decompile BattleAICmd_if_status_in_partyYamaArashi
2017-01-08decompile BattleAICmd_count_alive_pokemonYamaArashi
2017-01-06trim whitespaceYamaArashi
2017-01-06make BattleAICmd_unk_30 matchYamaArashi
2017-01-06quick fix to make ROM build againProjectRevoTPP
2017-01-05more labels (#165)ProjectRevoTPP
* more labels and match sub_810745C * formatting * move BattleStruct to battle.h and combine both loose structs * oops * more labels for rom4.c
2017-01-03more labels in battle_ai.c and intro.c and misc places (#151)ProjectRevoTPP
* make ROM match again * clean up item_use.c labels and clarify functions. * label and clarify some functions in decompress.c * label and clarify berry.c * rename 20239F8 to gBattleTypeFlags * formatting * label intro.c a bit * label battle_ai.c and document some stuff * formatting * more labeling and clarification. * more label stuff
2017-01-02battle type constantsYamaArashi
2017-01-02gBattleTypeFlagsYamaArashi
2016-12-04Fix warnings in battle_ai.cMarijn van der Werf
2016-12-02[WIP] Extract all external function declarations to headers (#114)Marijn van der Werf
* Extract other external function declarations * Fix GBA compilation * Revert `sub_803C434` to asm
2016-11-14Start decompiling battle_ai.c cmd functions (#100)ProjectRevoTPP
* begin decompiling battle AI macros * decompile more battle AI macros * nonmatching function * decompile BattleAICmd_get_ability * current nonmatching work * get BattleAICmd_unk_30 a bit closer * get battle_ai.c into a mergable state.
2016-11-06remove asm() in battle_ai.cYamaArashi
2016-11-06start decompiling battle_ai.c (#92)Cameron Hall