forked from cacklingfiend/lignumis
		
	Add compatibility for "Lane splitters"
This commit is contained in:
		
							parent
							
								
									c648261b3c
								
							
						
					
					
						commit
						db9dd1c252
					
				
					 4 changed files with 36 additions and 1 deletions
				
			
		|  | @ -28,6 +28,7 @@ | |||
|         "?Diversitree", | ||||
|         "?aai-loaders", | ||||
|         "?atan-nuclear-science", | ||||
|         "?lane-splitters", | ||||
|         "!apm_power_ldinc", | ||||
|         "!wood-logistics", | ||||
|         "!early-agriculture", | ||||
|  |  | |||
|  | @ -45,6 +45,7 @@ basic-radar=Basic radar | |||
| active-noise-cancelling-tower=Active noise cancelling tower | ||||
| quality-assembler=Quality assembler | ||||
| aai-wood-loader=Wood loader | ||||
| wood-lane-splitter=Wood lane splitter | ||||
| 
 | ||||
| [entity-description] | ||||
| lumber-mill=Advanced machine to process wood. | ||||
|  |  | |||
|  | @ -4,4 +4,5 @@ require("metal-and-stars") | |||
| require("alien-biomes") | ||||
| require("planet-picker") | ||||
| require("aai-loaders") | ||||
| require("nuclear-science") | ||||
| require("nuclear-science") | ||||
| require("lane-splitters") | ||||
							
								
								
									
										32
									
								
								lignumis/prototypes/compatibility/lane-splitters.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								lignumis/prototypes/compatibility/lane-splitters.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| if not mods["lane-splitters"] then return end | ||||
| 
 | ||||
| local lane_splitter = make_tier({ | ||||
|     name = "wood-lane-splitter", | ||||
|     base_belt = "wood-transport-belt", | ||||
|     base_splitter = "wood-splitter", | ||||
|     health = 150, | ||||
|     next_upgrade = "lane-splitter", | ||||
| }) | ||||
| 
 | ||||
| lane_splitter.prototype.icon = Lignumis.graphics .. "icons/wood-lane-splitter.png" | ||||
| lane_splitter.prototype.dying_explosion = "transport-belt-explosion" | ||||
| lane_splitter.prototype.structure.east.filename = data.raw.splitter["wood-splitter"].structure.east.filename | ||||
| lane_splitter.prototype.structure.south.filename = data.raw.splitter["wood-splitter"].structure.south.filename | ||||
| lane_splitter.prototype.structure.west.filename = data.raw.splitter["wood-splitter"].structure.west.filename | ||||
| lane_splitter.prototype.structure.north.filename = data.raw.splitter["wood-splitter"].structure.north.filename | ||||
| lane_splitter.prototype.structure_patch.east.filename = data.raw.splitter["wood-splitter"].structure_patch.east.filename | ||||
| lane_splitter.prototype.structure_patch.south.filename = data.raw.splitter["wood-splitter"].structure_patch.south.filename | ||||
| lane_splitter.prototype.structure_patch.west.filename = data.raw.splitter["wood-splitter"].structure_patch.west.filename | ||||
| lane_splitter.prototype.structure_patch.north.filename = data.raw.splitter["wood-splitter"].structure_patch.north.filename | ||||
| lane_splitter.item.icon = Lignumis.graphics .. "icons/wood-lane-splitter.png" | ||||
| 
 | ||||
| data:extend({ | ||||
|     lane_splitter.prototype, | ||||
|     lane_splitter.item, | ||||
|     lane_splitter.recipe, | ||||
| }) | ||||
| 
 | ||||
| table.insert(data.raw["technology"]["wood-logistics"].effects, { | ||||
|   type = "unlock-recipe", | ||||
|   recipe = "wood-lane-splitter" | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann