5280 Commits

Author SHA1 Message Date
Rangi e058e4f50b Add tie-breaking to gbcpal.c in case colors' luminances are identical 2026-09-22 22:02:10 -04:00
Rangi f91d74b9c3 Update RGBDS to 1.0.4 (although 1.0.0 still works) 2026-09-22 14:16:55 -04:00
Rangi 7a7881d0d6 Sync the make_patch tool with poketcg 2026-08-13 17:31:52 -04:00
Narishma-gb 8e8f7e2005 Update link.asm and WRAM link transfer related symbols (#1224) 2026-08-06 17:08:51 -04:00
Rangi 5593381195 Update RGBDS to 1.0.3 (although 1.0.0 still works) 2026-08-01 13:27:33 -04:00
Rangi 3438c7003a Use NULL instead of malloc(0) 2026-07-20 21:34:43 -04:00
Rangi ad1137d4bc Update RGBDS to 1.0.2 (although 1.0.0 still works) 2026-07-20 20:47:30 -04:00
Rangi 854275b50e Clarify install instructions to use WSL over Cygwin if possible 2026-07-20 17:20:38 -04:00
Rangi 31880ea20e Update CI dependencies 2026-07-01 22:54:54 -04:00
Rangi 8c737be65e Make the connection macro more convenient and foolproof (#1261) 2026-06-28 18:21:02 -04:00
Rangi cb752f33fd Change unused battle command and unused tileset anims labels to match pokegold-spaceworld (#1262) 2026-06-28 13:02:18 -04:00
Rangi 06ec23ccee Fix some issues with C tools, and build them with -std=c17 (#1259) 2026-06-12 12:02:39 -04:00
Rangi fb7b0d7056 Replace lzcomp with lzcompress (#1258) 2026-06-11 13:42:12 -04:00
Narishma-gb cbafcfea64 Add some comments/constants, minor fixes (#1255) 2026-06-08 13:33:11 -04:00
Rangi 1eb49f8980 Tools accept - as a placeholder filename for stdin or stdout (#1257) 2026-06-08 12:51:11 -04:00
Rangi 1c1bc6b31f Remove the spurious WEATHER_*_END constants
These were probably a mistake from confusing two consecutive
pointer tables, `.WeatherMessages` and `.WeatherEndedMessages`,
with one long table
2026-06-07 21:32:02 -04:00
Rangi 0d3a44b923 Fix tools/make_patch.c to be endian-independent (#1252) 2026-06-07 01:21:15 -04:00
Rangi42 845e4a55ad Use constants for Battle Tower reward items 2026-06-06 19:11:45 -04:00
Rangi 8f2162d7dd Use for loops to declare dw sequences 2026-05-14 15:19:30 -04:00
Rangi bd98339500 Correct some map object-related constant names and a comment 2026-04-06 18:01:11 -04:00
AnonymousRandomPerson e6482f2d4d Restore CheckTypeMatchup bug description 2026-04-06 11:36:33 +02:00
Rangi 0121eb23ad Deduplicate the credits string/tilemap 2026-04-02 19:51:04 -04:00
Rangi c73ab9e9c9 Define tileset animations with a tileframe macro, and move them to data/tileset_anims.asm (#1248) 2026-03-24 12:17:05 -04:00
MichailTalReborn 983c33b5c9 Document bug: AI does not discourage Nightmare if the player has any status condition (#1242) 2026-03-12 11:44:29 -04:00
Rangi 9b69c36897 Fix the GoldenrodUndergroundSwitchRoomEntrances door-switch macros (#1245) 2026-03-01 18:18:46 -05:00
mid-kid 002b4e84f2 Use separate constants for wChosenCableClubRoom (#1240)
These numbers aren't related to the LINK_ values at all, it's just a
coincidence.

Changing these is an easy way for games to force incompatibility with
the original game.
2026-02-08 13:47:30 -05:00
SnorlaxMonster 2ad9616586 Fix dead/broken URLs (#1225) 2026-01-24 15:44:26 -05:00
SnorlaxMonster 7c3d2956cd Consistently use Japanese control codes for Japanese strings (#1222) 2026-01-24 15:37:50 -05:00
Rangi 45ef09d2bc Format OddEggProbabilities more like pokered WildMonEncounterSlotChances 2026-01-17 18:32:22 -05:00
Rangi 042368c6b4 Fix CI for Linux and add CI for macOS (#1223) 2026-01-17 16:19:24 -05:00
Rangi bbd7e68b4c Use the SPRITE_ANIM_FRAMESET_PARTY_MON_*_FAST constants 2026-01-11 20:10:42 -05:00
Rangi 0d06be1279 Do not compile tools with LTO
Some older systems do not support LTO, and it's unnecessary
for these simple single-file tools
2026-01-07 22:10:33 -05:00
abcboy101 619339d589 Consistently use <GA> for $4a in Japanese strings (#1218) 2026-01-05 22:47:01 -05:00
Rangi 3c0d2b26a5 Use hardware.inc OAM offset constants for overworld map objects 2026-01-01 17:23:09 -05:00
Rangi 2ca86716e6 Update RGBDS to 1.0.1 (although 1.0.0 still works) 2026-01-01 01:34:31 -05:00
Jordan Moore 2bbb15675d Replace magic numbers with constants in engine/battle/ai/switch.asm (#1216) 2025-12-29 18:48:23 -05:00
Rangi a718a256f8 Verify that only one of each callback type exists per map
Fixes #1213
2025-12-15 15:43:39 -05:00
Rangi f9ba82248e Specify a max item length for list_start (#1210) 2025-12-15 15:16:41 -05:00
SourApple e286a5f098 Bug: AI use of Full Heal or Full Restore does not cure Attack or Speed drops from burn or paralysis
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
2025-12-14 16:04:26 -05:00
Rangi 713b829198 Simplify tmhm macro assertion error output 2025-12-01 14:15:24 -05:00
Rangi 73b019c68d Don't use list_start/assert_list_length for roammon maps,
since `li` is not involved
2025-12-01 14:15:21 -05:00
Rangi a79cbbc975 Comment that farcall and callfar are interchangable (#1209)
Fixes #1208
2025-12-01 13:57:09 -05:00
Pyrois81 95f3d3c092 Verify and document another bug in the catching formula (#1203)
Add a fix for a potential failure condition in the catch rate function.
2025-11-18 15:09:04 -05:00
Rangi cf8ee5424b Add _vc patch targets to .PHONY 2025-11-13 13:38:17 -05:00
Rangi a55bc33d67 Use features of RGBDS 1.0.0 (#1204)
- Use single-quoted character literals or `CHARVAL` when you need
  a character's numeric value; using strings as numbers is deprecated
- Use `?` to silence a node in warning/error location backtraces
- Use `===` and `!==` instead of `STRCMP`, and `++` instead of `STRCAT`
- Use `__SCOPE__` instead of checking for `..` and `.` separately
- Use `#string` instead of `"{string}"`
- All programs (rgbasm, rgblink, rgbfix, rgbgfx) support `-W` warnings
- `rgbgfx --colors dmg` is short for `rgbgfx --colors dmg=e4`
2025-11-12 15:43:54 -05:00
Rangi b91ba4fe9b Don't hard-code the Stadium data handling in tools/make_patch.c (#1206)
Instead, have a `--ignore addr:size` option that's set in the Makefile
2025-11-12 13:40:58 -05:00
Linus Unnebäck d138ed1bd4 Make wBargainShopFlags 16 bits (#1200) 2025-09-06 16:47:48 -04:00
Rangi42 69b08536f6 Specify file extensions that make does not generate 2025-08-27 11:49:48 -04:00
Rangi 86acbe5b55 Use dname macro to automatically pad names with "@" characters (#1198) 2025-08-17 09:48:05 -04:00
Linus Unnebäck b1f8d423a2 Inline NoSwarmWildmon label (#1199) 2025-08-15 16:08:52 -04:00