Update!


Core Plugin Updates – ED5_Pets.js
🧠 Event Queue System

  • Implemented a serialized pet event queue to prevent overlapping or reserved common events when multiple pets trigger actions simultaneously.
  • Added deduplication logic to stop the same pet + event combination from being queued multiple times.
  • Introduced polling-based completion detection so the next queued pet event only executes when the map and common-event system are idle.
  • Updated File: js/plugins/ED5_Pets.js (Game_Pets.prototype.queuePetCommonEvent, processPendingEvents)

🩺 Pet State Validation

  • Added validatePet() to auto-repair common corruptions (missing IDs, bad fields, or broken triggers) and clamp data to safe ranges.
  • Added validateAllPets() to run full-suite validation across both inventory and bank, removing corrupted or invalid entries.
  • Automatic validation now runs after loading save data, fixing broken pet states automatically.
  • New plugin command: ED5_Pets validatePets for manual validation from the console or event commands.
  • Updated File: js/plugins/ED5_Pets.js (validatePet, validateAllPets)

🎨 Menu Icon Animation Fix

  • Fixed pet icons and portraits so they now animate correctly while menu scenes are open.
  • Hooked into Scene_MenuBase.update() to refresh pet icons efficiently without unnecessary redraws.
  • Updated File: js/plugins/ED5_Pets.js

🗺️ Map Pet Animation Behavior

  • Summoned pet event animations now correctly respect their template event’s walk/step animation flags, rather than forcing them on.
  • Game_PetEvent now reads walkAnime / stepAnime from template event pages, restoring the intended behavior of original pet templates.
  • Updated File: js/plugins/ED5_Pets.js (Game_PetEvent initialize/refresh/hasStepAnime/hasWalkAnime)

🔒 Other Improvements & Safety Hardening

  • Improved event add/remove safety on maps.
  • Safer summon/recall logic and post-load validation routines.
  • Enhanced defensive checks and update loops across the plugin to prevent state corruption.

Files

ED5_Pets1.1.js 122 kB
5 days ago

Get ED5 Pets Plugin

Buy Now
On Sale!
10% Off
$10.00 $9.00 USD or more

Leave a comment

Log in with itch.io to leave a comment.