različne velikosti dreves

This commit is contained in:
2025-12-07 03:40:50 +01:00
parent 9eb57ed117
commit 521468c797
8 changed files with 323 additions and 109 deletions

View File

@@ -7,11 +7,17 @@ class InventorySystem {
this.slots = new Array(9).fill(null);
this.maxStack = 99;
// Initial test items
// Generate tool icons if missing
if (typeof TextureGenerator !== 'undefined') {
TextureGenerator.createToolSprites(this.scene);
}
// Initial items
this.addItem('axe', 1); // 🪓 Sekira
this.addItem('pickaxe', 1); // ⛏️ Kramp
this.addItem('hoe', 1);
this.addItem('seeds', 10);
this.addItem('wood', 100); // For restoration
this.addItem('stone', 100); // For restoration
this.addItem('seeds', 5); // Zmanjšano število semen
// Removed default wood/stone so player has to gather them
this.gold = 0;
}