- 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:
1 parent
11d1153802
commit
796fe8f6d5
24 files changed
+1549
-59
No files matched your search
@@ -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;
|
||||
|
||||
@@ -234,6 +234,7 @@ export const COMMAND = {
|
||||
freezetarget: 24,
|
||||
paralyzetarget: 25,
|
||||
flinchtarget: 37,
|
||||
recoil: 39,
|
||||
confuse: 42,
|
||||
confusetarget: 43,
|
||||
poison: 47,
|
||||
|
||||
Reference in new issue
Block a user