summaryrefslogtreecommitdiff
path: root/battle/core.asm
AgeCommit message (Collapse)Author
2017-12-26Split battle/ into data/ and engine/ componentsRemy Oukaour
2017-12-25Resolve #428: Use `HIGH(X)` and `LOW(X)` instead of `X / $100` and `X % ↵Remy Oukaour
$100` or `X >> 8` and `X & $ff`
2017-12-24Add more constants for some maximum valuesRemy Oukaour
2017-12-24Remove all code from main.asm (some labeled INCBINs, like out-of-context ↵Remy Oukaour
graphics, are still present) engine/routines/ stores isolated out-of-context routines as individual files. It might be preferable later to append them to their related engine/ files in unique little SECTIONs, relying on the linkerscript to place them appropriately; or some other organization method. In the meantime, they're now easily findable apart from main.asm's other content.
2017-12-24Merge branch 'master' of https://github.com/pret/pokecrystalRemy Oukaour
2017-12-24Fix issue #345:Remy Oukaour
- GetMonFrontpic → GetEnemyMonFrontpic - GetMonBackpic → GetBattleMonBackpic - FrontpicPredef → GetAnimatedFrontpicPredef - GetFrontpic → GetMonFrontpic - GetBackpic → GetMonBackpic - CutAndPasteMap → PadMapForHDMATransfer
2017-12-24callba/callab → farcall/callfarRemy Oukaour
2017-12-24Misc fixes for the usage of constantsmid-kid
Several improvements that will make it easier to edit some data structures for everyone.
2017-12-16Ad some more constants for meaningful audio WRAM bitsRemy Oukaour
2017-12-15Document one more bug/oversightRemy Oukaour
Move FleeMons table into data/
2017-12-14Replace two numbers with constants (found by pfero)Remy Oukaour
2017-12-12Document more bugsRemy Oukaour
2017-12-11Add member constants for the base data struct, same as most other structsRemy Oukaour
2017-12-11Document macros/map.asmRemy Oukaour
Rename MORN/DAY/NITE to MORN_F/DAY_F/NITE_F; use MORN/DAY/NITE for shifted values (cleaner for person_events) Prefix FLOOR to the `elevfloor` constants
2017-12-10Consistent code formatting: no redundant `a`s and spaces after commasRemy Oukaour
2017-12-09More WRAM cleanupRemy Oukaour
2017-11-30Label all of PARTYMENUACTION_*mid-kid
It's pretty clear what it's used for. PartyMenuActionText is used for two things: 1) Storing what kind of action we're going to do (<$10) 2) Storing the text for some kind of healing stuff I'm not entirely sure (>=$f0) In the former case, if GetPartyMenuTilemapPointers is ran, it will be used to pick a sequence of actions that should be done, specified in the table, and it'll print the corresponding string using the PartyMenuStrings table. The items in the sequence of actions that should be done are in WritePartyMenuTilemap. Strangely enough, one possible value is left completely unused: PARTYMENUACTION_GIVE_MON_FEMALE. It works in the exact same way as it's male counterpart, and as such I don't believe it was used in the japanese version either, since it doesn't matter which gender your 'mon is when you put 'em in the daycare.
2017-11-19DetermineMobileBattleResult -> DisplayLinkBattleResultmid-kid
Changed this function's name, because it confusingly only calls DetermineLinkBattleResult when linked through mobile. It does absolutely nothing with determining the battle result in a regular link battle, and is only responsible for displaying the battle result and counting stats.
2017-11-15Clean up labels in battle/moves/move_effects.asmmid-kid
There were a lot of unused labels in there, and a few confusing misnomers around move_effects_pointers.asm. They now match up exactly with the names in battle_constants.asm. Also renamed a few effects, to make their purpose clearer, and to match up with their respective event script commands: EFFECT_EXPLOSION -> EFFECT_SELFDESCTRUCT EFFECT_HAZE -> EFFECT_RESET_STATS EFFECT_WHIRLWIND -> EFFECT_FORCE_SWITCH EFFECT_BIND -> EFFECT_TRAP_TARGET EFFECT_TWINEEDLE -> EFFECT_POISON_MULTI_HIT EFFECT_STEEL_WING -> EFFECT_DEFENSE_UP_HIT EFFECT_METAL_CLAW -> EFFECT_ATTACK_UP_HIT EFFECT_ANCIENTPOWER -> EFFECT_ALL_UP_HIT
2017-06-24Merge pull request #354 from FredrIQ/commentsyenatch
Fix a reversed label mistake and reference a major bug
2017-06-09Replace ‘jp [hl]’ with ‘jp hl’Ben10do
The former is arguably misleading (as you don’t access the memory location in hl to retrieve the jump location), and is consequently deprecated in newer versions of rgbds. This fix silences these deprecation warnings.
2017-01-16Labels for Trainer Rankings stat tracking functionshatschky
2017-01-08Reverse the LastEnemyCounterMove and LastPlayerCounterMove labelsFredrik Ljungdahl
They were swapped
2016-10-29Fix inverted labels for HandleStatBoostingHeldItemsFredrik Ljungdahl
2016-08-07Rename the variable at D264PikalaxALT
2016-06-13hLCDCPointer and InitListpikalaxalt
2016-06-07Some mystery gift functionspikalaxalt
2016-06-06Remaining layout constantspikalaxalt
2016-05-11Name all printer functionspikalaxalt
2016-05-10Labeled every function in ROM0 that's referenced in the sourcepikalaxalt
2016-05-08All functions in main.asm have non-generic namespikalaxalt
2016-05-05Credit to chaos_lord2 for decoding that load in computing enemy statspikalaxalt
2016-05-04HDMA transfer functionspikalaxalt
2016-04-30Copycat labels; macro for the Crystal-only Unown chamber unlock wordspikalaxalt
2016-04-10Local labels starting with lowercase letters are no longer decorated with a ↵pikalaxalt
trailing colon
2016-04-10Local labels starting with capital letters are now decorated with a trailing ↵pikalaxalt
colon; remove trailing whitespace; globally correct line endings to UNIX style
2016-03-01Battle animation annotationsPikalaxALT
2016-01-18Prepare to mergePikalaxALT
2016-01-13Finish function labels in battle corePikalaxALT
2016-01-12More WRAM tidyingPikalaxALT
2016-01-10PokegearPikalaxALT
2016-01-04more gfx-related labelsPikalaxALT
2015-12-29Item effects, post-battle, and decoration flagsPikalaxALT
2015-12-29More movement stuffPikalaxALT
2015-12-28trainer cardPikalaxALT
2015-12-26jumptable macro repurposedPikalaxALT
2015-12-26Move effects; no more reloadmapmusic, returnafterbattlePikalaxALT
2015-12-24writebackup --> closewindow; game corner prize vendors; othersPikalaxALT
2015-12-23More battle anims and bg effectsPikalaxALT
2015-12-23Battle Anim Object struct constantsPikalaxALT