summaryrefslogtreecommitdiff
path: root/macros
AgeCommit message (Collapse)Author
2018-11-18Resolve issue #575: Rename text commandsRangi
2018-11-11Merge pull request #573 from mid-kid/masterRangi
text_jump → text_far
2018-11-11Clarify LEGACY supportmid-kid
2018-11-05text_jump → text_farmid-kid
The previous name for this was rather misleading. It isn't an actual jump like you'd expect the `jp` instruction to behave as. Instead, it behaves more like a `farcall`. This also makes it consistent with its current command ID name of `TX_FAR`.
2018-10-11Stop using __enum__ + 3mid-kid
Abuse __enumdir__ instead, for better readability.
2018-09-09Use existing bigdw macroRangi
2018-08-31Fix #537: Palettes generated from PNGs use .gbcpal directly.Rangi
This avoids overwriting a .pal file from a .png with the same name. It also prevents people from trying to edit generated .pal files.
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-07-28anim_ret_command is an index in a table after allmid-kid
For some reason I thought BattleAnim_Ret was never used, due to how the battle anim loop would be exited early from. It seems I was wrong. Removing commands before anim_ret without it being part of the `enum` seems to break things.
2018-07-18Clean up TX_ commandsmid-kid
Some of the TX_ commands didn't use the TX_ prefix for their constants, and the label names were inconsistent. I've chosen to adopt the `TextCommand_` prefix as opposed to `Text_`, as it has a clear difference in namespace compared to the possibly-used `Text_` namespace for actual dialogue text.
2018-07-18Fix anim_ret_commandmid-kid
2018-07-08Remove extra parenthesesRangi
2018-06-24Fix triple newlines left over from removing address commentsRangi
2018-06-24Remove all address commentsmid-kid
2018-06-04Use structure constants for channel_structmid-kid
2018-05-23Start improving sprite movement engine (to do: identify bit flags)Rangi
Introduce maskbits N[, S]: optionally shift the bitmask
2018-05-11Merge pull request #512 from pret/warningsyenatch
fix lb/ln and "left shift of negative value" warning
2018-05-06Merge branch 'master' of https://github.com/pret/pokecrystalRangi
2018-05-06fix lb/ln and "left shift of negative value" warningyenatch
fixes #511
2018-05-06'rept' is not indentedRangi
2018-05-06Fix rest of the givepokeitem/checkpokeitem referencesmid-kid
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-04Merge branch 'master' of https://github.com/pret/pokecrystalRangi
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-04Label bidefailtextmid-kid
This "unknown" battle command is actually used to give the proper fail message to bide.
2018-04-01Fix file permissionsmid-kid
I have no idea why this was a thing (do people store this repo on FAT32 flash drives or something?), but quite a bit of files had a permission of 755. This isn't really a problem, but it's inconsistent and weird.
2018-03-19Relabel some map-related WRAMRangi
wMisc -> {wSurroundingTiles, wBoxPartialData, wLink_c608} wOverworldMap -> {wOverworldMapBlocks, wHallOfFamePokemonList}
2018-02-25Merge branch 'master' of https://github.com/pret/pokecrystalRangi
# Conflicts: # constants/map_constants.asm # constants/wram_constants.asm # data/radio/oaks_pkmn_talk_routes.asm # data/radio/pnp_hidden_places.asm # engine/battle/core.asm # engine/breeding.asm # engine/phone/phone_scripts.asm # engine/radio.asm # maps/BattleTower1F.asm # maps/OlivineLighthouse2F.asm # maps/OlivineLighthouse6F.asm # maps/PokemonFanClub.asm # maps/RadioTower1F.asm # maps/RadioTower2F.asm # maps/Route30BerryHouse.asm # maps/Route34IlexForestGate.asm # maps/Route36NationalParkGate.asm # maps/RuinsOfAlphKabutoChamber.asm # maps/RuinsOfAlphResearchCenter.asm # maps/VermilionPort.asm # maps/VictoryRoad.asm
2018-02-25Default macro parameters use recursion; avoids repeating internal structureRangi
2018-02-25* loadmenuheader -> loadmenu (ead103d)Rangi
* objectface -> turnobject (c834bda)
2018-02-22Pkmn -> Monmid-kid
Since we're aiming for consistency across the codebase, I believe it includes a uniform way to refer to the creatures this game consists of in the labels of the code. The only exceptions to this rule are labels referring to things named through the use of the <PK><MN> or <PKMN> characters, in which case PKMN is used. Most of this was already consistent enough™, I just picked the convention with the most occurences and fixed the outliers.
2018-02-03Macro factors out sine code, just like sine data, since it's used 5 timesRangi
2018-02-03Merge branch 'master' of https://github.com/pret/pokecrystalRangi
# Conflicts: # audio/engine.asm # constants/gfx_constants.asm # constants/map_data_constants.asm # constants/pokemon_data_constants.asm # constants/sprite_constants.asm # constants/wram_constants.asm # data/maps/data.asm # engine/battle/ai/scoring.asm # engine/battle/core.asm # engine/battle/effect_commands.asm # engine/battle/misc.asm # engine/battle_anims/getpokeballwobble.asm # engine/breeding.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/events/battle_tower/battle_tower.asm # engine/events/battle_tower/rules.asm # engine/events/buena.asm # engine/events/bug_contest/contest_2.asm # engine/events/daycare.asm # engine/events/dratini.asm # engine/events/halloffame.asm # engine/events/happiness_egg.asm # engine/events/kurt.asm # engine/events/lucky_number.asm # engine/events/magnet_train.asm # engine/events/overworld.asm # engine/events/pokerus/pokerus.asm # engine/events/print_unown.asm # engine/events/print_unown_2.asm # engine/events/unown_walls.asm # engine/item_effects.asm # engine/link.asm # engine/mon_menu.asm # engine/player_object.asm # engine/routines/playslowcry.asm # engine/scripting.asm # engine/search.asm # engine/search2.asm # engine/specials.asm # engine/start_menu.asm # engine/timeset.asm # home/battle_vars.asm # home/map.asm # maps/GoldenrodUndergroundSwitchRoomEntrances.asm # maps/IlexForest.asm # maps/KrissHouse2F.asm # maps/Route39Barn.asm # mobile/mobile_12_2.asm # mobile/mobile_40.asm # mobile/mobile_5f.asm # wram.asm
2018-02-03map → map_id; map_def → map; map_data → map_attributesRangi
2018-02-03Use fixed-point DIV function for a generalized sine_wave table macroRangi
2018-02-03can't achieve this with rgbds 0.3.5Rangi
2018-02-02use "x + -1" not "x +- 1"Rangi
(TODO: use "x - 1" once rgbds allows it)
2018-02-02sine_wave macro parameterizes table size, not frequency ("amplitude" was an ↵Rangi
incorrect comment)
2018-02-02oopsRangi
2018-02-02Legacy support macrosRangi
2018-02-02spriteface → objectface, consistent with the other script commandsRangi
2018-02-02Remove checkmorn/checkday/checknite macrosRangi
2018-02-02Similar formatting for similar WRAM areasRangi
2018-02-02Script commands don't have underscoresRangi
2018-02-01warp_event x, y, map, warp_idRangi
2018-02-01More comments and macrosRangi
2018-01-31enum_start like const_defRangi