aboutsummaryrefslogtreecommitdiff
path: root/von-newmann-2/prototypes/entities.lua
diff options
context:
space:
mode:
Diffstat (limited to 'von-newmann-2/prototypes/entities.lua')
-rw-r--r--von-newmann-2/prototypes/entities.lua140
1 files changed, 70 insertions, 70 deletions
diff --git a/von-newmann-2/prototypes/entities.lua b/von-newmann-2/prototypes/entities.lua
index 9620ce7..19ee05b 100644
--- a/von-newmann-2/prototypes/entities.lua
+++ b/von-newmann-2/prototypes/entities.lua
@@ -1,70 +1,70 @@
-require ("util")
-
-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"])
-local iasc = util.table.deepcopy(data.raw["logistic-container"]["active-provider-chest"])
-local isc = util.table.deepcopy(data.raw["logistic-container"]["storage-chest"])
-local irc = util.table.deepcopy(data.raw["logistic-container"]["requester-chest"])
-
-local chests = {ipsc,ibc,iasc,irc,isc}
-
-for _, chest in ipairs(chests) do
- chest.name = "iron-"..chest.name
- chest.icon = "__von-newmann-2__/graphics/items/"..chest.name..".png"
- chest.corpse = iron_chest.corpse
- chest.max_health = iron_chest.max_health
- chest.minable = {mining_time = 0.1, result = chest.name}
- chest.dying_explosion = iron_chest.dying_explosion
- chest.resistances = iron_chest.resistances
- chest.open_sound = iron_chest.open_sound
- chest.close_sound = iron_chest.close_sound
- chest.inventory_size = iron_chest.inventory_size
- chest.animation = nil
- chest.picture = util.table.deepcopy(iron_chest.picture)
- chest.picture.layers[1].filename = "__von-newmann-2__/graphics/entity/"..chest.name..".png"
-end
-
-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"])
-
-local bots = {early_c_bot,early_l_bot}
-
-for _, bot in ipairs(bots) do
- bot.icon = "__von-newmann-2__/graphics/items/"..bot.name..".png"
- bot.name = "early-"..bot.name
- bot.minable = {mining_time = 0.1, result = bot.name}
- bot.resistances =
- {
- {
- type = "fire",
- percent = 100
- }
- }
- bot.max_health = 50
- bot.speed = 0.04
- bot.max_energy = "0.75MJ"
- bot.energy_per_move = "2.5kJ"
- bot.idle.filename = bot.idle.filename:gsub("base","von-newmann-2")
- bot.in_motion.filename = bot.in_motion.filename:gsub("base","von-newmann-2")
- bot.shadow_idle.filename = bot.shadow_idle.filename:gsub("base","von-newmann-2")
- bot.shadow_in_motion.filename = bot.shadow_in_motion.filename:gsub("base","von-newmann-2")
-end
-
-early_c_bot.working.filename = early_c_bot.working.filename:gsub("base","von-newmann-2")
-early_c_bot.shadow_working.filename = early_c_bot.shadow_working.filename:gsub("base","von-newmann-2")
-
-early_l_bot.idle_with_cargo.filename = early_l_bot.idle_with_cargo.filename:gsub("base","von-newmann-2")
-early_l_bot.in_motion_with_cargo.filename = early_l_bot.in_motion_with_cargo.filename:gsub("base","von-newmann-2")
-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")
-
-data:extend{
- ipsc,
- ibc,
- iasc,
- isc,
- irc,
- early_c_bot,
- early_l_bot
-}
+require ("util")
+
+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"])
+local iasc = util.table.deepcopy(data.raw["logistic-container"]["active-provider-chest"])
+local isc = util.table.deepcopy(data.raw["logistic-container"]["storage-chest"])
+local irc = util.table.deepcopy(data.raw["logistic-container"]["requester-chest"])
+
+local chests = {ipsc,ibc,iasc,irc,isc}
+
+for _, chest in ipairs(chests) do
+ chest.name = "iron-"..chest.name
+ chest.icon = "__von-newmann-2__/graphics/items/"..chest.name..".png"
+ chest.corpse = iron_chest.corpse
+ chest.max_health = iron_chest.max_health
+ chest.minable = {mining_time = 0.1, result = chest.name}
+ chest.dying_explosion = iron_chest.dying_explosion
+ chest.resistances = iron_chest.resistances
+ chest.open_sound = iron_chest.open_sound
+ chest.close_sound = iron_chest.close_sound
+ chest.inventory_size = iron_chest.inventory_size
+ chest.animation = nil
+ chest.picture = util.table.deepcopy(iron_chest.picture)
+ chest.picture.layers[1].filename = "__von-newmann-2__/graphics/entity/"..chest.name..".png"
+end
+
+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"])
+
+local bots = {early_c_bot,early_l_bot}
+
+for _, bot in ipairs(bots) do
+ bot.icon = "__von-newmann-2__/graphics/items/"..bot.name..".png"
+ bot.name = "early-"..bot.name
+ bot.minable = {mining_time = 0.1, result = bot.name}
+ bot.resistances =
+ {
+ {
+ type = "fire",
+ percent = 100
+ }
+ }
+ bot.max_health = 50
+ bot.speed = 0.04
+ bot.max_energy = "0.75MJ"
+ bot.energy_per_move = "2.5kJ"
+ bot.idle.filename = bot.idle.filename:gsub("base","von-newmann-2")
+ bot.in_motion.filename = bot.in_motion.filename:gsub("base","von-newmann-2")
+ bot.shadow_idle.filename = bot.shadow_idle.filename:gsub("base","von-newmann-2")
+ bot.shadow_in_motion.filename = bot.shadow_in_motion.filename:gsub("base","von-newmann-2")
+end
+
+early_c_bot.working.filename = early_c_bot.working.filename:gsub("base","von-newmann-2")
+early_c_bot.shadow_working.filename = early_c_bot.shadow_working.filename:gsub("base","von-newmann-2")
+
+early_l_bot.idle_with_cargo.filename = early_l_bot.idle_with_cargo.filename:gsub("base","von-newmann-2")
+early_l_bot.in_motion_with_cargo.filename = early_l_bot.in_motion_with_cargo.filename:gsub("base","von-newmann-2")
+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")
+
+data:extend{
+ ipsc,
+ ibc,
+ iasc,
+ isc,
+ irc,
+ early_c_bot,
+ early_l_bot
+}