{"_id":"@aeon-games/pest-control","_rev":"2-3a7fc31cdda0dcc429014a5adbf14f65","name":"@aeon-games/pest-control","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@aeon-games/pest-control","version":"5.0.0","_id":"@aeon-games/pest-control@5.0.0","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"dist":{"shasum":"4906185bbd63fe4166cc34bce55bfe273f3d6e49","tarball":"https://registry.npmjs.org/@aeon-games/pest-control/-/pest-control-5.0.0.tgz","fileCount":8,"integrity":"sha512-qp3PIT3Um54OU+jgXTMjwftJQWi3QFYhjHcacvrNudle+uxR+Y6EKi4E8Ezr2knYjR/4l8mthrXJh9mCL2nNQg==","signatures":[{"sig":"MEYCIQCcKGBYavDe4l8pv0Cq2v4MIA+uGUor+jJxeOxE9jtZrwIhAMuLef5QyahjHkflc7QIS0qdcPnhB4E8QXbPM4rU1aT8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75651},"main":"src/index.tsx","gitHead":"bf966129f6e5f207374db0c9ab30fb5c30ba6c1a","scripts":{"forge:deploy":"bun ../../../apps/aeon-forge/src/cli/cli.tsx deploy . --oneshot"},"_npmUser":{"name":"buley","email":"buley@outlook.com"},"_npmVersion":"11.8.0","description":"Pest Control","directories":{},"_nodeVersion":"25.5.0","dependencies":{"react":"^19.0.0","@aeon-games/engine":"workspace:*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pest-control_5.0.0_1773156750819_0.49523752395769494","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated and no longer supported. Do not use."}},"time":{"created":"2026-03-10T15:32:30.755Z","modified":"2026-03-27T20:35:46.753Z","5.0.0":"2026-03-10T15:32:30.981Z"},"description":"Pest Control","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"readme":"# Pest Control\n\n## Purpose\n**Pest Control** is a tower-defense and strategy game within the Aeon Games ecosystem. Players must defend a central food supply from waves of encroaching \"bugs\" by strategically placing different types of traps on a hexagonal grid. The game balances resource management (gold) with spatial planning to survive increasingly difficult waves of pests.\n\n## Key Features\n- **Trap Diversity**: Use different traps with unique costs and effects:\n    - **Sticky**: Slows down pest movement.\n    - **Poison**: Inflicts damage over time.\n    - **Flame**: High-impact immediate damage.\n- **Wave-Based Survival**: Survive multiple waves of bugs that move toward the central food sources.\n- **Resource Management**: Earn gold by defeating bugs and spend it wisely on trap placements and upgrades.\n\n## Key Files\n- `src/index.tsx`: Core game implementation, including wave spawning logic, trap interactions, and the hexagonal board management.\n- `package.json`: Package metadata and dependencies.\n- `tsconfig.json`: TypeScript configuration.\n\n## Usage\nThe `PestControl` component is integrated into the Aeon Games platform:\n\n```tsx\nimport PestControl from '@aeon-games/pest-control';\n\n<PestControl \n  gameId=\"orchard-defense-2026\"\n  difficulty=\"hard\"\n  onGameOver={...}\n/>\n```\n\n## Mechanics\n- **Grid**: Radius-5 Hexagonal board.\n- **Food Sources**: Central cells that must be protected. If all food is consumed, the game is lost.\n- **Pests**: Bugs spawn at the edges and move toward the nearest food source.\n- **Traps**:\n    - **Placement**: Costs gold. Traps trigger when a bug enters their hex.\n    - **Persistence**: Traps may have limited uses or duration depending on the level.\n","readmeFilename":"README.md"}