mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-12 00:10:56 +02:00
bbcaac7b71
The originals run GiveItem before printing the received texts, and when the bag can't hold the TM they print a make-room line instead and leave EVENT_GOT_TM* unset, so talking to the leader again retries the give. The victory reward path added the TM straight into the inventory, so a full bag went to 21/20. Route the gym TM give through Bag.add, split the TM lines out of the victory dialogue table into tmPre/tmDialogue/noRoom, and port the beaten-leader middle branch that re-runs the ReceiveTM script. Saves that already hold the TM without the flag count as received so they don't collect a second copy. Refs #797