Add setting for even earlier personal robots

This commit is contained in:
Simon Brodtmann 2025-04-13 13:42:42 +02:00
parent c8959290c0
commit e18619c807
3 changed files with 20 additions and 9 deletions

View file

@ -179,6 +179,7 @@ lignumis-circuit-progression=Enable progressive circuit recipes
lignumis-assembler-progression=Enable progressive assembler recipes
lignumis-lumber-mill-more-recipes=Enable more recipes for the lumber mill
lignumis-fulgora-wood=Add wood to Fulgora
lignumis-early-robots=Even earlier personal robots
[mod-setting-description]
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-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-early-robots=Personal robots are moved from steam to wood science and are a tiny bit faster.
[autoplace-control-names]
lignumis_enemy_base=Lignumis enemy bases

View file

@ -2,6 +2,7 @@ local item_sounds = require("__base__.prototypes.item_sounds")
local item_tints = require("__base__.prototypes.item-tints")
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 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.minable.result = "basic-construction-robot-" .. color
result.max_health = 50
result.speed = 0.04
result.speed = early_robots and 0.05 or 0.04
result.max_energy = "1MJ"
result.energy_per_tick = "0.04kJ"
result.energy_per_move = "0.3kJ"
@ -180,15 +181,16 @@ local gold_robot_technology = {
modifier = true
}
},
prerequisites = { "steam-science-pack" },
prerequisites = { early_robots and "wood-science-pack" or "steam-science-pack" },
unit = {
count = 200,
ingredients = {
ingredients = early_robots and { { "wood-science-pack", 1 } } or {
{ "wood-science-pack", 1 },
{ "steam-science-pack", 1 }
},
time = 15
}
},
ignore_tech_cost_multiplier = early_robots
}
local copper_robot_technology = {
@ -248,22 +250,22 @@ data:extend({
robot("copper"),
robot_item("copper", 1),
robot_recipe("copper", {
{ type = "item", name = "copper-plate", amount = 2 },
{ type = "item", name = "wooden-gear-wheel", amount = 5 },
{ type = "item", name = "copper-plate", amount = 2 },
{ type = "item", name = "wooden-gear-wheel", amount = 5 },
{ type = "item", name = basic_circuit_board and "basic-circuit-board" or "electronic-circuit", amount = 5 }
}),
generator("copper"),
generator_item("copper", 1),
generator_recipe("copper", {
{ type = "item", name = "copper-plate", amount = 10 },
{ type = "item", name = "copper-plate", amount = 10 },
{ type = "item", name = "wooden-gear-wheel", amount = 10 }
}),
roboport("copper"),
roboport_item("copper", 1),
roboport_recipe("copper", {
{ type = "item", name = "copper-plate", amount = 5 },
{ type = "item", name = "copper-plate", amount = 5 },
{ type = "item", name = basic_circuit_board and "basic-circuit-board" or "electronic-circuit", amount = 10 },
{ type = "item", name = "wooden-gear-wheel", amount = 10 }
{ type = "item", name = "wooden-gear-wheel", amount = 10 }
}),
-- Technology

View file

@ -62,6 +62,13 @@ data:extend({
default_value = true,
order = "i"
},
{
type = "bool-setting",
name = "lignumis-early-robots",
setting_type = "startup",
default_value = false,
order = "j"
},
{
type = "string-setting",
name = "lignumis-second-planet",