aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle (unfollow)
Commit message (Collapse)AuthorFilesLines
7 daysfix(nowild): use wUnusedFlag (0xCC5B) instead of wc5d8 for the toggleAsh Ketchum1-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.
7 daysmenu: add NOWILD toggle + REPEL (and repurpose wc5d8 as the flag)Ash Ketchum1-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.
2026-04-15Relabel SFX_SILPH_SCOPE to SFX_TRAINER_APPEARED (#580)PokefanMarcel1-1/+1
2026-01-17Replace hard-coded numbers with constants in haze.asm (#564)DrNyk1-2/+2
2026-01-17Align move grammar with pokecrystal (#565)SnorlaxMonster2-135/+142
Add comments explaining the redundant move grammar categories inherited from the Japanese version.
2025-12-26Replace magic number `$7` with `SLP_MASK` constant (#555)Jordan Moore1-2/+2
2025-12-15Specify a max item length for `list_start` (#552)Rangi2-2/+2
2025-12-15Comment more unreferenced local labels (#550)Narishma-gb7-36/+46
2025-12-01Update `StatusScreen`, add `*_STATS_BOX` constants (#546)Narishma-gb1-1/+1
2025-11-27Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)Narishma-gb9-52/+52
2025-11-25Avoid magic numbers for most `CopyData` calls (#542)Rangi7-32/+34
2025-11-23Use `ld_hli_a_string` macro to make byte-by-byte strings more obvious (#540)Rangi2-14/+2
2025-11-18Use more hardware and graphics constants (#532)Narishma-gb5-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`.
2025-11-12Use features of RGBDS 1.0.0 (#537)Rangi7-34/+34
2025-10-05Consistently use `ld [hli]`/`ld [hld]`, not `ldi`/`ldd`Rangi2-8/+8
2025-09-10Misc. naming and cleanup (#139)Narishma-gb5-17/+17
* Name some printer/diploma routines * Name `wd434` * Name `NAME_LENGTH_JP` * Rename `callabd`/`calladb` to `farcall`/`callfar`
2025-09-07Use RAMG_SRAM_ENABLE (#530)PokefanMarcel1-1/+1
2025-09-03Update comment for clarity (#529)Vortyne1-1/+2
Actually copies from battle struct to party struct to make HP and status changes to a pokemon permanent
2025-09-03Label and constant cleanup (#528)Narishma-gb2-30/+30
* Label cleanup, add some constants instead of raw numbers * Rename load/save game functions to be more explicit
2025-08-16Use `<STAT>_UP1_EFFECT` constants (#522)PokefanMarcel1-4/+4
2025-07-23Rename `.asm_39c46` to `.loopSkipTrainer` (#122)PokefanMarcel1-4/+4
--------- Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
2025-07-07Use less generic labels for party finding loops (#514)kagnusdev1-4/+4
2025-06-30Use combined hardware constantsRangi421-3/+3
2025-06-30Replace hardware_constants.asm with hardware.inc (#511)Rangi3-30/+30
2025-06-25Distinguish single trainer pics section from Pokemon picsRangi421-1/+1
2025-06-03Fix typosdannye2-4/+4
2025-05-31Add a `CANNOT_MOVE` constant (#508)Rangi1-3/+6
2025-05-25Use more ldpikacrydannye2-5/+5
2025-04-02Use constants for PP masks instead of magic numbers (#504)edave642-9/+9
2025-01-30Fix some label typos, and add some constants instead of raw numbers (#492)Narishma-gb1-4/+4
2025-01-28Consistently capitalize `ASSERT` directives (#489)Rangi2-4/+4
2025-01-28Miscellaneous cleanup (#488)Rangi3-4/+5
Co-authored-by: SatoMew <SatoMew@users.noreply.github.com>
2024-12-27Use `EFFECT_1E`Rangi421-1/+1
2024-12-27Don't pass redundant label names to `table_width` and `list_start` (#125)Rangi1-1/+1
2024-12-27Don't pass redundant label names to `table_width` and `list_start` (#484)Rangi1-1/+1
2024-12-25Use RGBDS 0.9.0 (#123)Rangi1-2/+1
2024-12-25Use RGBDS 0.9.0 (#482)Rangi1-2/+1
2024-12-21Use `SERIAL_RNS_LENGTH` in `BattleRandom`Rangi421-2/+2
2024-12-16Remove redundant parenthesesRangi421-1/+1
2024-12-16Use "gray", not "grey"Rangi421-1/+1
This matches the in-game text, e.g. Pewter is "A Stone Gray City"
2024-11-24Assert the relations between some move effect constants (#478)Sylvie1-3/+5
2024-09-29Rename off-by-one wram labelsdannye2-38/+38
2024-09-29Identify more bit flags (#119)Sylvie1-1/+4
* Identify more bit flags * Bit serves dual use in debug mode
2024-09-24Fix comment: Road -> Roar (#466)Vortyne1-4/+4
2024-09-23Identify more flag bits (#464)Sylvie6-32/+40
2024-09-18Identify remaining uses of `wd0b5` and `wd11e` (#463)Sylvie10-43/+43
2024-09-18Split `hSpriteIndexOrTextID` into `hSpriteIndex` and `hTextID` (#462)Sylvie2-2/+2
Also identify `wPPUpCountAndMaxPP`
2024-09-09Use correct label in get_trainer_name.asm (#461)Vortyne1-1/+1
2024-08-04Identify wcf91 as wCurPartySpecies, wCurItem, and wCurListMenuItem (#457)Sylvie6-23/+23
2024-07-24Identify wcd6d as wNameBuffer and others (#455)Sylvie5-15/+15