flybrain/services/flysim/crates/flybrain-gb/src
acamilo e006db3742 macros: a ball at low HP is the only attack, and the fly types its catch's name
Two operator decisions (2026-09-29, row 69).

Throw on low HP only: in a wild battle with THROW BALL dealt and the
wild Pokemon at the HP where ItemUseBall's HP factor saturates
(W = (MaxHP*255/BallFactor)/max(HP/4,1) >= 255: about a third for a
Poke Ball, a half for a Great Ball), MOVE 1-4, SWITCH, RUN and the bag's
BACK are withheld. ITEM stays for a hurt thrower. Every precondition of
THROW BALL still gates it, so no ball, a caught species or a trainer
gives the ordinary pad back.

Let the fly name it: the naming screen is read (menu bytes, the
keyboard's box, the underscores; wNamingScreenNameLength and
wNamingScreenSubmitName pinned from the cartridge's own stores) before
the battle test and reads Unknown. Its pad is the fly's own D-pad, A, B
and START, passed through Observed::raw while nothing is bound. Once
the name is full or sixty brain seconds have run, CONFIRM alone is
dealt and presses START until the keyboard closes.

Also moves two doc comments row 66 split from their items (review N3).
2026-09-29 18:07:15 +00:00
..
platformer flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
pokemon_red macros: a ball at low HP is the only attack, and the fly types its catch's name 2026-09-29 18:07:15 +00:00
adapter.rs rewards: talk and item, boundary indoors pays nothing, adapter v7 with a v6 migration 2026-09-23 14:34:10 +00:00
compatibility.rs rewards: talk and item, boundary indoors pays nothing, adapter v7 with a v6 migration 2026-09-23 14:34:10 +00:00
emulator.rs seam: a bank-aware ROM read beside the bus read 2026-09-22 03:32:19 +00:00
ffi.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
lib.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
macros.rs macros: a ball at low HP is the only attack, and the fly types its catch's name 2026-09-29 18:07:15 +00:00
ordered.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
ratchet.rs traps: rows 51 to 53, the museum's missing rows and a BACK with no box under it 2026-09-22 13:14:47 +00:00
recovery.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00