Add capacity display to inventory in all scenes

- Updated inventory display format from "Fuel: 80" to "Fuel: 80/100"
- Shows max capacity for all resources:
  - Fuel: /100
  - Whale Oil: /50 (cargo hold capacity)
  - Penguins: /20
- Applied to HuntingScene, ShipDeckScene, and MapScene
- Players can now see remaining capacity at a glance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2025-12-15 04:05:57 +01:00
parent 1215fadc88
commit 2b8be8c9f2
3 changed files with 8 additions and 8 deletions

View File

@@ -218,8 +218,8 @@ export default class HuntingScene extends Phaser.Scene {
updateStats() {
this.statsText.setText([
`Fuel: ${this.inventory.fuel}`,
`Oil: ${this.inventory.whaleOil}`,
`Fuel: ${this.inventory.fuel}/100`,
`Oil: ${this.inventory.whaleOil}/50`,
`Whales: ${this.whalesHunted}`
]);
}

View File

@@ -128,9 +128,9 @@ export default class MapScene extends Phaser.Scene {
updateInventoryDisplay() {
this.inventoryText.setText([
'Inventory:',
`Fuel: ${this.inventory.fuel}`,
`Oil: ${this.inventory.whaleOil}`,
`Penguins: ${this.inventory.penguins}`
`Fuel: ${this.inventory.fuel}/100`,
`Oil: ${this.inventory.whaleOil}/50`,
`Penguins: ${this.inventory.penguins}/20`
]);
}

View File

@@ -132,9 +132,9 @@ export default class ShipDeckScene extends Phaser.Scene {
updateInventoryDisplay() {
this.inventoryText.setText([
'Inventory:',
`Fuel: ${this.inventory.fuel}`,
`Oil: ${this.inventory.whaleOil}`,
`Penguins: ${this.inventory.penguins}`
`Fuel: ${this.inventory.fuel}/100`,
`Oil: ${this.inventory.whaleOil}/50`,
`Penguins: ${this.inventory.penguins}/20`
]);
}