diff options
Diffstat (limited to 'von-newmann-2/prototypes/entities.lua')
-rw-r--r-- | von-newmann-2/prototypes/entities.lua | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/von-newmann-2/prototypes/entities.lua b/von-newmann-2/prototypes/entities.lua index 19ee05b..759c41b 100644 --- a/von-newmann-2/prototypes/entities.lua +++ b/von-newmann-2/prototypes/entities.lua @@ -1,5 +1,6 @@ require ("util") +-- early chests local iron_chest = data.raw["container"]["iron-chest"] local ipsc = util.table.deepcopy(data.raw["logistic-container"]["passive-provider-chest"]) local ibc = util.table.deepcopy(data.raw["logistic-container"]["buffer-chest"]) @@ -25,6 +26,7 @@ for _, chest in ipairs(chests) do chest.picture.layers[1].filename = "__von-newmann-2__/graphics/entity/"..chest.name..".png" end +-- early bots local early_l_bot = util.table.deepcopy(data.raw["logistic-robot"]["logistic-robot"]) local early_c_bot = util.table.deepcopy(data.raw["construction-robot"]["construction-robot"]) @@ -59,6 +61,55 @@ early_l_bot.in_motion_with_cargo.filename = early_l_bot.in_motion_with_cargo.fil early_l_bot.shadow_idle_with_cargo.filename = early_l_bot.shadow_idle_with_cargo.filename:gsub("base","von-newmann-2") early_l_bot.shadow_in_motion_with_cargo.filename = early_l_bot.shadow_in_motion_with_cargo.filename:gsub("base","von-newmann-2") +-- early port +early_roboport = util.table.deepcopy(data.raw["roboport"]["roboport"]) +early_roboport.name = "early-roboport" +early_roboport.fast_replaceable_group = "roboport" +early_roboport.icon = "__von-newmann-2__/graphics/items/early-roboport.png" +early_roboport.dying_explosion = "roboport-explosion" +early_roboport.corpse = "early-roboport-remnant" +early_roboport.next_upgrade = "roboport" +early_roboport.logistics_radius = 16 -- half a chunk +early_roboport.construction_radius = 32 -- one chunk +early_roboport.minable = {mining_time = 0.1, result = "early-roboport"} +early_roboport.energy_source = { + type = "electric", + usage_priority = "secondary-input", + input_flow_limit = "4MW", + buffer_capacity = "150MJ" +} +early_roboport.recharge_minimum = "60MJ" +early_roboport.energy_usage = "75kW" +early_roboport.charging_energy = "250kW" +early_roboport.robot_slots_count = 4 +early_roboport.material_slots_count = 5 +early_roboport.charging_offsets = { + {-0.5, -0.5}, + {-0.5, 0.5}, + { 0.5, -0.5}, + { 0.5, 0.5} +} +early_roboport.base = { + layers = { + { + filename = "__von-newmann-2__/graphics/entity/roboport/early-roboport-base.png", + width = 228, + height = 277, + shift = util.by_pixel(2, 7.75), + scale = 0.5 + }, + { + filename = "__base__/graphics/entity/roboport/roboport-shadow.png", + width = 294, + height = 201, + draw_as_shadow = true, + force_hr_shadow = true, + shift = util.by_pixel(28.5, 19.25), + scale = 0.5 + } + } +} + data:extend{ ipsc, ibc, @@ -66,5 +117,6 @@ data:extend{ isc, irc, early_c_bot, - early_l_bot + early_l_bot, + early_roboport } |