From f208392f39db399db1bf2a408a3d367df72b4831 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:29:15 -0800 Subject: [PATCH 01/41] Update steam-drills.lua --- bobmining/prototypes/steam-drills.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bobmining/prototypes/steam-drills.lua b/bobmining/prototypes/steam-drills.lua index 978f4462a..fa3cd11f2 100644 --- a/bobmining/prototypes/steam-drills.lua +++ b/bobmining/prototypes/steam-drills.lua @@ -21,6 +21,7 @@ if settings.startup["bobmods-mining-steamminingdrills"].value == true then filename = "__base__/sound/item/drill-inventory-pickup.ogg", volume = 0.8, }, + weight = 10000, }, { @@ -90,4 +91,10 @@ if settings.startup["bobmods-mining-steamminingdrills"].value == true then layer.animation_speed = 4 end end + + if mods["space-age"] then + data.raw["mining-drill"]["bob-steam-mining-drill"].surface_conditions = {} + end end + +data.raw.item["burner-mining-drill"].weight = 10000 From 8a9820b6ce18dd1ca035d32f0c8c08f4fb08aa69 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:56:21 -0800 Subject: [PATCH 02/41] Update burner-reactor.lua --- bobpower/prototypes/burner-reactor.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bobpower/prototypes/burner-reactor.lua b/bobpower/prototypes/burner-reactor.lua index ba7d5e853..d64db9d46 100644 --- a/bobpower/prototypes/burner-reactor.lua +++ b/bobpower/prototypes/burner-reactor.lua @@ -60,6 +60,7 @@ if settings.startup["bobmods-power-heatsources"].value == true then filename = "__base__/sound/item/metal-large-inventory-pickup.ogg", volume = 0.8, }, + weight = 50000, }, { type = "recipe", @@ -198,6 +199,7 @@ if settings.startup["bobmods-power-heatsources"].value == true then filename = "__base__/sound/item/metal-large-inventory-pickup.ogg", volume = 0.8, }, + weight = 50000, }, { type = "recipe", @@ -258,6 +260,7 @@ if settings.startup["bobmods-power-heatsources"].value == true then filename = "__base__/sound/item/metal-large-inventory-pickup.ogg", volume = 0.8, }, + weight = 50000, }, { type = "recipe", @@ -302,6 +305,7 @@ if settings.startup["bobmods-power-heatsources"].value == true then filename = "__base__/sound/item/metal-large-inventory-pickup.ogg", volume = 0.8, }, + weight = 50000, }, { type = "recipe", @@ -503,4 +507,14 @@ if settings.startup["bobmods-power-heatsources"].value == true then bobmods.lib.tech.add_recipe_unlock("bob-burner-reactor-1", "bob-fluid-reactor-from-fluid-furnace") end + + if mods["space-age"] then + local no_space = { + { property = "pressure", min = 10 }, + } + data.raw.reactor["bob-burner-reactor"].surface_conditions = no_space + data.raw.reactor["bob-burner-reactor-2"].surface_conditions = no_space + data.raw.reactor["bob-fluid-reactor"].surface_conditions = no_space + data.raw.reactor["bob-fluid-reactor-2"].surface_conditions = no_space + end end From 57628d8392f9d1afecf44303200bd73eceb3cf84 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 20:00:31 -0800 Subject: [PATCH 03/41] Update burner-generator.lua --- bobpower/prototypes/burner-generator.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bobpower/prototypes/burner-generator.lua b/bobpower/prototypes/burner-generator.lua index 84807deb6..010f6f039 100644 --- a/bobpower/prototypes/burner-generator.lua +++ b/bobpower/prototypes/burner-generator.lua @@ -21,6 +21,7 @@ if settings.startup["bobmods-power-burnergenerator"].value == true then filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, + weight = 100000, }, { @@ -123,4 +124,11 @@ if settings.startup["bobmods-power-burnergenerator"].value == true then }, }, }) + + if mods["space-age"] then + data.raw["burner-generator"]["bob-burner-generator"].surface_conditions = { + { property = "pressure", min = 10 }, + } + end + end From 99bf3a588a7d4ea54902c0c5fa99f0a35d3408bb Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 20:35:58 -0800 Subject: [PATCH 04/41] Update fluid-generator.lua --- bobpower/prototypes/entity/fluid-generator.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bobpower/prototypes/entity/fluid-generator.lua b/bobpower/prototypes/entity/fluid-generator.lua index 25e90b871..d6b731a8b 100644 --- a/bobpower/prototypes/entity/fluid-generator.lua +++ b/bobpower/prototypes/entity/fluid-generator.lua @@ -369,4 +369,16 @@ if settings.startup["bobmods-power-fluidgenerator"].value == true then }, }) end + + if mods["space-age"] then + local no_space = { + { property = "pressure", min = 10 }, + } + data.raw.generator["bob-fluid-generator"].surface_conditions = no_space + data.raw.generator["bob-fluid-generator-2"].surface_conditions = no_space + data.raw.generator["bob-fluid-generator-3"].surface_conditions = no_space + if data.raw.generator["bob-hydrazine-generator"] then + data.raw.generator["bob-hydrazine-generator"].surface_conditions = no_space + end + end end From 21d027f633c3f6aec1bc168b6551143de309da72 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 20:39:50 -0800 Subject: [PATCH 05/41] Update assembly-burner.lua --- bobassembly/prototypes/assembly-burner.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bobassembly/prototypes/assembly-burner.lua b/bobassembly/prototypes/assembly-burner.lua index 0c27a1bee..7a4951916 100644 --- a/bobassembly/prototypes/assembly-burner.lua +++ b/bobassembly/prototypes/assembly-burner.lua @@ -49,7 +49,7 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 10000, + weight = 20000, }, { @@ -337,4 +337,10 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu data.raw["assembling-machine"]["bob-burner-assembling-machine"].ingredient_count = 2 data.raw["assembling-machine"]["bob-steam-assembling-machine"].ingredient_count = 4 end + + if mods["space-age"] then + data.raw["assembling-machine"]["bob-burner-assembling-machine"].surface_conditions = { + { property = "pressure", min = 10 }, + } + end end From d87710f7081921a665b1a204e45bc44d50647599 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 20:47:39 -0800 Subject: [PATCH 06/41] Update assembly-burner.lua --- bobassembly/prototypes/assembly-burner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bobassembly/prototypes/assembly-burner.lua b/bobassembly/prototypes/assembly-burner.lua index 7a4951916..c8e5a745f 100644 --- a/bobassembly/prototypes/assembly-burner.lua +++ b/bobassembly/prototypes/assembly-burner.lua @@ -49,7 +49,7 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 20000, + weight = 10000, }, { @@ -185,7 +185,7 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 40000, + weight = 20000, }, { From b6a168fbc9abae70e0b92e3690a83d4b1a562aed Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:02:37 -0800 Subject: [PATCH 07/41] Update entities.lua --- bobplates/prototypes/entity/entities.lua | 98 +++++++++++++----------- 1 file changed, 55 insertions(+), 43 deletions(-) diff --git a/bobplates/prototypes/entity/entities.lua b/bobplates/prototypes/entity/entities.lua index ab01869f9..9b50d28f7 100644 --- a/bobplates/prototypes/entity/entities.lua +++ b/bobplates/prototypes/entity/entities.lua @@ -1239,53 +1239,65 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen +if mods["space-age"] then - data.raw["assembling-machine"]["bob-electrolyser"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch + local no_space = { + { property = "pressure", min = 10 }, + } - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].graphics_set.frozen_patch = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", - width = 239, - height = 219, - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, - }, - { - filename = "__bobplates__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", - width = 239, - height = 219, - priority = "high", - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, + data.raw["assembling-machine"]["bob-stone-chemical-furnace"].surface_conditions = no_space + data.raw["assembling-machine"]["bob-stone-mixing-furnace"].surface_conditions = no_space + data.raw["assembling-machine"]["bob-steel-chemical-furnace"].surface_conditions = no_space + data.raw["assembling-machine"]["bob-steel-mixing-furnace"].surface_conditions = no_space + + if feature_flags["freezing"] then + local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen + local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen + + data.raw["assembling-machine"]["bob-electrolyser"].heating_energy = "100kW" + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch + + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].heating_energy = "100kW" + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].graphics_set.frozen_patch = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", + width = 239, + height = 219, + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, + { + filename = "__bobplates__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", + width = 239, + height = 219, + priority = "high", + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, }, - }, - } - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + } + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electric-mixing-furnace"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-electric-mixing-furnace"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", - width = 239, - height = 219, - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, - } + data.raw["assembling-machine"]["bob-electric-mixing-furnace"].heating_energy = "100kW" + data.raw["assembling-machine"]["bob-electric-mixing-furnace"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", + width = 239, + height = 219, + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + } - data.raw["storage-tank"]["bob-small-inline-storage-tank"].heating_energy = "25kW" - data.raw["storage-tank"]["bob-small-storage-tank"].heating_energy = "25kW" - data.raw["storage-tank"]["bob-small-inline-storage-tank"].fluid_box.pipe_picture_frozen = pipefrozenpatch - data.raw["storage-tank"]["bob-small-storage-tank"].fluid_box.pipe_covers_frozen = pcfrozenpatch + data.raw["storage-tank"]["bob-small-inline-storage-tank"].heating_energy = "25kW" + data.raw["storage-tank"]["bob-small-storage-tank"].heating_energy = "25kW" + data.raw["storage-tank"]["bob-small-inline-storage-tank"].fluid_box.pipe_picture_frozen = pipefrozenpatch + data.raw["storage-tank"]["bob-small-storage-tank"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.furnace["bob-void-pump"].heating_energy = "10kW" - data.raw.furnace["bob-void-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + data.raw.furnace["bob-void-pump"].heating_energy = "10kW" + data.raw.furnace["bob-void-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + end end From e3d48e57f8ef44ca9a1ddfa3acbcf69d130b604c Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:12:29 -0800 Subject: [PATCH 08/41] Update entities.lua --- bobgreenhouse/prototypes/entities.lua | 29 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/bobgreenhouse/prototypes/entities.lua b/bobgreenhouse/prototypes/entities.lua index 1b84053f7..d99adf63e 100644 --- a/bobgreenhouse/prototypes/entities.lua +++ b/bobgreenhouse/prototypes/entities.lua @@ -147,17 +147,22 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then - data.raw["assembling-machine"]["bob-greenhouse"].heating_energy = "250kW" - data.raw["assembling-machine"]["bob-greenhouse"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/lab/lab.png", - width = 194, - height = 174, - scale = 0.5, - shift = { 0, 0.09375 }, +if mods["space-age"] then + data.raw["assembling-machine"]["bob-greenhouse"].surface_conditions = { + { property = "gravity", min = 1 }, } - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + if feature_flags["freezing"] then + data.raw["assembling-machine"]["bob-greenhouse"].heating_energy = "250kW" + data.raw["assembling-machine"]["bob-greenhouse"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/lab/lab.png", + width = 194, + height = 174, + scale = 0.5, + shift = { 0, 0.09375 }, + } + local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen + local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen + data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch + data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + end end From a7c30685600f64983f741b4a1ee237c6e571f423 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 06:17:22 -0800 Subject: [PATCH 09/41] Update entity.lua --- bobtech/prototypes/entity/entity.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bobtech/prototypes/entity/entity.lua b/bobtech/prototypes/entity/entity.lua index ae789245b..ab2de456a 100644 --- a/bobtech/prototypes/entity/entity.lua +++ b/bobtech/prototypes/entity/entity.lua @@ -306,6 +306,14 @@ if settings.startup["bobmods-burnerphase"].value == true then DiscoScience.prepareLab(data.raw["lab"]["bob-burner-lab"]) end + local no_space = { + { property = "pressure", min = 10 }, + } + + if mods["space-age"] then + data.raw.lab["bob-burner-lab"].surface_conditions = no_space + end + if not data.raw["burner-generator"]["bob-burner-generator"] then data:extend({ { @@ -397,5 +405,10 @@ if settings.startup["bobmods-burnerphase"].value == true then }, }, }) + + if mods["space-age"] then + data.raw["burner-generator"]["bob-burner-generator"].surface_conditions = no_space + end + end end From dda007c5fd8158cf27ef83460b3e1a574ee50c17 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 06:36:20 -0800 Subject: [PATCH 10/41] Update tank.lua --- bobwarfare/prototypes/entity/tank.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bobwarfare/prototypes/entity/tank.lua b/bobwarfare/prototypes/entity/tank.lua index ee3e2372d..6c677e2ca 100644 --- a/bobwarfare/prototypes/entity/tank.lua +++ b/bobwarfare/prototypes/entity/tank.lua @@ -615,3 +615,22 @@ data:extend({ water_reflection = car_reflection(1.2), }, }) + +if mods["space-age"] then + data.raw.car.car.surface_conditions = { + { property = "gravity", min = 1 }, + { property = "pressure", min = 10 }, + } + data.raw.car.tank.surface_conditions = { + { property = "gravity", min = 1 }, + { property = "pressure", min = 10 }, + } + data.raw.car["bob-tank-2"].surface_conditions = { + { property = "gravity", min = 1 }, + { property = "pressure", min = 10 }, + } + data.raw.car["bob-tank-3"].surface_conditions = { + { property = "gravity", min = 1 }, + { property = "pressure", min = 10 }, + } +end From bb49a0b3f65c32806eea459e21a45bc6f701546d Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 07:17:23 -0800 Subject: [PATCH 11/41] Update spidertron-updates.lua --- bobwarfare/prototypes/spidertron-updates.lua | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/bobwarfare/prototypes/spidertron-updates.lua b/bobwarfare/prototypes/spidertron-updates.lua index 0f2470b99..ecbdeeb23 100644 --- a/bobwarfare/prototypes/spidertron-updates.lua +++ b/bobwarfare/prototypes/spidertron-updates.lua @@ -198,6 +198,38 @@ else --"none" add_heavy_spidertron_power_supply() end +if mods["space-age"] then + data.raw["spider-vehicle"]["bob-antron"].surface_conditions = { + { property = "gravity", min = 1 }, + } + data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions = { + { property = "gravity", min = 1 }, + } + data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions = { + { property = "gravity", min = 1 }, + } + data.raw["spider-vehicle"]["bob-heavy-spidertron"].surface_conditions = { + { property = "gravity", min = 1 }, + } + local burner_condition = { property = "pressure", min = 10 } + if settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "all" then + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-heavy-spidertron"].surface_conditions, burner_condition) + elseif settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "nothighest" then + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition) + elseif settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "default" then + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) + end +end + if settings.startup["bobmods-warfare-spidertron-overhaul"].value == true then bobmods.lib.tech.add_recipe_unlock("bob-walking-vehicle", "bob-mech-leg-segment") bobmods.lib.tech.add_recipe_unlock("bob-walking-vehicle", "bob-mech-knee") From 5dc45a905d97c38bb0801e15cfd8f5cd82e0d4de Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 13:19:02 -0800 Subject: [PATCH 12/41] Update train.lua --- boblogistics/prototypes/entity/train.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boblogistics/prototypes/entity/train.lua b/boblogistics/prototypes/entity/train.lua index 18035befd..94c5a5ef9 100644 --- a/boblogistics/prototypes/entity/train.lua +++ b/boblogistics/prototypes/entity/train.lua @@ -92,6 +92,10 @@ if settings.startup["bobmods-logistics-trains"].value == true then data.raw.locomotive["locomotive"].resistances = rolling_stock_resistances() + if mods["space-age"] then + table.insert(data.raw.locomotive.locomotive.surface_conditions, { property = "pressure", min = 10 }) + end + data:extend({ util.merge({ data.raw.locomotive.locomotive, From ac68ade7aa30d5e7e66809f63fcad382875d8d31 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 15:15:28 -0800 Subject: [PATCH 13/41] Update chests.lua --- boblogistics/prototypes/chests.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/boblogistics/prototypes/chests.lua b/boblogistics/prototypes/chests.lua index 8666dc527..1bdf199a1 100644 --- a/boblogistics/prototypes/chests.lua +++ b/boblogistics/prototypes/chests.lua @@ -32,6 +32,7 @@ if data.raw.item["bob-brass-alloy"] then drop_sound = chest_drop_move, inventory_move_sound = chest_drop_move, pick_sound = chest_pick, + weight = 20000, }, { type = "container", @@ -74,6 +75,13 @@ if data.raw.item["bob-brass-alloy"] then circuit_wire_max_distance = default_circuit_wire_max_distance, }, }) + + if mods["space-age"] then + data.raw.container["bob-brass-chest"].surface_conditions = { + { property = "gravity", min = 1 }, + } + end + end if data.raw.item["bob-titanium-plate"] then @@ -97,6 +105,7 @@ if data.raw.item["bob-titanium-plate"] then drop_sound = chest_drop_move, inventory_move_sound = chest_drop_move, pick_sound = chest_pick, + weight = 20000, }, { type = "container", @@ -152,4 +161,11 @@ if data.raw.item["bob-titanium-plate"] then circuit_wire_max_distance = default_circuit_wire_max_distance, }, }) + + if mods["space-age"] then + data.raw.container["bob-titanium-chest"].surface_conditions = { + { property = "gravity", min = 1 }, + } + end + end From 18bfb9227c458ea3454ef048a34c145ee5377d45 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 15:20:10 -0800 Subject: [PATCH 14/41] Update logistic-container.lua --- .../prototypes/entity/logistic-container.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/boblogistics/prototypes/entity/logistic-container.lua b/boblogistics/prototypes/entity/logistic-container.lua index 77fba498f..a632953e0 100644 --- a/boblogistics/prototypes/entity/logistic-container.lua +++ b/boblogistics/prototypes/entity/logistic-container.lua @@ -242,3 +242,22 @@ data:extend({ circuit_wire_max_distance = 15, }), }) + +if mods["space-age"] then + local no_space = { + { property = "gravity", min = 1 }, + } + + data.raw["logistic-container"]["bob-passive-provider-chest-2"].surface_conditions = no_space + data.raw["logistic-container"]["bob-active-provider-chest-2"].surface_conditions = no_space + data.raw["logistic-container"]["bob-storage-chest-2"].surface_conditions = no_space + data.raw["logistic-container"]["bob-buffer-chest-2"].surface_conditions = no_space + data.raw["logistic-container"]["bob-requester-chest-2"].surface_conditions = no_space + + data.raw["logistic-container"]["bob-passive-provider-chest-3"].surface_conditions = no_space + data.raw["logistic-container"]["bob-active-provider-chest-3"].surface_conditions = no_space + data.raw["logistic-container"]["bob-storage-chest-3"].surface_conditions = no_space + data.raw["logistic-container"]["bob-buffer-chest-3"].surface_conditions = no_space + data.raw["logistic-container"]["bob-requester-chest-3"].surface_conditions = no_space + +end From 0fddc2dc92fa244e180bfe04c6610700f0d35927 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 15:21:09 -0800 Subject: [PATCH 15/41] Update roboport.lua --- boblogistics/prototypes/entity/roboport.lua | 404 +++++++++++--------- 1 file changed, 220 insertions(+), 184 deletions(-) diff --git a/boblogistics/prototypes/entity/roboport.lua b/boblogistics/prototypes/entity/roboport.lua index ec06ebcad..485de9ac2 100644 --- a/boblogistics/prototypes/entity/roboport.lua +++ b/boblogistics/prototypes/entity/roboport.lua @@ -1,4 +1,7 @@ local sounds = require("__base__.prototypes.entity.sounds") +local no_space = { + { property = "pressure", min = 10 }, +} data.raw.roboport["roboport"].fast_replaceable_group = "roboport" @@ -423,15 +426,22 @@ if settings.startup["bobmods-logistics-disableroboports"].value == false then }, }) - if feature_flags["freezing"] and mods["space-age"] then - data.raw.roboport["bob-roboport-2"].heating_energy = "300kW" - data.raw.roboport["bob-roboport-3"].heating_energy = "300kW" - data.raw.roboport["bob-roboport-4"].heating_energy = "300kW" - local frozenpatch = data.raw.roboport.roboport.frozen_patch - frozenpatch.shift = { 0.0625, 0.2421875 } - data.raw.roboport["bob-roboport-2"].frozen_patch = frozenpatch - data.raw.roboport["bob-roboport-3"].frozen_patch = frozenpatch - data.raw.roboport["bob-roboport-4"].frozen_patch = frozenpatch + if mods["space-age"] then + + data.raw.roboport["bob-roboport-2"].surface_conditions = no_space + data.raw.roboport["bob-roboport-3"].surface_conditions = no_space + data.raw.roboport["bob-roboport-4"].surface_conditions = no_space + + if feature_flags["freezing"] then + data.raw.roboport["bob-roboport-2"].heating_energy = "300kW" + data.raw.roboport["bob-roboport-3"].heating_energy = "300kW" + data.raw.roboport["bob-roboport-4"].heating_energy = "300kW" + local frozenpatch = data.raw.roboport.roboport.frozen_patch + frozenpatch.shift = { 0.0625, 0.2421875 } + data.raw.roboport["bob-roboport-2"].frozen_patch = frozenpatch + data.raw.roboport["bob-roboport-3"].frozen_patch = frozenpatch + data.raw.roboport["bob-roboport-4"].frozen_patch = frozenpatch + end end end @@ -2360,184 +2370,210 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then - data.raw.roboport["bob-logistic-zone-expander"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-2"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-3"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-4"].heating_energy = "20kW" - data.raw.roboport["bob-robochest"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-2"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-3"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-4"].heating_energy = "200kW" - data.raw.roboport["bob-robo-charge-port"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-2"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-3"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-4"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-large"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-2"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-3"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-4"].heating_energy = "180kW" - data.raw.roboport["bob-logistic-zone-interface"].heating_energy = "20kW" +if mods["space-age"] then - local chestfrozenpatch = { - filename = "__space-age__/graphics/entity/frozen/roboport/roboport-base.png", - x = 57, - y = 44, - width = 114, - height = 81, - scale = 0.5, - shift = { 0.0625, -0.3359375 }, - } - data.raw.roboport["bob-robochest"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-2"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-3"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-4"].frozen_patch = chestfrozenpatch + data.raw.roboport["bob-logistic-zone-expander"].surface_conditions = no_space + data.raw.roboport["bob-logistic-zone-expander-2"].surface_conditions = no_space + data.raw.roboport["bob-logistic-zone-expander-3"].surface_conditions = no_space + data.raw.roboport["bob-logistic-zone-expander-4"].surface_conditions = no_space - local chargeportfrozen = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -0.5, -0.5703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0.5, -0.5703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -0.5, 0.4296875 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0.5, 0.4296875 }, - }, - }, - } - data.raw.roboport["bob-robo-charge-port"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-2"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-3"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-4"].frozen_patch = chargeportfrozen + data.raw.roboport["bob-robochest"].surface_conditions = no_space + data.raw.roboport["bob-robochest-2"].surface_conditions = no_space + data.raw.roboport["bob-robochest-3"].surface_conditions = no_space + data.raw.roboport["bob-robochest-4"].surface_conditions = no_space - local chargeportlargefrozen = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, 0.9296875 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, 0.9296875 }, + data.raw.roboport["bob-robo-charge-port"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-2"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-3"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-4"].surface_conditions = no_space + + data.raw.roboport["bob-robo-charge-port-large"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-large-2"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-large-3"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-large-4"].surface_conditions = no_space + + data.raw.roboport["bob-logistic-zone-interface"].surface_conditions = no_space + + if feature_flags["freezing"] then + + data.raw.roboport["bob-logistic-zone-expander"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-2"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-3"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-4"].heating_energy = "20kW" + data.raw.roboport["bob-robochest"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-2"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-3"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-4"].heating_energy = "200kW" + data.raw.roboport["bob-robo-charge-port"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-2"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-3"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-4"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-large"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-2"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-3"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-4"].heating_energy = "180kW" + data.raw.roboport["bob-logistic-zone-interface"].heating_energy = "20kW" + + local chestfrozenpatch = { + filename = "__space-age__/graphics/entity/frozen/roboport/roboport-base.png", + x = 57, + y = 44, + width = 114, + height = 81, + scale = 0.5, + shift = { 0.0625, -0.3359375 }, + } + data.raw.roboport["bob-robochest"].frozen_patch = chestfrozenpatch + data.raw.roboport["bob-robochest-2"].frozen_patch = chestfrozenpatch + data.raw.roboport["bob-robochest-3"].frozen_patch = chestfrozenpatch + data.raw.roboport["bob-robochest-4"].frozen_patch = chestfrozenpatch + + local chargeportfrozen = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -0.5, -0.5703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0.5, -0.5703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -0.5, 0.4296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0.5, 0.4296875 }, + }, }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, 0.9296875 }, + } + data.raw.roboport["bob-robo-charge-port"].frozen_patch = chargeportfrozen + data.raw.roboport["bob-robo-charge-port-2"].frozen_patch = chargeportfrozen + data.raw.roboport["bob-robo-charge-port-3"].frozen_patch = chargeportfrozen + data.raw.roboport["bob-robo-charge-port-4"].frozen_patch = chargeportfrozen + + local chargeportlargefrozen = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, 0.9296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, 0.9296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, 0.9296875 }, + }, }, - }, - } - data.raw.roboport["bob-robo-charge-port-large"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-2"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-3"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-4"].frozen_patch = chargeportlargefrozen + } + data.raw.roboport["bob-robo-charge-port-large"].frozen_patch = chargeportlargefrozen + data.raw.roboport["bob-robo-charge-port-large-2"].frozen_patch = chargeportlargefrozen + data.raw.roboport["bob-robo-charge-port-large-3"].frozen_patch = chargeportlargefrozen + data.raw.roboport["bob-robo-charge-port-large-4"].frozen_patch = chargeportlargefrozen + end end From 0ff0a2c8319852b30ec5f1f256a25e1595d74631 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:13:48 -0800 Subject: [PATCH 16/41] Update drone.lua --- bobwarfare/prototypes/entity/drone.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bobwarfare/prototypes/entity/drone.lua b/bobwarfare/prototypes/entity/drone.lua index d1fa7473b..cdf7f0318 100644 --- a/bobwarfare/prototypes/entity/drone.lua +++ b/bobwarfare/prototypes/entity/drone.lua @@ -458,3 +458,19 @@ data:extend({ run_animation = bobmods.warfare.tank_drone_animation(0.5 * 1.5, tint_drone_plasma, tint_drone_1), }, }) + +if mods["space-age"] then + data.raw.unit["bob-robot-gun-drone"].surface_conditions = { + { property = "gravity", min = 1 }, + } + data.raw.unit["bob-robot-laser-drone"].surface_conditions = { + { property = "gravity", min = 1 }, + } + data.raw.unit["bob-robot-flamethrower-drone"].surface_conditions = { + { property = "gravity", min = 1 }, + { property = "pressure", min = 10 }, + } + data.raw.unit["bob-robot-plasma-drone"].surface_conditions = { + { property = "gravity", min = 1 }, + } +end From eaedd3b6c141fdf4366053976495bb3813b0c5af Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Sun, 29 Mar 2026 12:53:07 +1300 Subject: [PATCH 17/41] Entities in space - Use feature flags check instead of a mod check when we are not using Space Age graphics - Set required gravity for chests to be 0.1 rather than 1 to match Space Age chests - Refactor to set surfact_conditions in a loop / from a function so that multiple prototypes aren't sharing a table --- bobassembly/prototypes/assembly-burner.lua | 2 +- bobgreenhouse/prototypes/entities.lua | 4 +- boblogistics/prototypes/chests.lua | 6 +- .../prototypes/entity/logistic-container.lua | 33 +- boblogistics/prototypes/entity/roboport.lua | 386 +++++++++--------- boblogistics/prototypes/entity/train.lua | 2 +- bobmining/prototypes/steam-drills.lua | 2 +- bobplates/prototypes/entity/entities.lua | 44 +- bobpower/prototypes/burner-generator.lua | 2 +- bobpower/prototypes/burner-reactor.lua | 18 +- .../prototypes/entity/fluid-generator.lua | 16 +- bobtech/prototypes/entity/entity.lua | 14 +- bobwarfare/prototypes/entity/drone.lua | 2 +- bobwarfare/prototypes/entity/tank.lua | 2 +- bobwarfare/prototypes/spidertron-updates.lua | 30 +- 15 files changed, 289 insertions(+), 274 deletions(-) diff --git a/bobassembly/prototypes/assembly-burner.lua b/bobassembly/prototypes/assembly-burner.lua index c8e5a745f..7e0beeccf 100644 --- a/bobassembly/prototypes/assembly-burner.lua +++ b/bobassembly/prototypes/assembly-burner.lua @@ -338,7 +338,7 @@ if not mods["aai-industry"] and settings.startup["bobmods-assembly-burner"].valu data.raw["assembling-machine"]["bob-steam-assembling-machine"].ingredient_count = 4 end - if mods["space-age"] then + if feature_flags["space_travel"] then data.raw["assembling-machine"]["bob-burner-assembling-machine"].surface_conditions = { { property = "pressure", min = 10 }, } diff --git a/bobgreenhouse/prototypes/entities.lua b/bobgreenhouse/prototypes/entities.lua index d99adf63e..a6435c35a 100644 --- a/bobgreenhouse/prototypes/entities.lua +++ b/bobgreenhouse/prototypes/entities.lua @@ -147,11 +147,11 @@ data:extend({ }, }) -if mods["space-age"] then +if feature_flags["space_travel"] then data.raw["assembling-machine"]["bob-greenhouse"].surface_conditions = { { property = "gravity", min = 1 }, } - if feature_flags["freezing"] then + if mods["space-age"] then data.raw["assembling-machine"]["bob-greenhouse"].heating_energy = "250kW" data.raw["assembling-machine"]["bob-greenhouse"].graphics_set.frozen_patch = { filename = "__space-age__/graphics/entity/frozen/lab/lab.png", diff --git a/boblogistics/prototypes/chests.lua b/boblogistics/prototypes/chests.lua index 1bdf199a1..638165d53 100644 --- a/boblogistics/prototypes/chests.lua +++ b/boblogistics/prototypes/chests.lua @@ -76,9 +76,9 @@ if data.raw.item["bob-brass-alloy"] then }, }) - if mods["space-age"] then + if feature_flags["space_travel"] then data.raw.container["bob-brass-chest"].surface_conditions = { - { property = "gravity", min = 1 }, + { property = "gravity", min = 0.1 }, } end @@ -164,7 +164,7 @@ if data.raw.item["bob-titanium-plate"] then if mods["space-age"] then data.raw.container["bob-titanium-chest"].surface_conditions = { - { property = "gravity", min = 1 }, + { property = "gravity", min = 0.1 }, } end diff --git a/boblogistics/prototypes/entity/logistic-container.lua b/boblogistics/prototypes/entity/logistic-container.lua index a632953e0..3ef9d6100 100644 --- a/boblogistics/prototypes/entity/logistic-container.lua +++ b/boblogistics/prototypes/entity/logistic-container.lua @@ -243,21 +243,20 @@ data:extend({ }), }) -if mods["space-age"] then - local no_space = { - { property = "gravity", min = 1 }, - } - - data.raw["logistic-container"]["bob-passive-provider-chest-2"].surface_conditions = no_space - data.raw["logistic-container"]["bob-active-provider-chest-2"].surface_conditions = no_space - data.raw["logistic-container"]["bob-storage-chest-2"].surface_conditions = no_space - data.raw["logistic-container"]["bob-buffer-chest-2"].surface_conditions = no_space - data.raw["logistic-container"]["bob-requester-chest-2"].surface_conditions = no_space - - data.raw["logistic-container"]["bob-passive-provider-chest-3"].surface_conditions = no_space - data.raw["logistic-container"]["bob-active-provider-chest-3"].surface_conditions = no_space - data.raw["logistic-container"]["bob-storage-chest-3"].surface_conditions = no_space - data.raw["logistic-container"]["bob-buffer-chest-3"].surface_conditions = no_space - data.raw["logistic-container"]["bob-requester-chest-3"].surface_conditions = no_space - +if feature_flags["space_travel"] then + -- Ban logistic containers from space + for _, container_name in pairs({ + "bob-passive-provider-chest-2", + "bob-active-provider-chest-2", + "bob-storage-chest-2", + "bob-buffer-chest-2", + "bob-requester-chest-2", + "bob-passive-provider-chest-3", + "bob-active-provider-chest-3", + "bob-storage-chest-3", + "bob-buffer-chest-3", + "bob-requester-chest-3", + }) do + data.raw["logistic-container"][container_name].surface_conditions = { { property = "gravity", min = 0.1 } } + end end diff --git a/boblogistics/prototypes/entity/roboport.lua b/boblogistics/prototypes/entity/roboport.lua index 485de9ac2..1ed34f2c6 100644 --- a/boblogistics/prototypes/entity/roboport.lua +++ b/boblogistics/prototypes/entity/roboport.lua @@ -1,7 +1,7 @@ local sounds = require("__base__.prototypes.entity.sounds") -local no_space = { - { property = "pressure", min = 10 }, -} +local function no_space() + return { { property = "pressure", min = 10 } } +end data.raw.roboport["roboport"].fast_replaceable_group = "roboport" @@ -426,21 +426,23 @@ if settings.startup["bobmods-logistics-disableroboports"].value == false then }, }) - if mods["space-age"] then - - data.raw.roboport["bob-roboport-2"].surface_conditions = no_space - data.raw.roboport["bob-roboport-3"].surface_conditions = no_space - data.raw.roboport["bob-roboport-4"].surface_conditions = no_space + if feature_flags["space_travel"] then + data.raw.roboport["bob-roboport-2"].surface_conditions = no_space() + data.raw.roboport["bob-roboport-3"].surface_conditions = no_space() + data.raw.roboport["bob-roboport-4"].surface_conditions = no_space() if feature_flags["freezing"] then data.raw.roboport["bob-roboport-2"].heating_energy = "300kW" data.raw.roboport["bob-roboport-3"].heating_energy = "300kW" data.raw.roboport["bob-roboport-4"].heating_energy = "300kW" - local frozenpatch = data.raw.roboport.roboport.frozen_patch - frozenpatch.shift = { 0.0625, 0.2421875 } - data.raw.roboport["bob-roboport-2"].frozen_patch = frozenpatch - data.raw.roboport["bob-roboport-3"].frozen_patch = frozenpatch - data.raw.roboport["bob-roboport-4"].frozen_patch = frozenpatch + local function frozenpatch() + local result = util.table.deepcopy(data.raw.roboport.roboport.frozen_patch) + result.shift = { 0.0625, 0.2421875 } + return result + end + data.raw.roboport["bob-roboport-2"].frozen_patch = frozenpatch() + data.raw.roboport["bob-roboport-3"].frozen_patch = frozenpatch() + data.raw.roboport["bob-roboport-4"].frozen_patch = frozenpatch() end end end @@ -2370,31 +2372,31 @@ data:extend({ }, }) -if mods["space-age"] then +if feature_flags["space_travel"] then - data.raw.roboport["bob-logistic-zone-expander"].surface_conditions = no_space - data.raw.roboport["bob-logistic-zone-expander-2"].surface_conditions = no_space - data.raw.roboport["bob-logistic-zone-expander-3"].surface_conditions = no_space - data.raw.roboport["bob-logistic-zone-expander-4"].surface_conditions = no_space + data.raw.roboport["bob-logistic-zone-expander"].surface_conditions = no_space() + data.raw.roboport["bob-logistic-zone-expander-2"].surface_conditions = no_space() + data.raw.roboport["bob-logistic-zone-expander-3"].surface_conditions = no_space() + data.raw.roboport["bob-logistic-zone-expander-4"].surface_conditions = no_space() - data.raw.roboport["bob-robochest"].surface_conditions = no_space - data.raw.roboport["bob-robochest-2"].surface_conditions = no_space - data.raw.roboport["bob-robochest-3"].surface_conditions = no_space - data.raw.roboport["bob-robochest-4"].surface_conditions = no_space + data.raw.roboport["bob-robochest"].surface_conditions = no_space() + data.raw.roboport["bob-robochest-2"].surface_conditions = no_space() + data.raw.roboport["bob-robochest-3"].surface_conditions = no_space() + data.raw.roboport["bob-robochest-4"].surface_conditions = no_space() - data.raw.roboport["bob-robo-charge-port"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-2"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-3"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-4"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-2"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-3"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-4"].surface_conditions = no_space() - data.raw.roboport["bob-robo-charge-port-large"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-large-2"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-large-3"].surface_conditions = no_space - data.raw.roboport["bob-robo-charge-port-large-4"].surface_conditions = no_space + data.raw.roboport["bob-robo-charge-port-large"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-large-2"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-large-3"].surface_conditions = no_space() + data.raw.roboport["bob-robo-charge-port-large-4"].surface_conditions = no_space() - data.raw.roboport["bob-logistic-zone-interface"].surface_conditions = no_space + data.raw.roboport["bob-logistic-zone-interface"].surface_conditions = no_space() - if feature_flags["freezing"] then + if mods["space-age"] then data.raw.roboport["bob-logistic-zone-expander"].heating_energy = "20kW" data.raw.roboport["bob-logistic-zone-expander-2"].heating_energy = "20kW" @@ -2414,166 +2416,172 @@ if mods["space-age"] then data.raw.roboport["bob-robo-charge-port-large-4"].heating_energy = "180kW" data.raw.roboport["bob-logistic-zone-interface"].heating_energy = "20kW" - local chestfrozenpatch = { - filename = "__space-age__/graphics/entity/frozen/roboport/roboport-base.png", - x = 57, - y = 44, - width = 114, - height = 81, - scale = 0.5, - shift = { 0.0625, -0.3359375 }, - } - data.raw.roboport["bob-robochest"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-2"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-3"].frozen_patch = chestfrozenpatch - data.raw.roboport["bob-robochest-4"].frozen_patch = chestfrozenpatch + local function chestfrozenpatch() + return { + filename = "__space-age__/graphics/entity/frozen/roboport/roboport-base.png", + x = 57, + y = 44, + width = 114, + height = 81, + scale = 0.5, + shift = { 0.0625, -0.3359375 }, + } + end + data.raw.roboport["bob-robochest"].frozen_patch = chestfrozenpatch() + data.raw.roboport["bob-robochest-2"].frozen_patch = chestfrozenpatch() + data.raw.roboport["bob-robochest-3"].frozen_patch = chestfrozenpatch() + data.raw.roboport["bob-robochest-4"].frozen_patch = chestfrozenpatch() - local chargeportfrozen = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -0.5, -0.5703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0.5, -0.5703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -0.5, 0.4296875 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0.5, 0.4296875 }, + local function chargeportfrozen() + return { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -0.5, -0.5703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0.5, -0.5703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -0.5, 0.4296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0.5, 0.4296875 }, + }, }, - }, - } - data.raw.roboport["bob-robo-charge-port"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-2"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-3"].frozen_patch = chargeportfrozen - data.raw.roboport["bob-robo-charge-port-4"].frozen_patch = chargeportfrozen + } + end + data.raw.roboport["bob-robo-charge-port"].frozen_patch = chargeportfrozen() + data.raw.roboport["bob-robo-charge-port-2"].frozen_patch = chargeportfrozen() + data.raw.roboport["bob-robo-charge-port-3"].frozen_patch = chargeportfrozen() + data.raw.roboport["bob-robo-charge-port-4"].frozen_patch = chargeportfrozen() - local chargeportlargefrozen = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, -1.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, -0.0703125 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { -1, 0.9296875 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 0, 0.9296875 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", - x = 34, - y = 11, - width = 34, - height = 28, - priority = "extra-high", - scale = 0.75, - shift = { 1, 0.9296875 }, + local function chargeportlargefrozen() + return { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, -1.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, -0.0703125 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { -1, 0.9296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 0, 0.9296875 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/inserter/inserter-platform.png", + x = 34, + y = 11, + width = 34, + height = 28, + priority = "extra-high", + scale = 0.75, + shift = { 1, 0.9296875 }, + }, }, - }, - } - data.raw.roboport["bob-robo-charge-port-large"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-2"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-3"].frozen_patch = chargeportlargefrozen - data.raw.roboport["bob-robo-charge-port-large-4"].frozen_patch = chargeportlargefrozen + } + end + data.raw.roboport["bob-robo-charge-port-large"].frozen_patch = chargeportlargefrozen() + data.raw.roboport["bob-robo-charge-port-large-2"].frozen_patch = chargeportlargefrozen() + data.raw.roboport["bob-robo-charge-port-large-3"].frozen_patch = chargeportlargefrozen() + data.raw.roboport["bob-robo-charge-port-large-4"].frozen_patch = chargeportlargefrozen() end end diff --git a/boblogistics/prototypes/entity/train.lua b/boblogistics/prototypes/entity/train.lua index 94c5a5ef9..5f2ccebd4 100644 --- a/boblogistics/prototypes/entity/train.lua +++ b/boblogistics/prototypes/entity/train.lua @@ -92,7 +92,7 @@ if settings.startup["bobmods-logistics-trains"].value == true then data.raw.locomotive["locomotive"].resistances = rolling_stock_resistances() - if mods["space-age"] then + if feature_flags["space_travel"] then table.insert(data.raw.locomotive.locomotive.surface_conditions, { property = "pressure", min = 10 }) end diff --git a/bobmining/prototypes/steam-drills.lua b/bobmining/prototypes/steam-drills.lua index fa3cd11f2..b2e128114 100644 --- a/bobmining/prototypes/steam-drills.lua +++ b/bobmining/prototypes/steam-drills.lua @@ -92,7 +92,7 @@ if settings.startup["bobmods-mining-steamminingdrills"].value == true then end end - if mods["space-age"] then + if feature_flags["space_travel"] then data.raw["mining-drill"]["bob-steam-mining-drill"].surface_conditions = {} end end diff --git a/bobplates/prototypes/entity/entities.lua b/bobplates/prototypes/entity/entities.lua index 9b50d28f7..2dbdd7ad5 100644 --- a/bobplates/prototypes/entity/entities.lua +++ b/bobplates/prototypes/entity/entities.lua @@ -1239,26 +1239,30 @@ data:extend({ }, }) -if mods["space-age"] then +if feature_flags["space_travel"] then - local no_space = { - { property = "pressure", min = 10 }, - } + local function no_space() + return { { property = "pressure", min = 10 } } + end - data.raw["assembling-machine"]["bob-stone-chemical-furnace"].surface_conditions = no_space - data.raw["assembling-machine"]["bob-stone-mixing-furnace"].surface_conditions = no_space - data.raw["assembling-machine"]["bob-steel-chemical-furnace"].surface_conditions = no_space - data.raw["assembling-machine"]["bob-steel-mixing-furnace"].surface_conditions = no_space + data.raw["assembling-machine"]["bob-stone-chemical-furnace"].surface_conditions = no_space() + data.raw["assembling-machine"]["bob-stone-mixing-furnace"].surface_conditions = no_space() + data.raw["assembling-machine"]["bob-steel-chemical-furnace"].surface_conditions = no_space() + data.raw["assembling-machine"]["bob-steel-mixing-furnace"].surface_conditions = no_space() - if feature_flags["freezing"] then - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen + if mods["space-age"] then + local function pipefrozenpatch() + return util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen) + end + local function pcfrozenpatch() + return util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) + end data.raw["assembling-machine"]["bob-electrolyser"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch() + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch() + data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch() data.raw["assembling-machine"]["bob-electric-chemical-furnace"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electric-chemical-furnace"].graphics_set.frozen_patch = { @@ -1280,8 +1284,8 @@ if mods["space-age"] then }, }, } - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch() + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() data.raw["assembling-machine"]["bob-electric-mixing-furnace"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electric-mixing-furnace"].graphics_set.frozen_patch = { @@ -1294,10 +1298,10 @@ if mods["space-age"] then data.raw["storage-tank"]["bob-small-inline-storage-tank"].heating_energy = "25kW" data.raw["storage-tank"]["bob-small-storage-tank"].heating_energy = "25kW" - data.raw["storage-tank"]["bob-small-inline-storage-tank"].fluid_box.pipe_picture_frozen = pipefrozenpatch - data.raw["storage-tank"]["bob-small-storage-tank"].fluid_box.pipe_covers_frozen = pcfrozenpatch + data.raw["storage-tank"]["bob-small-inline-storage-tank"].fluid_box.pipe_picture_frozen = pipefrozenpatch() + data.raw["storage-tank"]["bob-small-storage-tank"].fluid_box.pipe_covers_frozen = pcfrozenpatch() data.raw.furnace["bob-void-pump"].heating_energy = "10kW" - data.raw.furnace["bob-void-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + data.raw.furnace["bob-void-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() end end diff --git a/bobpower/prototypes/burner-generator.lua b/bobpower/prototypes/burner-generator.lua index 010f6f039..9aee9d67a 100644 --- a/bobpower/prototypes/burner-generator.lua +++ b/bobpower/prototypes/burner-generator.lua @@ -125,7 +125,7 @@ if settings.startup["bobmods-power-burnergenerator"].value == true then }, }) - if mods["space-age"] then + if feature_flags["space_travel"] then data.raw["burner-generator"]["bob-burner-generator"].surface_conditions = { { property = "pressure", min = 10 }, } diff --git a/bobpower/prototypes/burner-reactor.lua b/bobpower/prototypes/burner-reactor.lua index d64db9d46..ad713141d 100644 --- a/bobpower/prototypes/burner-reactor.lua +++ b/bobpower/prototypes/burner-reactor.lua @@ -508,13 +508,15 @@ if settings.startup["bobmods-power-heatsources"].value == true then bobmods.lib.tech.add_recipe_unlock("bob-burner-reactor-1", "bob-fluid-reactor-from-fluid-furnace") end - if mods["space-age"] then - local no_space = { - { property = "pressure", min = 10 }, - } - data.raw.reactor["bob-burner-reactor"].surface_conditions = no_space - data.raw.reactor["bob-burner-reactor-2"].surface_conditions = no_space - data.raw.reactor["bob-fluid-reactor"].surface_conditions = no_space - data.raw.reactor["bob-fluid-reactor-2"].surface_conditions = no_space + if feature_flags["space_travel"] then + local function no_space() + return { + { property = "pressure", min = 10 }, + } + end + data.raw.reactor["bob-burner-reactor"].surface_conditions = no_space() + data.raw.reactor["bob-burner-reactor-2"].surface_conditions = no_space() + data.raw.reactor["bob-fluid-reactor"].surface_conditions = no_space() + data.raw.reactor["bob-fluid-reactor-2"].surface_conditions = no_space() end end diff --git a/bobpower/prototypes/entity/fluid-generator.lua b/bobpower/prototypes/entity/fluid-generator.lua index d6b731a8b..191e9c9fd 100644 --- a/bobpower/prototypes/entity/fluid-generator.lua +++ b/bobpower/prototypes/entity/fluid-generator.lua @@ -370,15 +370,15 @@ if settings.startup["bobmods-power-fluidgenerator"].value == true then }) end - if mods["space-age"] then - local no_space = { - { property = "pressure", min = 10 }, - } - data.raw.generator["bob-fluid-generator"].surface_conditions = no_space - data.raw.generator["bob-fluid-generator-2"].surface_conditions = no_space - data.raw.generator["bob-fluid-generator-3"].surface_conditions = no_space + if feature_flags["space_travel"] then + local function no_space() + return { { property = "pressure", min = 10 } } + end + data.raw.generator["bob-fluid-generator"].surface_conditions = no_space() + data.raw.generator["bob-fluid-generator-2"].surface_conditions = no_space() + data.raw.generator["bob-fluid-generator-3"].surface_conditions = no_space() if data.raw.generator["bob-hydrazine-generator"] then - data.raw.generator["bob-hydrazine-generator"].surface_conditions = no_space + data.raw.generator["bob-hydrazine-generator"].surface_conditions = no_space() end end end diff --git a/bobtech/prototypes/entity/entity.lua b/bobtech/prototypes/entity/entity.lua index ab2de456a..11c8fcb3c 100644 --- a/bobtech/prototypes/entity/entity.lua +++ b/bobtech/prototypes/entity/entity.lua @@ -306,12 +306,12 @@ if settings.startup["bobmods-burnerphase"].value == true then DiscoScience.prepareLab(data.raw["lab"]["bob-burner-lab"]) end - local no_space = { - { property = "pressure", min = 10 }, - } + local function no_space() + return { { property = "pressure", min = 10 } } + end - if mods["space-age"] then - data.raw.lab["bob-burner-lab"].surface_conditions = no_space + if feature_flags["space_travel"] then + data.raw.lab["bob-burner-lab"].surface_conditions = no_space() end if not data.raw["burner-generator"]["bob-burner-generator"] then @@ -406,8 +406,8 @@ if settings.startup["bobmods-burnerphase"].value == true then }, }) - if mods["space-age"] then - data.raw["burner-generator"]["bob-burner-generator"].surface_conditions = no_space + if feature_flags["space_travel"] then + data.raw["burner-generator"]["bob-burner-generator"].surface_conditions = no_space() end end diff --git a/bobwarfare/prototypes/entity/drone.lua b/bobwarfare/prototypes/entity/drone.lua index cdf7f0318..9f42ad7a8 100644 --- a/bobwarfare/prototypes/entity/drone.lua +++ b/bobwarfare/prototypes/entity/drone.lua @@ -459,7 +459,7 @@ data:extend({ }, }) -if mods["space-age"] then +if feature_flags["space_travel"] then data.raw.unit["bob-robot-gun-drone"].surface_conditions = { { property = "gravity", min = 1 }, } diff --git a/bobwarfare/prototypes/entity/tank.lua b/bobwarfare/prototypes/entity/tank.lua index 6c677e2ca..97d266031 100644 --- a/bobwarfare/prototypes/entity/tank.lua +++ b/bobwarfare/prototypes/entity/tank.lua @@ -616,7 +616,7 @@ data:extend({ }, }) -if mods["space-age"] then +if feature_flags["space_travel"] then data.raw.car.car.surface_conditions = { { property = "gravity", min = 1 }, { property = "pressure", min = 10 }, diff --git a/bobwarfare/prototypes/spidertron-updates.lua b/bobwarfare/prototypes/spidertron-updates.lua index ecbdeeb23..a6ed04e5c 100644 --- a/bobwarfare/prototypes/spidertron-updates.lua +++ b/bobwarfare/prototypes/spidertron-updates.lua @@ -198,7 +198,7 @@ else --"none" add_heavy_spidertron_power_supply() end -if mods["space-age"] then +if feature_flags["space_travel"] then data.raw["spider-vehicle"]["bob-antron"].surface_conditions = { { property = "gravity", min = 1 }, } @@ -211,22 +211,24 @@ if mods["space-age"] then data.raw["spider-vehicle"]["bob-heavy-spidertron"].surface_conditions = { { property = "gravity", min = 1 }, } - local burner_condition = { property = "pressure", min = 10 } + local function burner_condition() + return { property = "pressure", min = 10 } + end if settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "all" then - table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-heavy-spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-heavy-spidertron"].surface_conditions, burner_condition()) elseif settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "nothighest" then - table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["spidertron"].surface_conditions, burner_condition()) elseif settings.startup["bobmods-warfare-spidertron-needsfuel"].value == "default" then - table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition) - table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition) + table.insert(data.raw["spider-vehicle"]["bob-antron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-tankotron"].surface_conditions, burner_condition()) + table.insert(data.raw["spider-vehicle"]["bob-logistic-spidertron"].surface_conditions, burner_condition()) end end From 57b8a30fb2e3f92dbcb1ab6c94221b7e074f774e Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Sun, 29 Mar 2026 14:24:22 +1300 Subject: [PATCH 18/41] Entities in space --- bobgreenhouse/prototypes/entities.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bobgreenhouse/prototypes/entities.lua b/bobgreenhouse/prototypes/entities.lua index a6435c35a..8cda8b508 100644 --- a/bobgreenhouse/prototypes/entities.lua +++ b/bobgreenhouse/prototypes/entities.lua @@ -160,8 +160,8 @@ if feature_flags["space_travel"] then scale = 0.5, shift = { 0, 0.09375 }, } - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen + local pipefrozenpatch = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen) + local pcfrozenpatch = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch data.raw["assembling-machine"]["bob-greenhouse"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch end From 334f573220f76ecc02547ddebe72d667ba2beeaa Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 18:33:05 -0700 Subject: [PATCH 19/41] Update entities.lua --- bobgreenhouse/prototypes/entities.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bobgreenhouse/prototypes/entities.lua b/bobgreenhouse/prototypes/entities.lua index 8cda8b508..81c57e26f 100644 --- a/bobgreenhouse/prototypes/entities.lua +++ b/bobgreenhouse/prototypes/entities.lua @@ -151,8 +151,10 @@ if feature_flags["space_travel"] then data.raw["assembling-machine"]["bob-greenhouse"].surface_conditions = { { property = "gravity", min = 1 }, } +end +if feature_flags["freezing"] then + data.raw["assembling-machine"]["bob-greenhouse"].heating_energy = "250kW" if mods["space-age"] then - data.raw["assembling-machine"]["bob-greenhouse"].heating_energy = "250kW" data.raw["assembling-machine"]["bob-greenhouse"].graphics_set.frozen_patch = { filename = "__space-age__/graphics/entity/frozen/lab/lab.png", width = 194, From 1674b183232850000c3f01085cfe9cd2fb865486 Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Sun, 29 Mar 2026 15:15:48 +1300 Subject: [PATCH 20/41] Updating mod version number and changelog --- bobassembly/changelog.txt | 2 ++ bobgreenhouse/changelog.txt | 1 + boblogistics/changelog.txt | 1 + bobmining/changelog.txt | 5 +++++ bobmining/info.json | 2 +- bobplates/changelog.txt | 1 + bobpower/changelog.txt | 1 + bobtech/changelog.txt | 2 ++ bobwarfare/changelog.txt | 2 ++ 9 files changed, 16 insertions(+), 1 deletion(-) diff --git a/bobassembly/changelog.txt b/bobassembly/changelog.txt index 3664d8e14..69e1ae739 100644 --- a/bobassembly/changelog.txt +++ b/bobassembly/changelog.txt @@ -4,6 +4,8 @@ Date: ??? Bugfixes: - Fixed Burner and Steam Assembling machines not being able to craft some recipes #528 - Fixed Automation tech not ignoring tech cost multiplier #534 + Changes: + - Disallowed certain entities in space #551 --------------------------------------------------------------------------------------------------- Version: 2.0.5 Date: 18. 01. 2026 diff --git a/bobgreenhouse/changelog.txt b/bobgreenhouse/changelog.txt index b4ffd8422..adf86ffda 100644 --- a/bobgreenhouse/changelog.txt +++ b/bobgreenhouse/changelog.txt @@ -3,6 +3,7 @@ Version: 2.0.4 Date: ??? Changes: - Changed Greehouse tech to ignore tech cost multiplier #534 + - Disallowed certain entities in space #551 --------------------------------------------------------------------------------------------------- Version: 2.0.3 Date: 15. 01. 2026 diff --git a/boblogistics/changelog.txt b/boblogistics/changelog.txt index 008709690..0f10d785d 100644 --- a/boblogistics/changelog.txt +++ b/boblogistics/changelog.txt @@ -3,6 +3,7 @@ Version: 2.0.7 Date: ??? Changes: - Reduced charge approach distance for robochests. Robots waiting to charge will now wait closer to the robochest. #533 + - Disallowed certain entities in space #551 - Increasd bot health and explosion resistance #563 Bugfixes: - Allowed Basic loaders (AAI Loaders mod) to be crafted in Assembling maching 1 / hand crafted when using expensive mode. #535 diff --git a/bobmining/changelog.txt b/bobmining/changelog.txt index f4d1decce..ac81bad79 100644 --- a/bobmining/changelog.txt +++ b/bobmining/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.5 +Date: ??? + Changes: + - Disallowed certain entities in space #551 +--------------------------------------------------------------------------------------------------- Version: 2.0.4 Date: 15. 01. 2026 Changes: diff --git a/bobmining/info.json b/bobmining/info.json index d16521bb0..091211886 100644 --- a/bobmining/info.json +++ b/bobmining/info.json @@ -1,6 +1,6 @@ { "name": "bobmining", - "version": "2.0.4", + "version": "2.0.5", "factorio_version": "2.0", "title": "Bob's Mining mod", "author": "Bobingabout", diff --git a/bobplates/changelog.txt b/bobplates/changelog.txt index 65d8c786a..a021d22f4 100644 --- a/bobplates/changelog.txt +++ b/bobplates/changelog.txt @@ -4,6 +4,7 @@ Date: ??? Bugfixes: - Fixed some fluids / recipes not combining in Factoriopedia #565 Changes: + - Disallowed certain entities in space #551 - Updated recipes for Rockets and T3 modules to require Advanced processing units instead of Advanced circuits #559 --------------------------------------------------------------------------------------------------- Version: 2.0.5 diff --git a/bobpower/changelog.txt b/bobpower/changelog.txt index 60d2d309f..f586d9618 100644 --- a/bobpower/changelog.txt +++ b/bobpower/changelog.txt @@ -3,6 +3,7 @@ Version: 2.0.5 Date: ??? Changes: - Reduced the time that heat sources take to get up to temperature #529 + - Disallowed certain entities in space #551 --------------------------------------------------------------------------------------------------- Version: 2.0.4 Date: 18. 01. 2026 diff --git a/bobtech/changelog.txt b/bobtech/changelog.txt index f36cbe950..c27374a50 100644 --- a/bobtech/changelog.txt +++ b/bobtech/changelog.txt @@ -3,6 +3,8 @@ Version: 2.0.6 Date: ??? Bugfixes: - Made it easier to upgrade labs #541 + Changes: + - Disallowed certain entities in space #551 --------------------------------------------------------------------------------------------------- Version: 2.0.5 Date: 18. 01. 2026 diff --git a/bobwarfare/changelog.txt b/bobwarfare/changelog.txt index 0fa82359f..c08fdc77b 100644 --- a/bobwarfare/changelog.txt +++ b/bobwarfare/changelog.txt @@ -4,6 +4,8 @@ Date: ??? Bugfixes: - Fixed Scatter cannnon shells missing rock, trees, etc. #561 - Fixed Biters / Spitters deliberately targeting walls and gates. #562 + Changes: + - Disallowed certain entities in space #551 --------------------------------------------------------------------------------------------------- Version: 2.0.5 Date: 15. 01. 2026 From 11bba448d7c2e9fddd14bc61bd51ffff05198320 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 19:36:09 -0700 Subject: [PATCH 21/41] Update roboport.lua --- boblogistics/prototypes/entity/roboport.lua | 50 ++++++++++++--------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/boblogistics/prototypes/entity/roboport.lua b/boblogistics/prototypes/entity/roboport.lua index 1ed34f2c6..20f660d4a 100644 --- a/boblogistics/prototypes/entity/roboport.lua +++ b/boblogistics/prototypes/entity/roboport.lua @@ -430,11 +430,13 @@ if settings.startup["bobmods-logistics-disableroboports"].value == false then data.raw.roboport["bob-roboport-2"].surface_conditions = no_space() data.raw.roboport["bob-roboport-3"].surface_conditions = no_space() data.raw.roboport["bob-roboport-4"].surface_conditions = no_space() + end - if feature_flags["freezing"] then - data.raw.roboport["bob-roboport-2"].heating_energy = "300kW" - data.raw.roboport["bob-roboport-3"].heating_energy = "300kW" - data.raw.roboport["bob-roboport-4"].heating_energy = "300kW" + if feature_flags["freezing"] then + data.raw.roboport["bob-roboport-2"].heating_energy = "300kW" + data.raw.roboport["bob-roboport-3"].heating_energy = "300kW" + data.raw.roboport["bob-roboport-4"].heating_energy = "300kW" + if mods["space-age"] then local function frozenpatch() local result = util.table.deepcopy(data.raw.roboport.roboport.frozen_patch) result.shift = { 0.0625, 0.2421875 } @@ -2395,26 +2397,30 @@ if feature_flags["space_travel"] then data.raw.roboport["bob-robo-charge-port-large-4"].surface_conditions = no_space() data.raw.roboport["bob-logistic-zone-interface"].surface_conditions = no_space() + +end + +if feature_flags["freezing"] then - if mods["space-age"] then + data.raw.roboport["bob-logistic-zone-expander"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-2"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-3"].heating_energy = "20kW" + data.raw.roboport["bob-logistic-zone-expander-4"].heating_energy = "20kW" + data.raw.roboport["bob-robochest"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-2"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-3"].heating_energy = "200kW" + data.raw.roboport["bob-robochest-4"].heating_energy = "200kW" + data.raw.roboport["bob-robo-charge-port"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-2"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-3"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-4"].heating_energy = "80kW" + data.raw.roboport["bob-robo-charge-port-large"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-2"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-3"].heating_energy = "180kW" + data.raw.roboport["bob-robo-charge-port-large-4"].heating_energy = "180kW" + data.raw.roboport["bob-logistic-zone-interface"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-2"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-3"].heating_energy = "20kW" - data.raw.roboport["bob-logistic-zone-expander-4"].heating_energy = "20kW" - data.raw.roboport["bob-robochest"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-2"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-3"].heating_energy = "200kW" - data.raw.roboport["bob-robochest-4"].heating_energy = "200kW" - data.raw.roboport["bob-robo-charge-port"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-2"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-3"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-4"].heating_energy = "80kW" - data.raw.roboport["bob-robo-charge-port-large"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-2"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-3"].heating_energy = "180kW" - data.raw.roboport["bob-robo-charge-port-large-4"].heating_energy = "180kW" - data.raw.roboport["bob-logistic-zone-interface"].heating_energy = "20kW" + if mods["space-age"] then local function chestfrozenpatch() return { From 9777d4a9e3578aa1dca4af75375e55463fb07c65 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 19:50:23 -0700 Subject: [PATCH 22/41] Update entities.lua --- bobplates/prototypes/entity/entities.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bobplates/prototypes/entity/entities.lua b/bobplates/prototypes/entity/entities.lua index 2dbdd7ad5..1bee63622 100644 --- a/bobplates/prototypes/entity/entities.lua +++ b/bobplates/prototypes/entity/entities.lua @@ -1249,6 +1249,15 @@ if feature_flags["space_travel"] then data.raw["assembling-machine"]["bob-stone-mixing-furnace"].surface_conditions = no_space() data.raw["assembling-machine"]["bob-steel-chemical-furnace"].surface_conditions = no_space() data.raw["assembling-machine"]["bob-steel-mixing-furnace"].surface_conditions = no_space() +end + +if feature_flags["freezing"] then + data.raw["assembling-machine"]["bob-electrolyser"].heating_energy = "100kW" + data.raw["assembling-machine"]["bob-electric-chemical-furnace"].heating_energy = "100kW" + data.raw["assembling-machine"]["bob-electric-mixing-furnace"].heating_energy = "100kW" + data.raw["storage-tank"]["bob-small-inline-storage-tank"].heating_energy = "25kW" + data.raw["storage-tank"]["bob-small-storage-tank"].heating_energy = "25kW" + data.raw.furnace["bob-void-pump"].heating_energy = "10kW" if mods["space-age"] then local function pipefrozenpatch() @@ -1258,13 +1267,11 @@ if feature_flags["space_travel"] then return util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) end - data.raw["assembling-machine"]["bob-electrolyser"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch() data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch() data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch() - data.raw["assembling-machine"]["bob-electric-chemical-furnace"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electric-chemical-furnace"].graphics_set.frozen_patch = { layers = { { @@ -1287,7 +1294,6 @@ if feature_flags["space_travel"] then data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch() data.raw["assembling-machine"]["bob-electric-chemical-furnace"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() - data.raw["assembling-machine"]["bob-electric-mixing-furnace"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electric-mixing-furnace"].graphics_set.frozen_patch = { filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", width = 239, @@ -1296,12 +1302,9 @@ if feature_flags["space_travel"] then shift = { 0.0234375, 0.1796875 }, } - data.raw["storage-tank"]["bob-small-inline-storage-tank"].heating_energy = "25kW" - data.raw["storage-tank"]["bob-small-storage-tank"].heating_energy = "25kW" data.raw["storage-tank"]["bob-small-inline-storage-tank"].fluid_box.pipe_picture_frozen = pipefrozenpatch() data.raw["storage-tank"]["bob-small-storage-tank"].fluid_box.pipe_covers_frozen = pcfrozenpatch() - data.raw.furnace["bob-void-pump"].heating_energy = "10kW" data.raw.furnace["bob-void-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch() end end From ba39efda795f6dfee9604aed9243a1ce9a5b6264 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 21:48:27 -0700 Subject: [PATCH 23/41] Update assembly.lua --- bobassembly/prototypes/assembly.lua | 103 ++++++++++++++++------------ 1 file changed, 58 insertions(+), 45 deletions(-) diff --git a/bobassembly/prototypes/assembly.lua b/bobassembly/prototypes/assembly.lua index 4dbdff7f0..aa1cde6ee 100644 --- a/bobassembly/prototypes/assembly.lua +++ b/bobassembly/prototypes/assembly.lua @@ -13,8 +13,12 @@ data:extend({ -- tint = {r = 0.7, g = 0.1, b = 0.7}, -- tint = {r = 0.1, g = 0.7, b = 0.1}, + +data.raw.item["assembling-machine-1"].weight = 20000 + data.raw.item["assembling-machine-2"].icon = "__bobassembly__/graphics/icons/assembling-machine-2.png" data.raw.item["assembling-machine-2"].icon_size = 32 +data.raw.item["assembling-machine-2"].weight = 20000 data.raw["assembling-machine"]["assembling-machine-2"].icon = "__bobassembly__/graphics/icons/assembling-machine-2.png" data.raw["assembling-machine"]["assembling-machine-2"].icon_size = 32 table.insert(data.raw["assembling-machine"]["assembling-machine-2"].graphics_set.animation.layers, { @@ -30,6 +34,7 @@ table.insert(data.raw["assembling-machine"]["assembling-machine-2"].graphics_set data.raw.item["assembling-machine-3"].icon = "__bobassembly__/graphics/icons/assembling-machine-3.png" data.raw.item["assembling-machine-3"].icon_size = 32 +data.raw.item["assembling-machine-3"].weight = 20000 data.raw["assembling-machine"]["assembling-machine-3"].icon = "__bobassembly__/graphics/icons/assembling-machine-3.png" data.raw["assembling-machine"]["assembling-machine-3"].icon_size = 32 table.insert(data.raw["assembling-machine"]["assembling-machine-3"].graphics_set.animation.layers, { @@ -65,7 +70,7 @@ data:extend({ filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 40000, + weight = 20000, }, { @@ -246,7 +251,7 @@ data:extend({ filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 40000, + weight = 20000, }, { @@ -435,7 +440,7 @@ data:extend({ filename = "__base__/sound/item/mechanical-inventory-pickup.ogg", volume = 0.8, }, - weight = 40000, + weight = 20000, }, { @@ -603,50 +608,58 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-assembling-machine-4"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-assembling-machine-5"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-assembling-machine-6"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-assembling-machine-4"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-assembling-machine-5"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-assembling-machine-6"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-assembling-machine-4"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-2-frozen.png", - width = 214, - height = 218, - priority = "high", - scale = 0.5, - shift = { 0, 0.125 }, - } - data.raw["assembling-machine"]["bob-assembling-machine-5"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", - width = 214, - height = 237, - priority = "high", - scale = 0.5, - shift = { 0, -0.0234375 }, - } - data.raw["assembling-machine"]["bob-assembling-machine-6"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", - width = 214, - height = 237, - priority = "high", - scale = 0.5, - shift = { 0, -0.0234375 }, - } + if mods["space-age"] then + data.raw["assembling-machine"]["bob-assembling-machine-4"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-assembling-machine-5"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-assembling-machine-6"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-assembling-machine-4"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-2-frozen.png", + width = 214, + height = 218, + priority = "high", + scale = 0.5, + shift = { 0, 0.125 }, + } + data.raw["assembling-machine"]["bob-assembling-machine-5"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", + width = 214, + height = 237, + priority = "high", + scale = 0.5, + shift = { 0, -0.0234375 }, + } + data.raw["assembling-machine"]["bob-assembling-machine-6"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", + width = 214, + height = 237, + priority = "high", + scale = 0.5, + shift = { 0, -0.0234375 }, + } - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[2].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[2].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[2].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch + local function frozenpatch() + local result = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen) + return result + end + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) + return result + end + data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[2].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-assembling-machine-4"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[2].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-assembling-machine-5"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[2].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-assembling-machine-6"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + end end From 3db2b03c81c8e24acb312fafc2ee8a112f6279b8 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 21:54:03 -0700 Subject: [PATCH 24/41] Update assembly-electronics.lua --- .../prototypes/assembly-electronics.lua | 78 ++++++++++--------- 1 file changed, 42 insertions(+), 36 deletions(-) diff --git a/bobassembly/prototypes/assembly-electronics.lua b/bobassembly/prototypes/assembly-electronics.lua index 516fcc2b5..f6b2b24d9 100644 --- a/bobassembly/prototypes/assembly-electronics.lua +++ b/bobassembly/prototypes/assembly-electronics.lua @@ -579,46 +579,52 @@ if settings.startup["bobmods-assembly-electronicmachines"].value == true then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-electronics-machine-1"].heating_energy = "50kW" data.raw["assembling-machine"]["bob-electronics-machine-2"].heating_energy = "50kW" data.raw["assembling-machine"]["bob-electronics-machine-3"].heating_energy = "50kW" - data.raw["assembling-machine"]["bob-electronics-machine-1"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-electronics-machine-2"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-electronics-machine-3"].graphics_set.reset_animation_when_frozen = true - data.raw["assembling-machine"]["bob-electronics-machine-1"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-1-frozen.png", - width = 214, - height = 226, - priority = "high", - scale = 1 / 3, - shift = { 0, 0.0625 }, - } - data.raw["assembling-machine"]["bob-electronics-machine-2"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-2-frozen.png", - width = 214, - height = 218, - priority = "high", - scale = 1 / 3, - shift = { 0, 0.125 }, - } - data.raw["assembling-machine"]["bob-electronics-machine-3"].graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", - width = 214, - height = 237, - priority = "high", - scale = 1 / 3, - shift = { 0, -0.0234375 }, - } + if mods["space-age"] then + data.raw["assembling-machine"]["bob-electronics-machine-1"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-electronics-machine-2"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-electronics-machine-3"].graphics_set.reset_animation_when_frozen = true + data.raw["assembling-machine"]["bob-electronics-machine-1"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-1-frozen.png", + width = 214, + height = 226, + priority = "high", + scale = 1 / 3, + shift = { 0, 0.0625 }, + } + data.raw["assembling-machine"]["bob-electronics-machine-2"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-2-frozen.png", + width = 214, + height = 218, + priority = "high", + scale = 1 / 3, + shift = { 0, 0.125 }, + } + data.raw["assembling-machine"]["bob-electronics-machine-3"].graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/assembling-machine/assembling-machine-3-frozen.png", + width = 214, + height = 237, + priority = "high", + scale = 1 / 3, + shift = { 0, -0.0234375 }, + } - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-electronics-machine-1"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-electronics-machine-1"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electronics-machine-2"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-electronics-machine-2"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electronics-machine-3"].fluid_boxes[1].pipe_picture_frozen = pipefrozenpatch - data.raw["assembling-machine"]["bob-electronics-machine-3"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch + local function frozenpatch() + return util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen) + end + local function frozenpatchcovers() + return util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) + end + data.raw["assembling-machine"]["bob-electronics-machine-1"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-electronics-machine-1"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electronics-machine-2"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-electronics-machine-2"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electronics-machine-3"].fluid_boxes[1].pipe_picture_frozen = frozenpatch() + data.raw["assembling-machine"]["bob-electronics-machine-3"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + end end if mods["space-age"] then From 58c0ba25182b58e8a0f8520c919ed7cab3b44e92 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 21:55:05 -0700 Subject: [PATCH 25/41] Update chemical-mixing-furnace.lua --- .../prototypes/chemical-mixing-furnace.lua | 102 ++++++++++-------- 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/bobassembly/prototypes/chemical-mixing-furnace.lua b/bobassembly/prototypes/chemical-mixing-furnace.lua index e1e1e5126..60b644083 100644 --- a/bobassembly/prototypes/chemical-mixing-furnace.lua +++ b/bobassembly/prototypes/chemical-mixing-furnace.lua @@ -449,57 +449,65 @@ then elseif data.raw.technology["bob-alloy-processing-2"] then bobmods.lib.tech.add_prerequisite("bob-multi-purpose-furnace-1", "bob-alloy-processing-2") end - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].graphics_set.frozen_patch = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", - width = 239, - height = 219, - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, - }, - { - filename = "__bobassembly__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", - width = 239, - height = 219, - priority = "high", - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, - }, - }, - } - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].graphics_set.frozen_patch = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", - width = 239, - height = 219, - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, + if mods["space-age"] then + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].graphics_set.frozen_patch = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", + width = 239, + height = 219, + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, + { + filename = "__bobassembly__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", + width = 239, + height = 219, + priority = "high", + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, }, - { - filename = "__bobassembly__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", - width = 239, - height = 219, - priority = "high", - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, + } + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].graphics_set.frozen_patch = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", + width = 239, + height = 219, + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, + { + filename = "__bobassembly__/graphics/entity/electric-furnace/electric-furnace-chemical-tower-frozen.png", + width = 239, + height = 219, + priority = "high", + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + }, }, - }, - } + } - local pipefrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen - local pcfrozenpatch = data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].fluid_boxes[1].pipe_picture_frozen = - pipefrozenpatch - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].fluid_boxes[1].pipe_covers_frozen = - pcfrozenpatch - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].fluid_boxes[1].pipe_picture_frozen = - pipefrozenpatch - data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].fluid_boxes[1].pipe_covers_frozen = - pcfrozenpatch + local function frozenpatch() + local result = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_picture_frozen) + return result + end + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw["assembling-machine"]["assembling-machine-2"].fluid_boxes[1].pipe_covers_frozen) + return result + end + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].fluid_boxes[1].pipe_picture_frozen = + frozenpatch() + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace"].fluid_boxes[1].pipe_covers_frozen = + frozenpatchcovers() + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].fluid_boxes[1].pipe_picture_frozen = + frozenpatch() + data.raw["assembling-machine"]["bob-electric-chemical-mixing-furnace-2"].fluid_boxes[1].pipe_covers_frozen = + frozenpatchcovers() + end end end From 2c862fd49946571d297eeaf5203c02d263838e3c Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 21:59:34 -0700 Subject: [PATCH 26/41] Update chemical-plant.lua --- bobassembly/prototypes/chemical-plant.lua | 52 +++++++++++++++-------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/bobassembly/prototypes/chemical-plant.lua b/bobassembly/prototypes/chemical-plant.lua index 5f8fedb08..72e334c7e 100644 --- a/bobassembly/prototypes/chemical-plant.lua +++ b/bobassembly/prototypes/chemical-plant.lua @@ -1,4 +1,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then + + data.raw.item["chemical-plant"].weight = 40000 + data:extend({ { type = "item-subgroup", @@ -139,6 +142,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 40000, }, { type = "item", @@ -161,6 +165,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 40000, }, { type = "item", @@ -183,6 +188,7 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 40000, }, { @@ -451,26 +457,36 @@ if settings.startup["bobmods-assembly-chemicalplants"].value == true then }, }) - if feature_flags["freezing"] and mods["space-age"] then - local frozenpatch = data.raw["assembling-machine"]["chemical-plant"].graphics_set.frozen_patch + if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-chemical-plant-2"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-chemical-plant-3"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-chemical-plant-4"].heating_energy = "100kW" - data.raw["assembling-machine"]["bob-chemical-plant-2"].graphics_set.frozen_patch = frozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-3"].graphics_set.frozen_patch = frozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-4"].graphics_set.frozen_patch = frozenpatch - local pcfrozenpatch = data.raw["assembling-machine"]["chemical-plant"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["assembling-machine"]["chemical-plant"].graphics_set.frozen_patch) + return result + end + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw["assembling-machine"]["chemical-plant"].fluid_boxes[1].pipe_covers_frozen) + return result + end + + data.raw["assembling-machine"]["bob-chemical-plant-2"].graphics_set.frozen_patch = frozenpatch() + data.raw["assembling-machine"]["bob-chemical-plant-3"].graphics_set.frozen_patch = frozenpatch() + data.raw["assembling-machine"]["bob-chemical-plant-4"].graphics_set.frozen_patch = frozenpatch() + + data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-2"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-3"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-chemical-plant-4"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + end end end From 3466e8f1aba98bc7861c6976d8d83d5f8ca27c76 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:01:37 -0700 Subject: [PATCH 27/41] Update distillery.lua --- bobassembly/prototypes/distillery.lua | 36 ++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/bobassembly/prototypes/distillery.lua b/bobassembly/prototypes/distillery.lua index 13867dbc8..9d3f42796 100644 --- a/bobassembly/prototypes/distillery.lua +++ b/bobassembly/prototypes/distillery.lua @@ -377,27 +377,29 @@ then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw.furnace["bob-distillery-2"].heating_energy = "50kW" data.raw.furnace["bob-distillery-3"].heating_energy = "50kW" data.raw.furnace["bob-distillery-4"].heating_energy = "50kW" data.raw.furnace["bob-distillery-5"].heating_energy = "50kW" - data.raw.furnace["bob-distillery-2"].graphics_set.frozen_patch = - bobmods.plates.frozenpatch1({ r = 0.45, g = 0.1, b = 0.05 }) - data.raw.furnace["bob-distillery-2"].graphics_set_flipped.frozen_patch = - bobmods.plates.frozenpatch2({ r = 0.45, g = 0.1, b = 0.05 }) - data.raw.furnace["bob-distillery-3"].graphics_set.frozen_patch = - bobmods.plates.frozenpatch1({ r = 0.05, g = 0.3, b = 0.45 }) - data.raw.furnace["bob-distillery-3"].graphics_set_flipped.frozen_patch = - bobmods.plates.frozenpatch2({ r = 0.05, g = 0.3, b = 0.45 }) - data.raw.furnace["bob-distillery-4"].graphics_set.frozen_patch = - bobmods.plates.frozenpatch1({ r = 0.45, g = 0.05, b = 0.45 }) - data.raw.furnace["bob-distillery-4"].graphics_set_flipped.frozen_patch = - bobmods.plates.frozenpatch2({ r = 0.45, g = 0.05, b = 0.45 }) - data.raw.furnace["bob-distillery-5"].graphics_set.frozen_patch = - bobmods.plates.frozenpatch1({ r = 0.05, g = 0.45, b = 0.05 }) - data.raw.furnace["bob-distillery-5"].graphics_set_flipped.frozen_patch = - bobmods.plates.frozenpatch2({ r = 0.05, g = 0.45, b = 0.05 }) + if mods["space-age"] then + data.raw.furnace["bob-distillery-2"].graphics_set.frozen_patch = + bobmods.plates.frozenpatch1({ r = 0.45, g = 0.1, b = 0.05 }) + data.raw.furnace["bob-distillery-2"].graphics_set_flipped.frozen_patch = + bobmods.plates.frozenpatch2({ r = 0.45, g = 0.1, b = 0.05 }) + data.raw.furnace["bob-distillery-3"].graphics_set.frozen_patch = + bobmods.plates.frozenpatch1({ r = 0.05, g = 0.3, b = 0.45 }) + data.raw.furnace["bob-distillery-3"].graphics_set_flipped.frozen_patch = + bobmods.plates.frozenpatch2({ r = 0.05, g = 0.3, b = 0.45 }) + data.raw.furnace["bob-distillery-4"].graphics_set.frozen_patch = + bobmods.plates.frozenpatch1({ r = 0.45, g = 0.05, b = 0.45 }) + data.raw.furnace["bob-distillery-4"].graphics_set_flipped.frozen_patch = + bobmods.plates.frozenpatch2({ r = 0.45, g = 0.05, b = 0.45 }) + data.raw.furnace["bob-distillery-5"].graphics_set.frozen_patch = + bobmods.plates.frozenpatch1({ r = 0.05, g = 0.45, b = 0.05 }) + data.raw.furnace["bob-distillery-5"].graphics_set_flipped.frozen_patch = + bobmods.plates.frozenpatch2({ r = 0.05, g = 0.45, b = 0.05 }) + end end end From d4199c31e18840e584d548ef92594af73ac7c676 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:06:02 -0700 Subject: [PATCH 28/41] Update electric-furnace.lua --- bobassembly/prototypes/electric-furnace.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bobassembly/prototypes/electric-furnace.lua b/bobassembly/prototypes/electric-furnace.lua index f813ee9e8..964fed601 100644 --- a/bobassembly/prototypes/electric-furnace.lua +++ b/bobassembly/prototypes/electric-furnace.lua @@ -166,15 +166,17 @@ if settings.startup["bobmods-assembly-furnaces"].value == true and data.raw.furn prototype.icons_positioning[1].multi_row_initial_height_modifier = -0.3 end - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then prototype.heating_energy = input.heating_energy or "100kW" - prototype.graphics_set.frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", - width = 239, - height = 219, - scale = 0.5, - shift = { 0.0234375, 0.1796875 }, - } + if mods["space-age"] then + prototype.graphics_set.frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/electric-furnace/electric-furnace.png", + width = 239, + height = 219, + scale = 0.5, + shift = { 0.0234375, 0.1796875 }, + } + end end return prototype From ab78cdb5e2560a37dea83ef4ca95fe158f68bd9a Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:09:06 -0700 Subject: [PATCH 29/41] Update electrolyser.lua --- bobassembly/prototypes/electrolyser.lua | 45 +++++++++++++++---------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/bobassembly/prototypes/electrolyser.lua b/bobassembly/prototypes/electrolyser.lua index 4fc36bdc0..bffcd7ad9 100644 --- a/bobassembly/prototypes/electrolyser.lua +++ b/bobassembly/prototypes/electrolyser.lua @@ -125,6 +125,7 @@ then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 20000, }, { type = "item", @@ -147,6 +148,7 @@ then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 20000, }, { type = "item", @@ -169,6 +171,7 @@ then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 20000, }, { @@ -192,6 +195,7 @@ then filename = "__base__/sound/item/fluid-inventory-pickup.ogg", volume = 0.5, }, + weight = 20000, }, { @@ -558,28 +562,33 @@ then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-electrolyser-2"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electrolyser-3"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electrolyser-4"].heating_energy = "100kW" data.raw["assembling-machine"]["bob-electrolyser-5"].heating_energy = "100kW" - local pcfrozenpatch = data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen - data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[3].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[4].pipe_covers_frozen = pcfrozenpatch + if mods["space-age"] then + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw["assembling-machine"]["bob-electrolyser"].fluid_boxes[1].pipe_covers_frozen) + return result + end + data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[3].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-2"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-3"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-4"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-electrolyser-5"].fluid_boxes[4].pipe_covers_frozen = frozenpatchcovers() + end end end From 80ffc7abcc130ecd5263029f416b49799826f568 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:11:47 -0700 Subject: [PATCH 30/41] Update radar.lua --- bobenemies/prototypes/radar.lua | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/bobenemies/prototypes/radar.lua b/bobenemies/prototypes/radar.lua index e339f35d5..5ac21f872 100644 --- a/bobenemies/prototypes/radar.lua +++ b/bobenemies/prototypes/radar.lua @@ -191,15 +191,17 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw.radar["bob-artifact-radar"].heating_energy = "300kW" - data.raw.radar["bob-artifact-radar"].frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/radar/radar.png", - direction_count = 1, - width = 196, - height = 254, - scale = 0.5, - shift = { 0.03125, -0.5 }, - } - data.raw.radar["bob-artifact-radar"].reset_orientation_when_frozen = true + if mods["space-age"] then + data.raw.radar["bob-artifact-radar"].frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/radar/radar.png", + direction_count = 1, + width = 196, + height = 254, + scale = 0.5, + shift = { 0.03125, -0.5 }, + } + data.raw.radar["bob-artifact-radar"].reset_orientation_when_frozen = true + end end From 8f4f677ea31b70c6250342fb1fae32b2a7d4b5c9 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:15:58 -0700 Subject: [PATCH 31/41] Update belt.lua --- boblogistics/prototypes/entity/belt.lua | 68 ++++++++++++++----------- 1 file changed, 39 insertions(+), 29 deletions(-) diff --git a/boblogistics/prototypes/entity/belt.lua b/boblogistics/prototypes/entity/belt.lua index 96c753ad9..529e27b0a 100644 --- a/boblogistics/prototypes/entity/belt.lua +++ b/boblogistics/prototypes/entity/belt.lua @@ -269,17 +269,22 @@ if settings.startup["bobmods-logistics-beltoverhaul"].value == true then }) --Let basic transport belt act as a burner transport belt not subject to freezing. - -- if feature_flags["freezing"] and mods["space-age"] then - -- data.raw["transport-belt"]["bob-basic-transport-belt"].heating_energy = "10kW" - -- data.raw["underground-belt"]["bob-basic-underground-belt"].heating_energy = "25kW" - -- data.raw.splitter["bob-basic-splitter"].heating_energy = "40kW" - -- local beltfrozenpatch = data.raw["transport-belt"]["transport-belt"].belt_animation_set.frozen_patch - -- data.raw["transport-belt"]["bob-basic-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch - -- data.raw["underground-belt"]["bob-basic-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch - -- data.raw["underground-belt"]["bob-basic-underground-belt"].structure.frozen_patch_in = data.raw["underground-belt"]["underground-belt"].structure.frozen_patch_in - -- data.raw["underground-belt"]["bob-basic-underground-belt"].structure.frozen_patch_out = data.raw["underground-belt"]["underground-belt"].structure.frozen_patch_out - -- data.raw.splitter["bob-basic-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch - -- data.raw.splitter["bob-basic-splitter"].frozen_patch = data.raw.splitter.splitter.frozen_patch + -- if feature_flags["freezing"] then + -- data.raw["transport-belt"]["bob-basic-transport-belt"].heating_energy = "10kW" + -- data.raw["underground-belt"]["bob-basic-underground-belt"].heating_energy = "25kW" + -- data.raw.splitter["bob-basic-splitter"].heating_energy = "40kW" + -- if mods["space-age"] then + -- local function beltfrozenpatch() + -- local result = util.table.deepcopy(data.raw["transport-belt"]["transport-belt"].belt_animation_set.frozen_patch) + -- return result + -- end + -- data.raw["transport-belt"]["bob-basic-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch() + -- data.raw["underground-belt"]["bob-basic-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch() + -- data.raw["underground-belt"]["bob-basic-underground-belt"].structure.frozen_patch_in = util.table.deepcopy(data.raw["underground-belt"]["underground-belt"].structure.frozen_patch_in) + -- data.raw["underground-belt"]["bob-basic-underground-belt"].structure.frozen_patch_out = util.table.deepcopy(data.raw["underground-belt"]["underground-belt"].structure.frozen_patch_out) + -- data.raw.splitter["bob-basic-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch() + -- data.raw.splitter["bob-basic-splitter"].frozen_patch = util.table.deepcopy(data.raw.splitter.splitter.frozen_patch) + -- end -- end end @@ -752,30 +757,35 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw["transport-belt"]["bob-turbo-transport-belt"].heating_energy = "10kW" data.raw["underground-belt"]["bob-turbo-underground-belt"].heating_energy = "200kW" data.raw.splitter["bob-turbo-splitter"].heating_energy = "40kW" data.raw["transport-belt"]["bob-ultimate-transport-belt"].heating_energy = "10kW" data.raw["underground-belt"]["bob-ultimate-underground-belt"].heating_energy = "250kW" data.raw.splitter["bob-ultimate-splitter"].heating_energy = "40kW" - local beltfrozenpatch3 = data.raw["transport-belt"]["express-transport-belt"].belt_animation_set.frozen_patch - data.raw["transport-belt"]["bob-turbo-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw["underground-belt"]["bob-turbo-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw["underground-belt"]["bob-turbo-underground-belt"].structure.frozen_patch_in = - data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_in - data.raw["underground-belt"]["bob-turbo-underground-belt"].structure.frozen_patch_out = - data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_out - data.raw.splitter["bob-turbo-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw.splitter["bob-turbo-splitter"].frozen_patch = data.raw.splitter["express-splitter"].frozen_patch - data.raw["transport-belt"]["bob-ultimate-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw["underground-belt"]["bob-ultimate-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw["underground-belt"]["bob-ultimate-underground-belt"].structure.frozen_patch_in = - data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_in - data.raw["underground-belt"]["bob-ultimate-underground-belt"].structure.frozen_patch_out = - data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_out - data.raw.splitter["bob-ultimate-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch3 - data.raw.splitter["bob-ultimate-splitter"].frozen_patch = data.raw.splitter["express-splitter"].frozen_patch + if mods["space-age"] then + local function beltfrozenpatch3() + local result = util.table.deepcopy(data.raw["transport-belt"]["express-transport-belt"].belt_animation_set.frozen_patch) + return result + end + data.raw["transport-belt"]["bob-turbo-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw["underground-belt"]["bob-turbo-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw["underground-belt"]["bob-turbo-underground-belt"].structure.frozen_patch_in = + util.table.deepcopy(data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_in) + data.raw["underground-belt"]["bob-turbo-underground-belt"].structure.frozen_patch_out = + util.table.deepcopy(data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_out) + data.raw.splitter["bob-turbo-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw.splitter["bob-turbo-splitter"].frozen_patch = util.table.deepcopy(data.raw.splitter["express-splitter"].frozen_patch) + data.raw["transport-belt"]["bob-ultimate-transport-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw["underground-belt"]["bob-ultimate-underground-belt"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw["underground-belt"]["bob-ultimate-underground-belt"].structure.frozen_patch_in = + util.table.deepcopy(data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_in) + data.raw["underground-belt"]["bob-ultimate-underground-belt"].structure.frozen_patch_out = + util.table.deepcopy(data.raw["underground-belt"]["express-underground-belt"].structure.frozen_patch_out) + data.raw.splitter["bob-ultimate-splitter"].belt_animation_set.frozen_patch = beltfrozenpatch3() + data.raw.splitter["bob-ultimate-splitter"].frozen_patch = util.table.deepcopy(data.raw.splitter["express-splitter"].frozen_patch) + end end if settings.startup["bobmods-logistics-beltoverhaulspeed"].value == true then From 3301659a1248ab70a5da85726c6c050bd94ab3ae Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:17:28 -0700 Subject: [PATCH 32/41] Update pipes.lua --- boblogistics/prototypes/entity/pipes.lua | 96 ++++++++++++++---------- 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/boblogistics/prototypes/entity/pipes.lua b/boblogistics/prototypes/entity/pipes.lua index 336ed53b7..9c500bf84 100644 --- a/boblogistics/prototypes/entity/pipes.lua +++ b/boblogistics/prototypes/entity/pipes.lua @@ -254,7 +254,7 @@ local function bob_pipepictures(pipe_type) ending_left_disabled_visualization = make_disabled_visualization(8), } - if feature_flags["freezing"] and mods["space-age"] then + if mods["space-age"] then pipepictures.corner_down_left_frozen = { filename = "__space-age__/graphics/entity/frozen/pipe/pipe-corner-down-left.png", width = 128, @@ -916,7 +916,7 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw.pipe["bob-copper-pipe"].heating_energy = "1kW" data.raw.pipe["bob-plastic-pipe"].heating_energy = "1kW" data.raw.pipe["bob-steel-pipe"].heating_energy = "1kW" @@ -926,20 +926,28 @@ if feature_flags["freezing"] and mods["space-age"] then data.raw["pipe-to-ground"]["bob-stone-pipe-to-ground"].heating_energy = "100kW" data.raw["pipe-to-ground"]["bob-steel-pipe-to-ground"].heating_energy = "150kW" data.raw["pipe-to-ground"]["bob-plastic-pipe-to-ground"].heating_energy = "200kW" - local ptgfrozenpatch = data.raw["pipe-to-ground"]["pipe-to-ground"].frozen_patch - data.raw["pipe-to-ground"]["bob-copper-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-stone-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-steel-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-plastic-pipe-to-ground"].frozen_patch = ptgfrozenpatch - local pcfrozenpatch = data.raw.pipe.pipe.fluid_box.pipe_covers_frozen - data.raw.pipe["bob-copper-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-plastic-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-steel-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-stone-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-copper-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-stone-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-steel-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-plastic-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["pipe-to-ground"]["pipe-to-ground"].frozen_patch) + return result + end + data.raw["pipe-to-ground"]["bob-copper-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-stone-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-steel-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-plastic-pipe-to-ground"].frozen_patch = frozenpatch() + local function frozenpatch2() + local result = util.table.deepcopy(data.raw.pipe.pipe.fluid_box.pipe_covers_frozen) + return result + end + data.raw.pipe["bob-copper-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-plastic-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-steel-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-stone-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-copper-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-stone-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-steel-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-plastic-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + end end if mods["bobplates"] then @@ -1533,7 +1541,7 @@ if mods["bobplates"] then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw.pipe["bob-brass-pipe"].heating_energy = "1kW" data.raw.pipe["bob-bronze-pipe"].heating_energy = "1kW" data.raw.pipe["bob-ceramic-pipe"].heating_energy = "1kW" @@ -1548,29 +1556,37 @@ if mods["bobplates"] then data.raw["pipe-to-ground"]["bob-tungsten-pipe-to-ground"].heating_energy = "250kW" data.raw["pipe-to-ground"]["bob-copper-tungsten-pipe-to-ground"].heating_energy = "300kW" data.raw["pipe-to-ground"]["bob-nitinol-pipe-to-ground"].heating_energy = "300kW" - local ptgfrozenpatch = data.raw["pipe-to-ground"]["pipe-to-ground"].frozen_patch - data.raw["pipe-to-ground"]["bob-bronze-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-brass-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-ceramic-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-titanium-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-tungsten-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-copper-tungsten-pipe-to-ground"].frozen_patch = ptgfrozenpatch - data.raw["pipe-to-ground"]["bob-nitinol-pipe-to-ground"].frozen_patch = ptgfrozenpatch - local pcfrozenpatch = data.raw.pipe.pipe.fluid_box.pipe_covers_frozen - data.raw.pipe["bob-brass-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-bronze-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-ceramic-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-copper-tungsten-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-nitinol-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-titanium-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.pipe["bob-tungsten-pipe"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-bronze-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-brass-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-ceramic-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-titanium-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-tungsten-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-copper-tungsten-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw["pipe-to-ground"]["bob-nitinol-pipe-to-ground"].fluid_box.pipe_covers_frozen = pcfrozenpatch + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["pipe-to-ground"]["pipe-to-ground"].frozen_patch) + return result + end + data.raw["pipe-to-ground"]["bob-bronze-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-brass-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-ceramic-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-titanium-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-tungsten-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-copper-tungsten-pipe-to-ground"].frozen_patch = frozenpatch() + data.raw["pipe-to-ground"]["bob-nitinol-pipe-to-ground"].frozen_patch = frozenpatch() + local function frozenpatch2() + local result = util.table.deepcopy(data.raw.pipe.pipe.fluid_box.pipe_covers_frozen) + return result + end + data.raw.pipe["bob-brass-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-bronze-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-ceramic-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-copper-tungsten-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-nitinol-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-titanium-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw.pipe["bob-tungsten-pipe"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-bronze-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-brass-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-ceramic-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-titanium-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-tungsten-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-copper-tungsten-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + data.raw["pipe-to-ground"]["bob-nitinol-pipe-to-ground"].fluid_box.pipe_covers_frozen = frozenpatch2() + end end end From 71011eb6357454319269ccdb1f94427a3605b35e Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:19:28 -0700 Subject: [PATCH 33/41] Update storage-tank.lua --- .../prototypes/entity/storage-tank.lua | 70 +++++++++++-------- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git a/boblogistics/prototypes/entity/storage-tank.lua b/boblogistics/prototypes/entity/storage-tank.lua index 8e8796958..05941432f 100644 --- a/boblogistics/prototypes/entity/storage-tank.lua +++ b/boblogistics/prototypes/entity/storage-tank.lua @@ -439,7 +439,7 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw["storage-tank"]["bob-storage-tank-2"].heating_energy = "100kW" data.raw["storage-tank"]["bob-storage-tank-3"].heating_energy = "100kW" data.raw["storage-tank"]["bob-storage-tank-4"].heating_energy = "100kW" @@ -447,33 +447,43 @@ if feature_flags["freezing"] and mods["space-age"] then data.raw["storage-tank"]["bob-storage-tank-all-corners-2"].heating_energy = "100kW" data.raw["storage-tank"]["bob-storage-tank-all-corners-3"].heating_energy = "100kW" data.raw["storage-tank"]["bob-storage-tank-all-corners-4"].heating_energy = "100kW" - local frozenpatch = data.raw["storage-tank"]["storage-tank"].pictures.frozen_patch - data.raw["storage-tank"]["bob-storage-tank-2"].pictures.frozen_patch = frozenpatch - data.raw["storage-tank"]["bob-storage-tank-3"].pictures.frozen_patch = frozenpatch - data.raw["storage-tank"]["bob-storage-tank-4"].pictures.frozen_patch = frozenpatch - local frozenpatchall = { - sheets = { - { - filename = "__space-age__/graphics/entity/frozen/storage-tank/storage-tank.png", - frames = 1, - width = 219, - height = 215, - priority = "extra-high", - scale = 0.5, - shift = { -0.0078125, 0.1171875 }, - }, - }, - } - data.raw["storage-tank"]["bob-storage-tank-all-corners"].pictures.frozen_patch = frozenpatchall - data.raw["storage-tank"]["bob-storage-tank-all-corners-2"].pictures.frozen_patch = frozenpatchall - data.raw["storage-tank"]["bob-storage-tank-all-corners-3"].pictures.frozen_patch = frozenpatchall - data.raw["storage-tank"]["bob-storage-tank-all-corners-4"].pictures.frozen_patch = frozenpatchall - local frozenpipecovers = data.raw["storage-tank"]["storage-tank"].fluid_box.pipe_covers_frozen - data.raw["storage-tank"]["bob-storage-tank-2"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-3"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-4"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-all-corners"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-all-corners-2"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-all-corners-3"].fluid_box.pipe_covers_frozen = frozenpipecovers - data.raw["storage-tank"]["bob-storage-tank-all-corners-4"].fluid_box.pipe_covers_frozen = frozenpipecovers + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["storage-tank"]["storage-tank"].pictures.frozen_patch) + return result + end + data.raw["storage-tank"]["bob-storage-tank-2"].pictures.frozen_patch = frozenpatch() + data.raw["storage-tank"]["bob-storage-tank-3"].pictures.frozen_patch = frozenpatch() + data.raw["storage-tank"]["bob-storage-tank-4"].pictures.frozen_patch = frozenpatch() + local function frozenpatchall() + return { + sheets = { + { + filename = "__space-age__/graphics/entity/frozen/storage-tank/storage-tank.png", + frames = 1, + width = 219, + height = 215, + priority = "extra-high", + scale = 0.5, + shift = { -0.0078125, 0.1171875 }, + }, + }, + } + end + data.raw["storage-tank"]["bob-storage-tank-all-corners"].pictures.frozen_patch = frozenpatchall() + data.raw["storage-tank"]["bob-storage-tank-all-corners-2"].pictures.frozen_patch = frozenpatchall() + data.raw["storage-tank"]["bob-storage-tank-all-corners-3"].pictures.frozen_patch = frozenpatchall() + data.raw["storage-tank"]["bob-storage-tank-all-corners-4"].pictures.frozen_patch = frozenpatchall() + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw["storage-tank"]["storage-tank"].fluid_box.pipe_covers_frozen) + return result + end + data.raw["storage-tank"]["bob-storage-tank-2"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-3"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-4"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-all-corners"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-all-corners-2"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-all-corners-3"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw["storage-tank"]["bob-storage-tank-all-corners-4"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + end end From e396a8bd1cef34a32e472f79711fce9dba8a31a6 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:25:33 -0700 Subject: [PATCH 34/41] Update valves.lua --- boblogistics/prototypes/valves.lua | 77 +++++++++++++++++------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/boblogistics/prototypes/valves.lua b/boblogistics/prototypes/valves.lua index 5e04068a7..6afb78ed6 100644 --- a/boblogistics/prototypes/valves.lua +++ b/boblogistics/prototypes/valves.lua @@ -491,44 +491,53 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"]then data.raw.valve["bob-valve"].heating_energy = "10kW" data.raw.valve["bob-overflow-valve"].heating_energy = "10kW" data.raw.valve["bob-topup-valve"].heating_energy = "10kW" - local pcfrozenpatch = data.raw.pipe.pipe.fluid_box.pipe_covers_frozen - local frozenpatchNS = { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-vertical.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - } - local frozenpatchEW = { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - } - data.raw.valve["bob-valve"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.valve["bob-valve"].frozen_patch = {} - data.raw.valve["bob-valve"].frozen_patch.north = frozenpatchNS - data.raw.valve["bob-valve"].frozen_patch.south = frozenpatchNS - data.raw.valve["bob-valve"].frozen_patch.east = frozenpatchEW - data.raw.valve["bob-valve"].frozen_patch.west = frozenpatchEW + if mods["space-age"] then + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw.pipe.pipe.fluid_box.pipe_covers_frozen) + return result + end + local function frozenpatchNS() + return { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-vertical.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + } + end + local function frozenpatchEW() + return { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + } + end + data.raw.valve["bob-valve"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw.valve["bob-valve"].frozen_patch = {} + data.raw.valve["bob-valve"].frozen_patch.north = frozenpatchNS() + data.raw.valve["bob-valve"].frozen_patch.south = frozenpatchNS() + data.raw.valve["bob-valve"].frozen_patch.east = frozenpatchEW() + data.raw.valve["bob-valve"].frozen_patch.west = frozenpatchEW() - data.raw.valve["bob-overflow-valve"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.valve["bob-overflow-valve"].frozen_patch = {} - data.raw.valve["bob-overflow-valve"].frozen_patch.north = frozenpatchNS - data.raw.valve["bob-overflow-valve"].frozen_patch.south = frozenpatchNS - data.raw.valve["bob-overflow-valve"].frozen_patch.east = frozenpatchEW - data.raw.valve["bob-overflow-valve"].frozen_patch.west = frozenpatchEW + data.raw.valve["bob-overflow-valve"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw.valve["bob-overflow-valve"].frozen_patch = {} + data.raw.valve["bob-overflow-valve"].frozen_patch.north = frozenpatchNS() + data.raw.valve["bob-overflow-valve"].frozen_patch.south = frozenpatchNS() + data.raw.valve["bob-overflow-valve"].frozen_patch.east = frozenpatchEW() + data.raw.valve["bob-overflow-valve"].frozen_patch.west = frozenpatchEW() - data.raw.valve["bob-topup-valve"].fluid_box.pipe_covers_frozen = pcfrozenpatch - data.raw.valve["bob-topup-valve"].frozen_patch = {} - data.raw.valve["bob-topup-valve"].frozen_patch.north = frozenpatchNS - data.raw.valve["bob-topup-valve"].frozen_patch.south = frozenpatchNS - data.raw.valve["bob-topup-valve"].frozen_patch.east = frozenpatchEW - data.raw.valve["bob-topup-valve"].frozen_patch.west = frozenpatchEW + data.raw.valve["bob-topup-valve"].fluid_box.pipe_covers_frozen = frozenpatchcovers() + data.raw.valve["bob-topup-valve"].frozen_patch = {} + data.raw.valve["bob-topup-valve"].frozen_patch.north = frozenpatchNS() + data.raw.valve["bob-topup-valve"].frozen_patch.south = frozenpatchNS() + data.raw.valve["bob-topup-valve"].frozen_patch.east = frozenpatchEW() + data.raw.valve["bob-topup-valve"].frozen_patch.west = frozenpatchEW() + end end From f52d3e4d9bb4d1ea141cbdc995a822d855d2d363 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:29:12 -0700 Subject: [PATCH 35/41] Update pumpjacks.lua --- bobmining/prototypes/pumpjacks.lua | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/bobmining/prototypes/pumpjacks.lua b/bobmining/prototypes/pumpjacks.lua index e0d810ae5..d63be2556 100644 --- a/bobmining/prototypes/pumpjacks.lua +++ b/bobmining/prototypes/pumpjacks.lua @@ -1,5 +1,6 @@ data.raw["mining-drill"]["pumpjack"].fast_replaceable_group = "pumpjack" data.raw.item["pumpjack"].order = "b[fluids]-b[pumpjack-1]" +data.raw.item["pumpjack"].weight = 50000 if settings.startup["bobmods-mining-pumpjacks"].value == true then data.raw["mining-drill"]["pumpjack"].next_upgrade = "bob-pumpjack-1" @@ -26,6 +27,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, { type = "item", @@ -48,6 +50,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, { type = "item", @@ -70,6 +73,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, }) @@ -442,17 +446,22 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then }, }) - if feature_flags["freezing"] and mods["space-age"] then - local frozenpatch = data.raw["mining-drill"].pumpjack.graphics_set.frozen_patch + if feature_flags["freezing"] then data.raw["mining-drill"]["bob-pumpjack-1"].heating_energy = "50kW" data.raw["mining-drill"]["bob-pumpjack-2"].heating_energy = "50kW" data.raw["mining-drill"]["bob-pumpjack-3"].heating_energy = "50kW" - data.raw["mining-drill"]["bob-pumpjack-1"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-pumpjack-2"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-pumpjack-3"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-pumpjack-1"].graphics_set.frozen_patch = frozenpatch - data.raw["mining-drill"]["bob-pumpjack-2"].graphics_set.frozen_patch = frozenpatch - data.raw["mining-drill"]["bob-pumpjack-3"].graphics_set.frozen_patch = frozenpatch + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["mining-drill"].pumpjack.graphics_set.frozen_patch) + return result + end + data.raw["mining-drill"]["bob-pumpjack-1"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-pumpjack-2"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-pumpjack-3"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-pumpjack-1"].graphics_set.frozen_patch = frozenpatch() + data.raw["mining-drill"]["bob-pumpjack-2"].graphics_set.frozen_patch = frozenpatch() + data.raw["mining-drill"]["bob-pumpjack-3"].graphics_set.frozen_patch = frozenpatch() + end end data:extend({ From de021aef3dfa615442d21b9b104cf1ef3a2f54ae Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:29:54 -0700 Subject: [PATCH 36/41] Update water-miner.lua --- bobmining/prototypes/water-miner.lua | 29 ++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/bobmining/prototypes/water-miner.lua b/bobmining/prototypes/water-miner.lua index b2c443603..f692d9b6d 100644 --- a/bobmining/prototypes/water-miner.lua +++ b/bobmining/prototypes/water-miner.lua @@ -21,6 +21,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, { type = "item", @@ -43,6 +44,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, { type = "item", @@ -65,6 +67,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, { type = "item", @@ -87,6 +90,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re filename = "__base__/sound/item/pumpjack-inventory-pickup.ogg", volume = 0.6, }, + weight = 50000, }, }) @@ -435,20 +439,25 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re }, }) - if feature_flags["freezing"] and mods["space-age"] then - local frozenpatch = data.raw["mining-drill"].pumpjack.graphics_set.frozen_patch + if feature_flags["freezing"] then data.raw["mining-drill"]["bob-water-miner-1"].heating_energy = "50kW" data.raw["mining-drill"]["bob-water-miner-2"].heating_energy = "50kW" data.raw["mining-drill"]["bob-water-miner-3"].heating_energy = "50kW" data.raw["mining-drill"]["bob-water-miner-4"].heating_energy = "50kW" - data.raw["mining-drill"]["bob-water-miner-1"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-water-miner-2"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-water-miner-3"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-water-miner-4"].graphics_set.reset_animation_when_frozen = true - data.raw["mining-drill"]["bob-water-miner-1"].graphics_set.frozen_patch = frozenpatch - data.raw["mining-drill"]["bob-water-miner-2"].graphics_set.frozen_patch = frozenpatch - data.raw["mining-drill"]["bob-water-miner-3"].graphics_set.frozen_patch = frozenpatch - data.raw["mining-drill"]["bob-water-miner-4"].graphics_set.frozen_patch = frozenpatch + if mods["space-age"] then + local function frozenpatch() + local result = util.table.deepcopy(data.raw["mining-drill"].pumpjack.graphics_set.frozen_patch) + return result + end + data.raw["mining-drill"]["bob-water-miner-1"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-water-miner-2"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-water-miner-3"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-water-miner-4"].graphics_set.reset_animation_when_frozen = true + data.raw["mining-drill"]["bob-water-miner-1"].graphics_set.frozen_patch = frozenpatch() + data.raw["mining-drill"]["bob-water-miner-2"].graphics_set.frozen_patch = frozenpatch() + data.raw["mining-drill"]["bob-water-miner-3"].graphics_set.frozen_patch = frozenpatch() + data.raw["mining-drill"]["bob-water-miner-4"].graphics_set.frozen_patch = frozenpatch() + end end data:extend({ From bb1e5426b011fe3738cb409ffd0c7ac7a8001703 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:41:35 -0700 Subject: [PATCH 37/41] Update distillery.lua --- bobplates/prototypes/distillery.lua | 585 ++++++++++++++-------------- 1 file changed, 295 insertions(+), 290 deletions(-) diff --git a/bobplates/prototypes/distillery.lua b/bobplates/prototypes/distillery.lua index b144afacf..2c3f2df97 100644 --- a/bobplates/prototypes/distillery.lua +++ b/bobplates/prototypes/distillery.lua @@ -504,315 +504,320 @@ if settings.startup["bobmods-plates-purewater"].value == true then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw.furnace["bob-distillery"].heating_energy = "50kW" - function bobmods.plates.frozenpatch1(tint) - return { - north = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, 0.85 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 0, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + if mods["space-age"] then + function bobmods.plates.frozenpatch1(tint) + return { + north = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, 0.85 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 0, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - east = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", - width = 64, - height = 128, - x = 64, - priority = "extra-high", - scale = 0.5, - shift = util.by_pixel(-16, 18), - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", - width = 64, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = util.by_pixel(16, 18), - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 128, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 128, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + east = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", + width = 64, + height = 128, + x = 64, + priority = "extra-high", + scale = 0.5, + shift = util.by_pixel(-16, 18), + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", + width = 64, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = util.by_pixel(16, 18), + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 128, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 128, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - south = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, 0.85 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 256, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 256, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + south = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, 0.85 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 256, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 256, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - west = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 80, - height = 128, - x = 48, - priority = "extra-high", - scale = 0.5, - shift = { -0.37, -0.433 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 80, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.37, -0.433 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 384, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 384, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + west = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 80, + height = 128, + x = 48, + priority = "extra-high", + scale = 0.5, + shift = { -0.37, -0.433 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 80, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.37, -0.433 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 384, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 384, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - } - end + } + end - function bobmods.plates.frozenpatch2(tint) - return { - north = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, 0.85 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 256, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 256, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + function bobmods.plates.frozenpatch2(tint) + return { + north = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, 0.85 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 256, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 256, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - east = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 80, - height = 128, - x = 48, - priority = "extra-high", - scale = 0.5, - shift = { -0.37, -0.433 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 80, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.37, -0.433 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 384, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 384, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + east = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 80, + height = 128, + x = 48, + priority = "extra-high", + scale = 0.5, + shift = { -0.37, -0.433 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 80, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.37, -0.433 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 384, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 384, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - south = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, 0.85 }, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 0, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + south = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, 0.85 }, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 0, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - west = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", - width = 64, - height = 128, - x = 64, - priority = "extra-high", - scale = 0.5, - shift = util.by_pixel(-16, 18), - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", - width = 64, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = util.by_pixel(16, 18), - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", - x = 128, - width = 128, - height = 192, - priority = "extra-high", - scale = 0.5, - }, - { - filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", - x = 128, - width = 128, - height = 192, - tint = tint, - scale = 0.5, + west = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", + width = 64, + height = 128, + x = 64, + priority = "extra-high", + scale = 0.5, + shift = util.by_pixel(-16, 18), + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-straight-horizontal.png", + width = 64, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = util.by_pixel(16, 18), + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-frozen.png", + x = 128, + width = 128, + height = 192, + priority = "extra-high", + scale = 0.5, + }, + { + filename = "__bobplates__/graphics/entity/distillery/distillery-mask.png", + x = 128, + width = 128, + height = 192, + tint = tint, + scale = 0.5, + }, }, }, - }, - } - end + } + end - data.raw.furnace["bob-distillery"].graphics_set.frozen_patch = - bobmods.plates.frozenpatch1({ r = 0.4, g = 0.4, b = 0.05 }) - data.raw.furnace["bob-distillery"].graphics_set_flipped.frozen_patch = - bobmods.plates.frozenpatch2({ r = 0.4, g = 0.4, b = 0.05 }) + data.raw.furnace["bob-distillery"].graphics_set.frozen_patch = + bobmods.plates.frozenpatch1({ r = 0.4, g = 0.4, b = 0.05 }) + data.raw.furnace["bob-distillery"].graphics_set_flipped.frozen_patch = + bobmods.plates.frozenpatch2({ r = 0.4, g = 0.4, b = 0.05 }) - local pcfrozenpatch = data.raw.pipe.pipe.fluid_box.pipe_covers_frozen - data.raw.furnace["bob-distillery"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw.furnace["bob-distillery"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch + local function frozenpatchcovers() + local result = util.table.deepcopy(data.raw.pipe.pipe.fluid_box.pipe_covers_frozen) + return result + end + data.raw.furnace["bob-distillery"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw.furnace["bob-distillery"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + end end end From ffc16ad17126c4dae43d919450328bae2de8b4dc Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:46:45 -0700 Subject: [PATCH 38/41] Update pumps.lua --- bobplates/prototypes/entity/pumps.lua | 510 +++++++++++++------------- 1 file changed, 259 insertions(+), 251 deletions(-) diff --git a/bobplates/prototypes/entity/pumps.lua b/bobplates/prototypes/entity/pumps.lua index 5a14e602a..524e113a0 100644 --- a/bobplates/prototypes/entity/pumps.lua +++ b/bobplates/prototypes/entity/pumps.lua @@ -629,7 +629,7 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw["assembling-machine"]["bob-air-pump"].heating_energy = "25kW" data.raw["assembling-machine"]["bob-air-pump-2"].heating_energy = "25kW" data.raw["assembling-machine"]["bob-air-pump-3"].heating_energy = "25kW" @@ -639,257 +639,265 @@ if feature_flags["freezing"] and mods["space-age"] then data.raw["assembling-machine"]["bob-water-pump-3"].heating_energy = "25kW" data.raw["assembling-machine"]["bob-water-pump-4"].heating_energy = "25kW" - local frozenpatch1 = { - north = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, -0.85 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, 1 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-north-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - }, - }, - }, - east = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 80, - height = 128, - x = 48, - priority = "extra-high", - scale = 0.5, - shift = { -0.35, 0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.7, 0.5 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-east-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - }, - }, - }, - south = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, -0.85 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, 1 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-south-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - }, - }, - }, - west = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.7, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.7, -0.5 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-west-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - }, - }, - }, - } + if mods["space-age"] then + local function frozenpatch1() + return { + north = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, -0.85 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, 1 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-north-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + }, + }, + }, + east = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 80, + height = 128, + x = 48, + priority = "extra-high", + scale = 0.5, + shift = { -0.35, 0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.7, 0.5 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-east-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + }, + }, + }, + south = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, -0.85 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, 1 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-south-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + }, + }, + }, + west = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.7, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.7, -0.5 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-west-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + }, + }, + }, + } + end - local frozenpatch2 = { - north = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, -0.85 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.5, 1 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-north-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - shift = { -1, 0 }, - }, - }, - }, - east = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.7, -0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.7, -0.5 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-east-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - shift = { 0, -1 }, - }, - }, - }, - south = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, -0.85 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.5, 1 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-south-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - shift = { 1, 0 }, - }, - }, - }, - west = { - layers = { - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { -0.7, 0.5 }, - }, - { - filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", - width = 128, - height = 128, - priority = "extra-high", - scale = 0.5, - shift = { 0.7, 0.5 }, - }, - { - filename = "__bobplates__/graphics/entity/pump/pump-west-frozen.png", - width = 80, - height = 80, - priority = "extra-high", - shift = { 0, 1 }, - }, - }, - }, - } + local function frozenpatch2() + return { + north = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, -0.85 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.5, 1 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-north-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + shift = { -1, 0 }, + }, + }, + }, + east = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.7, -0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.7, -0.5 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-east-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + shift = { 0, -1 }, + }, + }, + }, + south = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-down.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, -0.85 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-up.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.5, 1 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-south-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + shift = { 1, 0 }, + }, + }, + }, + west = { + layers = { + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-right.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { -0.7, 0.5 }, + }, + { + filename = "__space-age__/graphics/entity/frozen/pipe/pipe-ending-left.png", + width = 128, + height = 128, + priority = "extra-high", + scale = 0.5, + shift = { 0.7, 0.5 }, + }, + { + filename = "__bobplates__/graphics/entity/pump/pump-west-frozen.png", + width = 80, + height = 80, + priority = "extra-high", + shift = { 0, 1 }, + }, + }, + }, + } + end - data.raw["assembling-machine"]["bob-air-pump"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-air-pump-2"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-air-pump-3"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-air-pump-4"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-water-pump"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-water-pump-2"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-water-pump-3"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-water-pump-4"].graphics_set.frozen_patch = frozenpatch1 - data.raw["assembling-machine"]["bob-air-pump"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-air-pump-2"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-air-pump-3"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-air-pump-4"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-water-pump"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-water-pump-2"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-water-pump-3"].graphics_set_flipped.frozen_patch = frozenpatch2 - data.raw["assembling-machine"]["bob-water-pump-4"].graphics_set_flipped.frozen_patch = frozenpatch2 + data.raw["assembling-machine"]["bob-air-pump"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-air-pump-2"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-air-pump-3"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-air-pump-4"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-water-pump"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-water-pump-2"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-water-pump-3"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-water-pump-4"].graphics_set.frozen_patch = frozenpatch1() + data.raw["assembling-machine"]["bob-air-pump"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-air-pump-2"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-air-pump-3"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-air-pump-4"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-water-pump"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-water-pump-2"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-water-pump-3"].graphics_set_flipped.frozen_patch = frozenpatch2() + data.raw["assembling-machine"]["bob-water-pump-4"].graphics_set_flipped.frozen_patch = frozenpatch2() - local pcfrozenpatch = data.raw.pipe.pipe.fluid_box.pipe_covers_frozen - data.raw["assembling-machine"]["bob-air-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-2"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-3"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-4"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-2"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-3"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-4"].fluid_boxes[1].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-2"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-3"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-air-pump-4"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-2"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-3"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch - data.raw["assembling-machine"]["bob-water-pump-4"].fluid_boxes[2].pipe_covers_frozen = pcfrozenpatch + local function frozenpatchcovers() + return util.table.deepcopy(data.raw.pipe.pipe.fluid_box.pipe_covers_frozen) + end + data.raw["assembling-machine"]["bob-air-pump"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-2"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-3"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-4"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-2"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-3"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-4"].fluid_boxes[1].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-2"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-3"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-air-pump-4"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-2"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-3"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + data.raw["assembling-machine"]["bob-water-pump-4"].fluid_boxes[2].pipe_covers_frozen = frozenpatchcovers() + end end From 59f468a04c9815f90a5f9da0c7f17cfa086fe05e Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:50:22 -0700 Subject: [PATCH 39/41] Update entity.lua --- bobtech/prototypes/entity/entity.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bobtech/prototypes/entity/entity.lua b/bobtech/prototypes/entity/entity.lua index 11c8fcb3c..6f51e3d8f 100644 --- a/bobtech/prototypes/entity/entity.lua +++ b/bobtech/prototypes/entity/entity.lua @@ -151,15 +151,17 @@ data:extend({ data.raw["lab"]["lab"].next_upgrade = "bob-lab-2" -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw.lab["bob-lab-2"].heating_energy = "100kW" - data.raw.lab["bob-lab-2"].frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/lab/lab.png", - width = 194, - height = 174, - scale = 0.5, - shift = { 0, 0.046875 }, - } + if mods["space-age"] then + data.raw.lab["bob-lab-2"].frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/lab/lab.png", + width = 194, + height = 174, + scale = 0.5, + shift = { 0, 0.046875 }, + } + end end if mods["DiscoScience"] and DiscoScience and DiscoScience.prepareLab then From 21f1ea2cfe3c4ab8d6a09d42f44e3e1f92619307 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:50:39 -0700 Subject: [PATCH 40/41] Update entity-alien.lua --- bobtech/prototypes/entity/entity-alien.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bobtech/prototypes/entity/entity-alien.lua b/bobtech/prototypes/entity/entity-alien.lua index 45b8a814b..9de09a053 100644 --- a/bobtech/prototypes/entity/entity-alien.lua +++ b/bobtech/prototypes/entity/entity-alien.lua @@ -158,15 +158,17 @@ then }, }) - if feature_flags["freezing"] and mods["space-age"] then + if feature_flags["freezing"] then data.raw.lab["bob-lab-alien"].heating_energy = "100kW" - data.raw.lab["bob-lab-alien"].frozen_patch = { - filename = "__space-age__/graphics/entity/frozen/lab/lab.png", - width = 194, - height = 174, - scale = 0.5, - shift = { 0, 0.046875 }, - } + if mods["space-age"] then + data.raw.lab["bob-lab-alien"].frozen_patch = { + filename = "__space-age__/graphics/entity/frozen/lab/lab.png", + width = 194, + height = 174, + scale = 0.5, + shift = { 0, 0.046875 }, + } + end end if mods["DiscoScience"] and DiscoScience and DiscoScience.prepareLab then From 4d8c347b59230624ddab4ed56df119133ecab0f1 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Sat, 28 Mar 2026 22:51:22 -0700 Subject: [PATCH 41/41] Update radar.lua --- bobwarfare/prototypes/entity/radar.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/bobwarfare/prototypes/entity/radar.lua b/bobwarfare/prototypes/entity/radar.lua index 4abae9c36..0e7b21ffe 100644 --- a/bobwarfare/prototypes/entity/radar.lua +++ b/bobwarfare/prototypes/entity/radar.lua @@ -422,18 +422,22 @@ data:extend({ }, }) -if feature_flags["freezing"] and mods["space-age"] then +if feature_flags["freezing"] then data.raw.radar["bob-radar-2"].heating_energy = "300kW" data.raw.radar["bob-radar-3"].heating_energy = "300kW" data.raw.radar["bob-radar-4"].heating_energy = "300kW" data.raw.radar["bob-radar-5"].heating_energy = "300kW" - local frozenpatch = data.raw.radar.radar.frozen_patch - data.raw.radar["bob-radar-2"].frozen_patch = frozenpatch - data.raw.radar["bob-radar-3"].frozen_patch = frozenpatch - data.raw.radar["bob-radar-4"].frozen_patch = frozenpatch - data.raw.radar["bob-radar-5"].frozen_patch = frozenpatch - data.raw.radar["bob-radar-2"].reset_orientation_when_frozen = true - data.raw.radar["bob-radar-3"].reset_orientation_when_frozen = true - data.raw.radar["bob-radar-4"].reset_orientation_when_frozen = true - data.raw.radar["bob-radar-5"].reset_orientation_when_frozen = true + if mods["space-age"] then + local function frozenpatch() + return util.table.deepcopy(data.raw.radar.radar.frozen_patch) + end + data.raw.radar["bob-radar-2"].frozen_patch = frozenpatch() + data.raw.radar["bob-radar-3"].frozen_patch = frozenpatch() + data.raw.radar["bob-radar-4"].frozen_patch = frozenpatch() + data.raw.radar["bob-radar-5"].frozen_patch = frozenpatch() + data.raw.radar["bob-radar-2"].reset_orientation_when_frozen = true + data.raw.radar["bob-radar-3"].reset_orientation_when_frozen = true + data.raw.radar["bob-radar-4"].reset_orientation_when_frozen = true + data.raw.radar["bob-radar-5"].reset_orientation_when_frozen = true + end end