aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(nowild): use wUnusedFlag (0xCC5B) instead of wc5d8 for the toggleAsh Ketchum7 days1-1/+1
| | | | | | | | wc5d8 looked unused but the game writes it via computed addresses (observed it change 56->44->35 while walking/warping), so the NOWILD flag got clobbered and encounters still happened. wUnusedFlag is a genuine unused WRAM0 byte (verified stable at 0 through walking + warping, not in the save block so it defaults off each boot). NOWILD flag now persists reliably.
* menu: add NOWILD toggle + REPEL (and repurpose wc5d8 as the flag)Ash Ketchum7 days1-0/+3
| | | | | | | | | NOWILD toggles wild encounters off (hooked in TryDoWildEncounter, a banked file) with an ON indicator drawn on its menu row; the flag lives in the unused wc5d8 WRAM0 byte (renamed wSlopNoWild, always-accessible, defaults 0). REPEL refills repel steps to 255. (A NOCLIP toggle was prototyped but its hook lands in the full home bank - deferred until I free ROM0 budget.) SL0P MENU now: WARP HEAL MONEY BADGES DEX MAXTEAM ITEMS NOWILD REPEL.
* Merge branch 'master' of https://github.com/pret/pokereddannye2026-04-151-1/+1
|\
| * Relabel SFX_SILPH_SCOPE to SFX_TRAINER_APPEARED (#580)PokefanMarcel2026-04-151-1/+1
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2026-01-1718-291/+298
|\|
| * Replace hard-coded numbers with constants in haze.asm (#564)DrNyk2026-01-171-2/+2
| |
| * Align move grammar with pokecrystal (#565)SnorlaxMonster2026-01-172-135/+142
| | | | | | Add comments explaining the redundant move grammar categories inherited from the Japanese version.
| * Replace magic number `$7` with `SLP_MASK` constant (#555)Jordan Moore2025-12-261-2/+2
| |
| * Specify a max item length for `list_start` (#552)Rangi2025-12-152-2/+2
| |
| * Comment more unreferenced local labels (#550)Narishma-gb2025-12-157-36/+46
| |
| * Update `StatusScreen`, add `*_STATS_BOX` constants (#546)Narishma-gb2025-12-011-1/+1
| |
| * Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)Narishma-gb2025-11-279-52/+52
| |
| * Avoid magic numbers for most `CopyData` calls (#542)Rangi2025-11-257-32/+34
| |
| * Use `ld_hli_a_string` macro to make byte-by-byte strings more obvious (#540)Rangi2025-11-232-14/+2
| |
| * Use more hardware and graphics constants (#532)Narishma-gb2025-11-185-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | - Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-11-128-34/+34
|\|
| * Use features of RGBDS 1.0.0 (#537)Rangi2025-11-127-34/+34
| |
| * Consistently use `ld [hli]`/`ld [hld]`, not `ldi`/`ldd`Rangi2025-10-052-8/+8
| |
| * Use RAMG_SRAM_ENABLE (#530)PokefanMarcel2025-09-071-1/+1
| |
* | Misc. naming and cleanup (#139)Narishma-gb2025-09-105-17/+17
| | | | | | | | | | | | | | | | | | * Name some printer/diploma routines * Name `wd434` * Name `NAME_LENGTH_JP` * Rename `callabd`/`calladb` to `farcall`/`callfar`
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-09-065-39/+40
|\|
| * Update comment for clarity (#529)Vortyne2025-09-031-1/+2
| | | | | | Actually copies from battle struct to party struct to make HP and status changes to a pokemon permanent
| * Label and constant cleanup (#528)Narishma-gb2025-09-032-30/+30
| | | | | | | | | | * Label cleanup, add some constants instead of raw numbers * Rename load/save game functions to be more explicit
| * Use `<STAT>_UP1_EFFECT` constants (#522)PokefanMarcel2025-08-161-4/+4
| |
| * Use less generic labels for party finding loops (#514)kagnusdev2025-07-071-4/+4
| |
* | Rename `.asm_39c46` to `.loopSkipTrainer` (#122)PokefanMarcel2025-07-231-4/+4
| | | | | | | | | | --------- Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-07-025-39/+42
|\|
| * Use combined hardware constantsRangi422025-06-301-3/+3
| |
| * Replace hardware_constants.asm with hardware.inc (#511)Rangi2025-06-303-30/+30
| |
| * Distinguish single trainer pics section from Pokemon picsRangi422025-06-251-1/+1
| |
| * Fix typosdannye2025-06-032-4/+4
| |
| * Add a `CANNOT_MOVE` constant (#508)Rangi2025-05-311-3/+6
| |
* | Use more ldpikacrydannye2025-05-252-5/+5
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-05-102-9/+9
|\|
| * Use constants for PP masks instead of magic numbers (#504)edave642025-04-022-9/+9
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-01-306-44/+43
|\|
| * Fix some label typos, and add some constants instead of raw numbers (#492)Narishma-gb2025-01-301-4/+4
| |
| * Consistently capitalize `ASSERT` directives (#489)Rangi2025-01-282-4/+4
| |
| * Miscellaneous cleanup (#488)Rangi2025-01-283-4/+5
| | | | | | Co-authored-by: SatoMew <SatoMew@users.noreply.github.com>
| * Use `EFFECT_1E`Rangi422024-12-271-1/+1
| |
| * Don't pass redundant label names to `table_width` and `list_start` (#484)Rangi2024-12-271-1/+1
| |
| * Use RGBDS 0.9.0 (#482)Rangi2024-12-251-2/+1
| |
* | Don't pass redundant label names to `table_width` and `list_start` (#125)Rangi2024-12-271-1/+1
| |
* | Use RGBDS 0.9.0 (#123)Rangi2024-12-251-2/+1
| |
* | Merge branch 'master' of https://github.com/pret/pokeredRangi422024-12-254-11/+13
|\|
| * Use `SERIAL_RNS_LENGTH` in `BattleRandom`Rangi422024-12-211-2/+2
| |
| * Remove redundant parenthesesRangi422024-12-161-1/+1
| |
| * Use "gray", not "grey"Rangi422024-12-161-1/+1
| | | | | | | | This matches the in-game text, e.g. Pewter is "A Stone Gray City"
| * Assert the relations between some move effect constants (#478)Sylvie2024-11-241-3/+5
| |
* | Rename off-by-one wram labelsdannye2024-09-292-38/+38
| |