mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
getIsUnlocked changed in metabuilding
Made return this.getAvailableVariants(root).length > 0; Removed in other buildings as it is default for all
This commit is contained in:
parent
6d08ebaa13
commit
fa7865d787
@ -19,13 +19,6 @@ export class MetaAnalyzerBuilding extends MetaBuilding {
|
||||
return MetaAnalyzerBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -22,13 +22,6 @@ export class MetaBalancerBuilding extends MetaBuilding {
|
||||
return MetaBalancerBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -21,13 +21,6 @@ export class MetaBeltBuilding extends MetaBuilding {
|
||||
return MetaBeltBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -19,13 +19,6 @@ export class MetaComparatorBuilding extends MetaBuilding {
|
||||
return MetaComparatorBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -19,13 +19,6 @@ export class MetaConstantSignalBuilding extends MetaBuilding {
|
||||
return MetaConstantSignalBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -63,13 +63,6 @@ export class MetaCutterBuilding extends MetaBuilding {
|
||||
return available;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the entity at the given location
|
||||
* @param {Entity} entity
|
||||
|
@ -18,13 +18,6 @@ export class MetaDisplayBuilding extends MetaBuilding {
|
||||
return MetaDisplayBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
|
@ -22,13 +22,6 @@ export class MetaFilterBuilding extends MetaBuilding {
|
||||
return MetaFilterBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -59,13 +59,6 @@ export class MetaHubBuilding extends MetaBuilding {
|
||||
return MetaHubBuilding.layerByVariant[variant](root);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
|
@ -25,13 +25,6 @@ export class MetaItemProducerBuilding extends MetaBuilding {
|
||||
return MetaItemProducerBuilding.dimensions[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -25,13 +25,6 @@ export class MetaLeverBuilding extends MetaBuilding {
|
||||
return MetaLeverBuilding.dimensions[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -26,13 +26,6 @@ export class MetaLogicGateBuilding extends MetaBuilding {
|
||||
return MetaLogicGateBuilding.dimensions[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -20,13 +20,6 @@ export class MetaMinerBuilding extends MetaBuilding {
|
||||
return MetaMinerBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -21,13 +21,6 @@ export class MetaMixerBuilding extends MetaBuilding {
|
||||
return MetaMixerBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -26,13 +26,6 @@ export class MetaPainterBuilding extends MetaBuilding {
|
||||
return MetaPainterBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -24,13 +24,6 @@ export class MetaReaderBuilding extends MetaBuilding {
|
||||
return MetaReaderBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -21,13 +21,6 @@ export class MetaRotaterBuilding extends MetaBuilding {
|
||||
return MetaRotaterBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -21,13 +21,6 @@ export class MetaStackerBuilding extends MetaBuilding {
|
||||
return MetaStackerBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -24,13 +24,6 @@ export class MetaStorageBuilding extends MetaBuilding {
|
||||
return MetaStorageBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -19,13 +19,6 @@ export class MetaTransistorBuilding extends MetaBuilding {
|
||||
return MetaTransistorBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -21,13 +21,6 @@ export class MetaTrashBuilding extends MetaBuilding {
|
||||
return MetaTrashBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -23,13 +23,6 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
|
||||
return MetaUndergroundBeltBuilding.silhouetteColorsByRotation[rotationVariant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -22,13 +22,6 @@ export class MetaVirtualProcessorBuilding extends MetaBuilding {
|
||||
return MetaVirtualProcessorBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -18,13 +18,6 @@ export class MetaWireTunnelBuilding extends MetaBuilding {
|
||||
return MetaWireTunnelBuilding.silhouetteColors[variant]();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} variant
|
||||
*/
|
||||
|
@ -175,7 +175,7 @@ export class MetaBuilding {
|
||||
* @param {GameRoot} root
|
||||
*/
|
||||
getIsUnlocked(root) {
|
||||
return true;
|
||||
return this.getAvailableVariants(root).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user