Fix battle auto-detection and overlay position switching

- game-bridge.js: Replace broken Phaser.GAMES discovery (tree-shaken by
  Vite) with SceneManager.prototype.update monkey-patch that captures the
  game instance on the next frame tick
- manifest.json: Run game-bridge at document_start so the patch is
  installed before Phaser boots
- content.js: Fix position buttons only working once — was using inline
  style.left presence as drag check, now uses a dedicated manuallyDragged
  flag that only sets on actual mouse drag and resets on popup position
  change
- Bump version to 1.1.0
This commit is contained in:
2026-02-12 18:50:01 +00:00
parent 6df2002d31
commit d71ee7759a
3 changed files with 126 additions and 75 deletions

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "PokeRogue Type Effectiveness",
"version": "1.0.0",
"version": "1.1.0",
"description": "Shows move type effectiveness during PokeRogue battles. Displays multipliers, power, and category for each move against enemy Pokemon.",
"icons": {
@@ -44,7 +44,7 @@
{
"matches": ["https://pokerogue.net/*", "https://www.pokerogue.net/*"],
"js": ["game-bridge.js"],
"run_at": "document_idle",
"run_at": "document_start",
"world": "MAIN"
}
],