phase 11 part1
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user