phase 11 part1

This commit is contained in:
2025-12-08 12:30:15 +01:00
parent 3336b59e7d
commit 07f0752d81
15 changed files with 1383 additions and 133 deletions

View File

@@ -395,6 +395,12 @@ class TerrainSystem {
if (decor.hp <= 0) {
this.removeDecoration(x, y);
// Chance to drop Blueprint
if (this.scene.blueprintSystem) {
this.scene.blueprintSystem.tryDropBlueprint(x, y, 'mining');
}
return 'destroyed';
}
return 'hit';
@@ -617,7 +623,9 @@ class TerrainSystem {
typeLower.includes('house') ||
typeLower.includes('gravestone') ||
typeLower.includes('bush') ||
typeLower.includes('fallen_log')
typeLower.includes('fallen_log') ||
typeLower.includes('furnace') || // WORKSTATION
typeLower.includes('mint') // WORKSTATION
);
const decorData = {
@@ -637,6 +645,16 @@ class TerrainSystem {
if (this.tiles[gridY] && this.tiles[gridY][gridX]) {
this.tiles[gridY][gridX].hasDecoration = true;
}
// Register Workstation
if (typeLower.includes('furnace') || typeLower.includes('mint')) {
if (this.scene.workstationSystem) {
// Determine type exactly
let stationType = 'furnace';
if (typeLower.includes('mint')) stationType = 'mint';
this.scene.workstationSystem.addStation(gridX, gridY, stationType);
}
}
}
setTileType(x, y, typeName) {