Open Route 29 and Cherrygrove City
Checks / web (push) Canceled after 0s

- Enable Route 29, its Route 46 gate, Cherrygrove City and its buildings.
- Run item balls through FindItemInBallScript and fruit trees through
  FruitTreeScript, with a native daily reset of the daily engine flags.
- Port the Pokémon Center nurse (HealParty with the PP Up clamp,
  CheckPokerus, phone-call checks) and record the whiteout spawn on
  entering a Pokémon Center, as EnterMapWarp does.
- Port standard Poké Marts with keyboard, D-pad and pointer menus.
- Add the recoil battle command (Struggle) and VAR_BOXSPACE.
- Save fruit trees, the daily reset day and the last spawn map; older
  version-3 backups migrate by absence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sébastien QUEROLandClaude Opus 5.5 committed 2026-09-23 17:25:02 +02:00
1 parent 11d1153802
commit 796fe8f6d5
24 files changed
+1549 -59

No files matched your search

+10
View File
@@ -967,6 +967,8 @@ export class Battle {
return yield* this.confuseCommand();
case COMMAND.draintarget:
return yield* this.drainTarget();
case COMMAND.recoil:
return yield* this.recoil();
case COMMAND.checksafeguard:
return yield* this.checkSafeguard();
case COMMAND.splash:
@@ -1546,6 +1548,14 @@ export class Battle {
yield this.hud();
yield* this.say(BATTLE.SuckedHealthText);
}
/** BattleCommand_Recoil: a quarter of the damage dealt, at least 1 HP. */
private *recoil(): Gen {
const mon = this.user.mon;
mon.hp = Math.max(0, mon.hp - (this.curDamage >> 2 || 1));
if (this.turn === 0) this.updateBattleMonInParty();
yield this.hud();
yield* this.say(BATTLE.RecoilText);
}
private *checkSafeguard(): Gen {
if (!this.safeguarded()) return;
this.attackMissed = 1;