Vortyne
5f7b444ae8
Use constant in wram for hidden item flags ( #445 )
...
Prevents defining more hidden items than the flag array has room for
2024-05-05 09:56:08 -05:00
vulcandth
d4d7b91aec
Convert a couple ds 2 to dw
2023-11-22 15:12:40 +00:00
Rangi42
b066d3c9bc
Add bigdw
and dc
data macros
2023-11-20 17:53:19 -05:00
dannye
b302e93674
Use map object consts in data/maps/hide_show_data.asm ( #432 )
2023-10-11 20:12:25 -05:00
vulcandth
d001ced41b
Add macros, constants, and labels for map scripts and text ( #367 )
...
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00
vulcandth
74cee737f6
Rename macros/wram.asm
to macros/ram.asm
( #388 )
2022-09-11 01:05:04 -04:00
Rangi
bbb0e7e82d
Use the same music headers as pokecrystal ( #382 )
2022-08-11 21:23:08 -04:00
vulcandth
6b5be9129c
RGBDS syntax updates ( #358 )
...
New MACRO and DEF syntax
2022-06-06 17:25:31 -04:00
vulcandth
fe8d3c51a4
Build the Virtual Console patches with make red_vc
and make blue_vc
( #351 )
2022-03-26 16:59:36 -04:00
Rangi
865d37e02a
Use compound assignment operators
2021-11-23 20:56:57 -05:00
Rangi
157b593561
Use dn
for wave instrument samples, like pokecrystal
2021-11-06 13:24:19 -04:00
Rangi
fc899e1906
warp_event
warp IDs start at 1, like in pokegold/pokecrystal
2021-10-05 21:02:42 -04:00
Yoann Fievez
2c4f35848b
Unify map event gen1 gen2 ( #335 )
...
* Update sign to bg_event #289
* Rename warp to warp_event
* Replace object to object_event
* Move warp macro parameter from warp x, y, id, map to warp_event x, y, map, id
2021-09-26 21:56:09 -05:00
Rangi
f9ae7b1240
More WRAM label cleanup (still needs UNIONs and renaming)
2021-05-31 16:25:16 -04:00
Rangi
8701ef4d61
Improve some RAM formatting
2021-05-31 11:46:10 -04:00
Rangi
ce62dca69b
Eliminate unnecessary data macros
2021-05-30 17:28:26 -04:00
Rangi
346ce9454a
Use macros for bit arrays
2021-05-23 22:09:02 -04:00
Rangi
715496bf35
Fix end_nybble_array
2021-05-23 21:51:20 -04:00
Rangi
653b62139d
Use macros for packed arrays of nybbles
2021-05-23 18:33:14 -04:00
Rangi
dd690920c9
Use rgbds 0.5.0 features:
...
- FOR loops
- {interpolation}
- REDEF EQUS
- \# for all macro args
2021-04-17 19:06:56 -04:00
Rangi
506a14084e
The 'def_trainers' macro checks that trainers' event flag bits are correct ( #318 )
2021-04-13 18:24:37 -04:00
Rangi
2954013da1
Trim extra newlines from some files
2021-04-08 12:51:25 -04:00
Rangi
95ec2cf039
Verify data table and name list sizes with assertion macros
...
Fixes #312
2021-03-25 16:44:41 -04:00
Rangi
e1ef02430d
Simplify the def_warps_to macro
2021-02-23 12:05:03 -05:00
Rangi
94daf57156
The 'tmhm' macro adjusts to the number of TMs/HMs
2021-01-06 10:20:37 -05:00
dannye
66377fca32
Fix file modes
2020-11-14 20:52:10 -06:00
Rangi
d3e81422d5
Sync home and macro code with pokeyellow
2020-11-05 10:50:30 -05:00
Rangi
d5db0c3dbf
Comments explain the def_warps_to macros
2020-08-18 10:42:23 -04:00
Rangi
5e1865a7b1
Implement def_warps_to in a simpler way
...
Instead of building a semicolon-separated "array" of warp_to coordinates in _WARP_TO_BUFFER, just declare a new EQUS for each one: _WARP_TO_NUM_1, _WARP_TO_NUM_2, etc. Then have def_warps_to output and PURGE each one of them.
2020-08-17 19:39:58 -04:00
Rangi
6fa8a553cb
Fix keyword capitalization and indentation
2020-08-17 18:40:59 -04:00
Rangi
4373aafac1
Use def_warps_to macro for automatic warp_to entries
2020-08-17 18:08:54 -04:00
Rangi
e2c99f1910
Use def_* macros for automatic map event counts
2020-08-17 16:54:59 -04:00
Rangi
76289dfda0
Port dbsprite macro for OAM y,x,tile,attr data from pokecrystal
2020-07-17 15:58:06 -04:00
Rangi
7306c1dc2d
Define constants for audio commands
2020-07-16 13:25:02 -04:00
Rangi
76b882d952
Reformat map scripts' coordinate and movement data
...
'dbmapcoord' has X, Y order like other coordinate-related data macros
2020-07-16 12:32:19 -04:00
Rangi
93d0697f37
Don't compare strings with ==; use STRCMP
2020-07-14 16:07:23 -04:00
Rangi
5c0f33cb53
Use a 'trainer' macro for trainers in scripts/
2020-07-14 15:53:25 -04:00
Rangi
f37cf959c9
Clean up some data, using macros for multiline list entries
2020-07-14 13:32:09 -04:00
Rangi
3e572b6f48
Use const_skip and const_next macros for brevity
2020-07-09 14:51:48 -04:00
Rangi
676a35f76f
Eliminate enum: use const instead, with case-by-case parallel const implementations
2020-07-09 12:43:26 -04:00
Rangi
51ac538c25
Identify SPRITESTATEDATA2_ORIGFACINGDIRECTION
2020-07-07 16:57:51 -04:00
Rangi
1e593d8f8c
Remove c1x*/c2x* comments, use struct offset constants
2020-07-07 14:15:39 -04:00
Rangi
13129459f1
Sync coordinate macros with pokecrystal
2020-07-07 11:30:10 -04:00
Rangi
45ed05decf
Use HIGH() and LOW()
2020-07-07 11:10:29 -04:00
Rangi
06db7ec55b
callba/callab -> farcall/callfar; jpba/jpab -> farjp/jpfar
2020-07-06 21:18:22 -04:00
Rangi
772fcc7588
Specify the ldh instruction, don't turn ld into ldh
2020-07-06 19:03:05 -04:00
Rangi
9c2be80bf3
text_linkpromptbutton -> text_waitbutton
...
Fixes #260
2020-07-06 12:40:36 -04:00
Rangi
8a79315635
Capitalize rgbds control structures (EQU/EQUS, IF/ELIF/ELSE/ENDC, REPT/ENDR, MACRO/ENDM, etc)
2020-07-06 12:28:31 -04:00
Rangi
405889193e
TM/HM constants named after moves
2020-07-05 22:52:27 -04:00
Rangi
66ebe56adc
Port pokecrystal's base data and tmhm structure
...
To do: TM/HM constants named after moves
2020-07-05 21:59:32 -04:00