|
All checks were successful
Build / build (push) Successful in 1m28s
Integrated ammo tracking into the weapon system to consume ammo with each shot fired. **Modified: src/weaponSystem.ts** - Added ShipStatus import and private _shipStatus property - Added setShipStatus() method to connect ship status manager - Added ammo check in fire() method - prevents firing when ammo <= 0 - Added ammo consumption: consumeAmmo(0.01) after each shot - Shots are blocked when out of ammo **Modified: src/ship.ts** - Connected WeaponSystem to Scoreboard's ShipStatus via setShipStatus() - Called immediately after weapon initialization (line 111) This completes the resource management system: - Linear thrust consumes fuel (0.005 per frame max) - Angular thrust consumes fuel (0.005 per frame max) - Weapon firing consumes ammo (0.01 per shot) - All gauges update automatically via observable events - Actions are blocked when resources are depleted 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| themes/default | ||
| .gitignore | ||
| CLAUDE.md | ||
| CONTROLLER_THRUST.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| styles.css | ||
| tsconfig.json | ||
| vite.config.ts | ||