forked from cacklingfiend/lignumis
		
	Add setting for even earlier personal robots
This commit is contained in:
		
							parent
							
								
									c8959290c0
								
							
						
					
					
						commit
						e18619c807
					
				
					 3 changed files with 20 additions and 9 deletions
				
			
		|  | @ -179,6 +179,7 @@ lignumis-circuit-progression=Enable progressive circuit recipes | ||||||
| lignumis-assembler-progression=Enable progressive assembler recipes | lignumis-assembler-progression=Enable progressive assembler recipes | ||||||
| lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill | lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill | ||||||
| lignumis-fulgora-wood=Add wood to Fulgora | lignumis-fulgora-wood=Add wood to Fulgora | ||||||
|  | lignumis-early-robots=Even earlier personal robots | ||||||
| 
 | 
 | ||||||
| [mod-setting-description] | [mod-setting-description] | ||||||
| lignumis-belt-progression=Yellow belts will require wood belts to craft. | lignumis-belt-progression=Yellow belts will require wood belts to craft. | ||||||
|  | @ -190,6 +191,7 @@ lignumis-circuit-progression=Electric circuits will require basic circuit boards | ||||||
| lignumis-assembler-progression=Assembling machine 1 will require burner assembling machines to craft. | lignumis-assembler-progression=Assembling machine 1 will require burner assembling machines to craft. | ||||||
| lignumis-lumber-mill-more-recipes=The lumber mill can also craft basic turrets, burner assemblers and burner inserters. Improves balancing wood usage when all progressive recipes are enabled and helps with marathon games. | lignumis-lumber-mill-more-recipes=The lumber mill can also craft basic turrets, burner assemblers and burner inserters. Improves balancing wood usage when all progressive recipes are enabled and helps with marathon games. | ||||||
| lignumis-fulgora-wood=This adds wooden gear wheels to scrap recycling as the main source of wood. Disable this is you have a different source of wood or import everything from other planets. | lignumis-fulgora-wood=This adds wooden gear wheels to scrap recycling as the main source of wood. Disable this is you have a different source of wood or import everything from other planets. | ||||||
|  | lignumis-early-robots=Personal robots are moved from steam to wood science and are a tiny bit faster. | ||||||
| 
 | 
 | ||||||
| [autoplace-control-names] | [autoplace-control-names] | ||||||
| lignumis_enemy_base=Lignumis enemy bases | lignumis_enemy_base=Lignumis enemy bases | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ local item_sounds = require("__base__.prototypes.item_sounds") | ||||||
| local item_tints = require("__base__.prototypes.item-tints") | local item_tints = require("__base__.prototypes.item-tints") | ||||||
| 
 | 
 | ||||||
| local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value | local basic_circuit_board = settings.startup["lignumis-basic-circuit-board"].value | ||||||
|  | local early_robots = settings.startup["lignumis-early-robots"].value | ||||||
| 
 | 
 | ||||||
| local function robot(color) | local function robot(color) | ||||||
|     local result = table.deepcopy(data.raw["construction-robot"]["construction-robot"]) |     local result = table.deepcopy(data.raw["construction-robot"]["construction-robot"]) | ||||||
|  | @ -9,7 +10,7 @@ local function robot(color) | ||||||
|     result.icon = Lignumis.graphics .. "icons/basic-construction-robot-" .. color .. ".png" |     result.icon = Lignumis.graphics .. "icons/basic-construction-robot-" .. color .. ".png" | ||||||
|     result.minable.result = "basic-construction-robot-" .. color |     result.minable.result = "basic-construction-robot-" .. color | ||||||
|     result.max_health = 50 |     result.max_health = 50 | ||||||
|     result.speed = 0.04 |     result.speed = early_robots and 0.05 or 0.04 | ||||||
|     result.max_energy = "1MJ" |     result.max_energy = "1MJ" | ||||||
|     result.energy_per_tick = "0.04kJ" |     result.energy_per_tick = "0.04kJ" | ||||||
|     result.energy_per_move = "0.3kJ" |     result.energy_per_move = "0.3kJ" | ||||||
|  | @ -180,15 +181,16 @@ local gold_robot_technology = { | ||||||
|             modifier = true |             modifier = true | ||||||
|         } |         } | ||||||
|     }, |     }, | ||||||
|     prerequisites = { "steam-science-pack" }, |     prerequisites = { early_robots and "wood-science-pack" or "steam-science-pack" }, | ||||||
|     unit = { |     unit = { | ||||||
|         count = 200, |         count = 200, | ||||||
|         ingredients = { |         ingredients = early_robots and { { "wood-science-pack", 1 } } or { | ||||||
|             { "wood-science-pack",  1 }, |             { "wood-science-pack",  1 }, | ||||||
|             { "steam-science-pack", 1 } |             { "steam-science-pack", 1 } | ||||||
|         }, |         }, | ||||||
|         time = 15 |         time = 15 | ||||||
|     } |     }, | ||||||
|  |     ignore_tech_cost_multiplier = early_robots | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| local copper_robot_technology = { | local copper_robot_technology = { | ||||||
|  |  | ||||||
|  | @ -62,6 +62,13 @@ data:extend({ | ||||||
|         default_value = true, |         default_value = true, | ||||||
|         order = "i" |         order = "i" | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |         type = "bool-setting", | ||||||
|  |         name = "lignumis-early-robots", | ||||||
|  |         setting_type = "startup", | ||||||
|  |         default_value = false, | ||||||
|  |         order = "j" | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|         type = "string-setting", |         type = "string-setting", | ||||||
|         name = "lignumis-second-planet", |         name = "lignumis-second-planet", | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann