mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Force user to use the chainable extractor if unlocked.
This commit is contained in:
		
							parent
							
								
									f43a266fad
								
							
						
					
					
						commit
						5093770329
					
				@ -11,7 +11,8 @@ import { KEYMAPPINGS } from "../../key_action_mapper";
 | 
				
			|||||||
import { defaultBuildingVariant, MetaBuilding } from "../../meta_building";
 | 
					import { defaultBuildingVariant, MetaBuilding } from "../../meta_building";
 | 
				
			||||||
import { BaseHUDPart } from "../base_hud_part";
 | 
					import { BaseHUDPart } from "../base_hud_part";
 | 
				
			||||||
import { SOUNDS } from "../../../platform/sound";
 | 
					import { SOUNDS } from "../../../platform/sound";
 | 
				
			||||||
import { MetaMinerBuilding } from "../../buildings/miner";
 | 
					import { MetaMinerBuilding, enumMinerVariants } from "../../buildings/miner";
 | 
				
			||||||
 | 
					import { enumHubGoalRewards } from "../../tutorial_goals";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Contains all logic for the building placer - this doesn't include the rendering
 | 
					 * Contains all logic for the building placer - this doesn't include the rendering
 | 
				
			||||||
@ -290,6 +291,9 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
 | 
				
			|||||||
            const tileBelow = this.root.map.getLowerLayerContentXY(tile.x, tile.y);
 | 
					            const tileBelow = this.root.map.getLowerLayerContentXY(tile.x, tile.y);
 | 
				
			||||||
            if (tileBelow) {
 | 
					            if (tileBelow) {
 | 
				
			||||||
                this.currentMetaBuilding.set(gMetaBuildingRegistry.findByClass(MetaMinerBuilding));
 | 
					                this.currentMetaBuilding.set(gMetaBuildingRegistry.findByClass(MetaMinerBuilding));
 | 
				
			||||||
 | 
					                if (this.root.hubGoals.isRewardUnlocked(enumHubGoalRewards.reward_miner_chainable)) {
 | 
				
			||||||
 | 
					                    return this.currentVariant.set(enumMinerVariants.chainable);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                this.currentMetaBuilding.set(null);
 | 
					                this.currentMetaBuilding.set(null);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user