summaryrefslogtreecommitdiff
path: root/engine/battle
AgeCommit message (Collapse)Author
2018-08-25hLabel - $ff00 -> LOW(hLabel)Rangi
2018-08-25Use labels instead of constants for HRAMRangi
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
2018-08-17CheckDestinyBond -> CheckFaintmid-kid
Its main function is fainting the opponent and ending the move effect. Updated the comment accordingly.
2018-08-17Fix some StatUp-related labelsmid-kid
2018-08-16GetDamageStatsCritical -> CheckDamageStatsCriticalmid-kid
Clarified its usage, as the comments surrounding it were factually wrong.
2018-08-07Fix more uses of EFFECTIVEmid-kid
2018-08-07Fix constants in BattleCommand_MirrorCoatmid-kid
2018-07-29No wCurMove alias for wCurSpeciesRangi
2018-07-29Make reviewed fixes; standardize on " + "Rangi
2018-07-29Improve wTrainerHUDTiles usageRangi
2018-07-29Add meaningful aliases for wd265Rangi
Introduce MONICON_* constants Introduce BATTLEPLAYERACTION_* constants
2018-07-27Crystal fixed TruncateHL_BC in single playerRangi
2018-07-27Merge branch 'master' of https://github.com/pret/pokecrystalmid-kid
2018-07-26Consistently use the diff format in bugs_and_glitchesmid-kid
2018-07-24MON_STAT_EXP - 1 → MON_EXP + 2Rangi
2018-07-23StringCmp → CompareBytes; CompareLong → CompareBytesLongRangi
hStringCmpString[1/2] → h[EnemyMon/PartyMon1]Speed
2018-07-22ANIM_MON_UNUSED → ANIM_MON_HOFRangi
2018-07-21Merge branch 'master' of hyperdriveguy/pokecrystalIIMarckus
2018-07-20Add Counter and Mirror Coat bugfixHyperdriveguy
2018-07-18Fix misnamed character codesmid-kid
Some character codes were erroneously named after their text command counterparts. This has caused a lot of confusion with naming their functions and with other things. I've also removed the `dict2` macro and expanded the `dict` macro. This really isn't something we should be doing for macros but I can't deny it looks a lot neater than repeated code.
2018-07-18Remove some more address commentsmid-kid
2018-07-16Fewer uses of 'Thing2 - Thing1' for sizeof(Thing)Rangi
2018-07-11Replace more hex values with constants or decimalRangi
2018-07-04Miscellaneous reorganization fixesRangi
2018-06-25Use specific constants for overwritten text tilesRangi
2018-06-25Keep more data/ INCLUDEs with relevant routinesRangi
2018-06-25No space between labels and bodiesRangi
2018-06-25Single newline at the end of filesRangi
2018-06-25Remove more triple newlinesRangi
2018-06-24Fix triple newlines left over from removing address commentsRangi
2018-06-24Remove more address commentsRangi
2018-06-25Remove even more address commentsmid-kid
That should be all of them this time
2018-06-24Remove all address commentsmid-kid
2018-06-12Note which labels are only needed for locating banks (relevant to issue #485)Rangi
2018-06-04Merge branch 'master' of https://github.com/pret/pokecrystalmid-kid
2018-06-01Miscellaneous fixes in the use of _command constants.mid-kid
2018-05-23Start improving sprite movement engine (to do: identify bit flags)Rangi
Introduce maskbits N[, S]: optionally shift the bitmask
2018-05-191 << FRZ == $20Rangi
2018-05-06Merge branch 'master' of https://github.com/pret/pokecrystalRangi
2018-05-06'rept' is not indentedRangi
2018-05-05fix-various-little-thingsmid-kid
A compilation of suggestions from the discord that don't deserve separate commits and are not questionable at all™.
2018-04-09Merge pull request #503 from Rangi42/masteryenatch
Factor wMisc into meaningful parts; move most code out of home.asm
2018-04-05Use constants for bit/set/res moreRangi
2018-04-05HanleDefrost -> HandleDefrostmid-kid
2018-04-05Fix some uses of EFFECTIVEmid-kid
2018-04-04Merge pull request #505 from mid-kid/battlecommandsyenatch
Battle command fixes
2018-04-04Rename some battle commandsmid-kid
`hittarget` was misleading, as it doesn't actually "hit" the target, it only plays the animation. As such, I've renamed it to `moveanim`. `checkfaint` has nothing to do with checking if the user or target has fainted, instead, it applies wCurDamage onto the target's HP, hitting the substitute if applicable. I've renamed the command to `applydamage` and all of its subfunctions accordingly.
2018-04-04Label BattleCommand_BeatUpFailTextmid-kid
2018-04-04`endloop` loops back to critical itselfmid-kid
The comments seemed to specify that `endloop` loops back to the command before `critical` and executes that, which simply isn't true. It loops back to `critical` itself, and executes `critical`, before continuing on with the remaining commands.
2018-04-04Label bidefailtextmid-kid
This "unknown" battle command is actually used to give the proper fail message to bide.