sam range shows for cities now

This commit is contained in:
bijx
2026-01-08 15:17:37 -05:00
parent 9512e480d2
commit bf0e42cad3
+5 -1
View File
@@ -40,7 +40,10 @@ export class SAMRadiusLayer implements Layer {
private handleToggleStructure(e: ToggleStructureEvent) {
const types = e.structureTypes;
this.hoveredShow = !!types && types.indexOf(UnitType.SAMLauncher) !== -1;
this.hoveredShow =
!!types &&
(types.indexOf(UnitType.SAMLauncher) !== -1 ||
types.indexOf(UnitType.City) !== -1);
this.updateVisibility();
}
@@ -83,6 +86,7 @@ export class SAMRadiusLayer implements Layer {
this.ghostShow =
this.uiState.ghostStructure === UnitType.MissileSilo ||
this.uiState.ghostStructure === UnitType.SAMLauncher ||
this.uiState.ghostStructure === UnitType.City ||
this.uiState.ghostStructure === UnitType.AtomBomb ||
this.uiState.ghostStructure === UnitType.HydrogenBomb;
this.updateVisibility();