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:
@@ -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}`
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -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`
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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`
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user