Commit Graph

30 Commits

Author SHA1 Message Date
Rangi
d2c9e2d74f
Use features of RGBDS 1.0.0 (#138)
Some checks are pending
CI / build (push) Waiting to run
2025-11-12 15:44:00 -05:00
Rangi42
9a798b0137 Use offsets from ANIM_* constants for wBattleAfterAnim (formerly wNumHits) 2025-05-31 15:22:54 -04:00
Rangi42
24db8a0183 Add a CANNOT_MOVE constant 2025-05-31 15:12:11 -04:00
Sylvie
7ebc4324db
Identify more bit flags (#120)
Some checks are pending
CI / build (push) Waiting to run
2024-11-28 14:50:00 -05:00
Rangi42
10552c2e39 Consolidate the duplicate stat level data files 2024-06-12 13:14:01 -04:00
SnorlaxMonster
144133d98e Rename MON_ID to MON_OT_ID (pret/pokecrystal#1114)
* Rename MON_ID to MON_TRAINER_ID

The constant name MON_ID implies it relates to the ID number of the
Pokémon itself. However, it actually refers to the Trainer ID number of
the Pokémon's Original Trainer. Renaming it to MON_TRAINER_ID makes it
substantially more clear what its purpose is.

The original definition of MON_ID is preserved in macros/legacy.asm

* Remove MON_ID from macros/legacy.asm

Co-authored-by: Sylvie <35663410+Rangi42@users.noreply.github.com>

* Apply rename to missed file

* Rename to `MON_OT_ID`

---------

Co-authored-by: SnorlaxMonster <snorlaxmonster@users.noreply.github.com>
Co-authored-by: Sylvie <35663410+Rangi42@users.noreply.github.com>
Co-authored-by: vulcandth <vulcandth@gmail.com>
2024-04-27 12:21:32 -05:00
Idain
caffcdd9f7 Replace hardcoded numbers for stats (pret/pokecrystal#1073) 2023-08-21 15:56:09 +00:00
SnorlaxMonster
a4aa97213d Rename BATTLETYPE_SHINY to BATTLETYPE_FORCESHINY (pret/pokecrystal#1058)
* Rename BATTLETYPE_SHINY to BATTLETYPE_FORCED_SHINY

The name BATTLETYPE_SHINY gave the impression that it applied to all
battles with Shiny Pokémon, rather than merely battles with forced
Shiny Pokémon (i.e. Red Gyarados only).

* Rename to BATTLETYPE_FORCESHINY

Align name of BATTLETYPE with BATTLETYPE_FORCEITEM

---------

Co-authored-by: SnorlaxMonster <snorlaxmonster@users.noreply.github.com>
2023-07-27 10:53:25 -05:00
vulcandth
6805c678ee
Rename SLP to SLP_MASK (#84)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
2022-06-17 22:25:55 -04:00
vulcandth
357a90f08f
Remove redundant comments referencing labels (#85) 2022-06-06 17:34:51 -04:00
vulcandth
464c67ee73
RGBDS syntax updates (#78)
New MACRO and DEF syntax
2022-06-06 17:25:39 -04:00
Rangi
d0491ecb6e Use NUM_BATTLE_STATS instead of raw numbers 2022-04-08 17:11:05 -04:00
Rangi
14a21880a0 Use ~X instead of $ff ^ X 2021-11-23 20:50:17 -05:00
Rangi
30d8a72d84 Use EFFECTIVE constant for 1.0× battle damage 2021-09-26 22:04:08 -04:00
Rangi
51aa06097f Rename GetFarHalfword to GetFarWord 2021-01-09 15:16:20 -05:00
Rangi
524f57703f Rename some labels
- Remove "Buffer" suffix from some byte and word quantities
- Change "Ptr" to "Pointer"
2020-12-23 16:46:49 -05:00
Rangi
6382790a1d Terser damage calculation constants 2020-11-09 16:12:17 -05:00
Rangi
9281a44c68 Identify remaining uses of wBuffer1-6 as general-purpose HP buffers 2020-11-03 23:25:20 -05:00
Rangi
b56c1b6351 More syncing with pokecrystal 2020-11-03 10:12:54 -05:00
Rangi
9483cf47dd Replace many '; unused' with '; unreferenced' 2020-10-28 10:21:24 -04:00
Rangi
46f6cc4d41 Comment, remove, or revise many unreferenced labels 2020-10-26 20:30:09 -04:00
Rangi
a325de7630 Identify SwitchItemsInBag labels
Thanks to FIQ for having done so in Polished Crystal
2020-10-21 15:39:19 -04:00
Rangi
f90f4bc62a Remove wKickCounter and wPresentPower aliases for wBattleAnimParam 2020-08-29 20:36:00 -04:00
Rangi
b6bb40fcaf Use LOAD/ENDL for OAM DMA code in HRAM (requires rgbds 0.4.1) 2020-07-21 19:45:15 -04:00
Rangi
7324c1d11a Use MAX_NEUTRAL_DAMAGE in BattleCommand_DamageCalc
Also make .gitignore consistent with pokered
2020-07-05 15:14:07 -04:00
Rangi
bc116a0db0 Harmonize engine/{battle, battle_anims, events, games} with pokecrystal 2020-06-16 19:32:30 -04:00
Rangi
9f01e33a04 Port miscellaneous recent updates from pokecrystal 2020-06-15 13:12:56 -04:00
entrpntr
7b63a9c032 Finish disassembling effect commands. 2020-04-19 15:25:51 -04:00
entrpntr
e953302d3f Continue with effect commands (about 50% complete). 2020-04-19 12:31:56 -04:00
entrpntr
e10598eb20 Start adding engine/battle/effect_commands.asm. 2020-04-19 10:48:54 -04:00