summaryrefslogtreecommitdiff
path: root/engine
AgeCommit message (Collapse)Author
2018-06-04Merge branch 'master' of https://github.com/pret/pokecrystalmid-kid
2018-06-03Create empty sections for the remaining FixPicBank array entriesRangi
2018-06-03Change FixPicBank bank arrayRangi
2018-06-01Miscellaneous fixes in the use of _command constants.mid-kid
2018-06-01SGB palette roles discovered from Spaceworld beta G/SRangi
2018-05-29Same pic bank solution as pokecrystalRangi
2018-05-24Function6ec1 → CanObjectMoveInDirectionRangi
2018-05-23Use constants moreRangi
2018-05-23Identify more sprite move data flag bitsRangi
2018-05-23Identify USE_OBP1_FRangi
2018-05-23WALKS_ON_WATER → SWIMMINGRangi
2018-05-23More sprite movement data flag constantsRangi
2018-05-23Use known sprite movement data flag constantsRangi
2018-05-23Start improving sprite movement engine (to do: identify bit flags)Rangi
Introduce maskbits N[, S]: optionally shift the bitmask
2018-05-20adc a, 0 → adc 0; fix commentsRangi
2018-05-20Use REGISTERED_* constantsRangi
128px wide pack_menu.png matches BGB VRAM viewer, and rows+cols match hex tile IDs (e.g. $24 = row 3 col 5)
2018-05-191 << FRZ == $20Rangi
2018-05-18Constants for PC menu indexesRangi
'db ' -> 'db '
2018-05-11Revert "Fix #511: eliminate "Left shift of negative value" warnings"yenatch
This reverts commit aa51dbc61245d5b4949c1872b3d3e915a981ded3.
2018-05-06Merge branch 'master' of https://github.com/pret/pokecrystalRangi
2018-05-06Fix #511: eliminate "Left shift of negative value" warningsRangi
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-10fix label from the wrong bank in the title screenyenatch
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-05Use data/items/pocket_names.asmmid-kid
2018-04-05GENDERLESS -> GENDER_UNKNOWNmid-kid
This is how they're called in official sources, and it fits better with the other `GENDER_` constants.
2018-04-05check_nick_errors → correct_nick_errors; matches correct_party_errorsRangi
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-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.
2018-04-04Comment SapHealthmid-kid
Also fixed some Beat Up inconsistencies to make it more readable.
2018-04-04Fix snake_case filenamesmid-kid
Renamed a bunch of files, most of them one-off functions, to better fit the general snake_case naming scheme. Also renamed some awfully long filenames.
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-25`flagpredef.asm` → `smallflag.asm`mid-kid
2018-03-25Organize the engine/ directory, director's cutmid-kid
Cleaned up `engine/routines`, in favor of moving files into more appropriate directories. predef-related routines are now in top-level `engine`. `rtc/delete_save_change_clock.asm` has been split into both `menus/delete_save.asm` and `rtc/reset_password.asm`. Made a new subdirectory: * engine/math: Contains all generic math-related routines.
2018-03-25Organize the engine/ directory, take 3mid-kid
Renamed `title` to `movies`. Moved some functions from `engine/routines/` to their fitting directories, and cleaned up the base `engine/` directory. Moved `engine/pokemon/tmhm.asm` back to `engine/items/`. Made a new subdirectory: * engine/tilesets: Contains all map-related graphics routines.
2018-03-19Relabel some map-related WRAMRangi
wMisc -> {wSurroundingTiles, wBoxPartialData, wLink_c608} wOverworldMap -> {wOverworldMapBlocks, wHallOfFamePokemonList}
2018-03-14Move init_gender and intro_menu to menusmid-kid
They are actually some kind of menus, and as such make sense there.
2018-03-14Organize the engine/ directory, take 2mid-kid
Renamed `game` to `games` and `menu` to `menus`. Moved some functions from `engine/routines/` to their fitting subdirectories. Made two new subdirectories: * engine/rtc: Contains all RTC-related things. Menus, hardware, misc functions. * engine/items: Contains all item-related things. Pack, item effects, other item handlers.
2018-03-13Organize the engine/ directorymid-kid
This is an informed attempt at reorganizing the engine/ directory by creating categorized subdirectories, in order to make it easier to navigate and find things. The directories created are as follows: * engine/game: Contains all "minigames", things like the unown puzzle and slot machine. * engine/gfx: Contains all handling of graphics. From loading palettes to playing animations. * engine/link: Contains all multiplayer functionality. * engine/menu: Contains all generic/misc. menus and menu code. Other, more specialized menus are in their own subdirectories (pokedex, pokegear, party menu, etc). * engine/overworld: Contains all handling of the overworld. From loading and connecting maps to wild encounters and the scripting engine. * engine/pokegear: In the same vein as engine/pokedex, except it could use some more splitting up. * engine/pokemon: Contains everything related to manipulating pokemon data. From the pokemon storage system to evolution and mail. * engine/printer: Contains everything related to printing things as well as the printer communication. * engine/title: Contains intro sequences, title screens and credits.
2018-03-04HOF_MASTER_COUNT EQU 200Rangi
2018-03-02Improve some code labelsRangi