From 5badb4d685ebbca54bb7c8f04065b41ebedc15b8 Mon Sep 17 00:00:00 2001 From: Qatavin <108201496+Qatavin@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:32:05 -0700 Subject: [PATCH] Add alternate throughputs for pumps if no Quality Addresses #550 With the Quality mod, pumps will still have their previous throughput - 600, 1200, 1800, 2400 at Normal, 1500, 3000, 4500, 6000 at Legendary, with 6000 being the absolute limit of what the game will allow. Without the Quality mod, throughput will be 1200, 2400, 3600, and 4800. --- boblogistics/prototypes/entity/pump.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/boblogistics/prototypes/entity/pump.lua b/boblogistics/prototypes/entity/pump.lua index 5f6ffd613..eb817120f 100644 --- a/boblogistics/prototypes/entity/pump.lua +++ b/boblogistics/prototypes/entity/pump.lua @@ -1,11 +1,8 @@ -data.raw.pump.pump.pumping_speed = 10 - local bobpump2 = table.deepcopy(data.raw.pump.pump) bobpump2.name = "bob-pump-2" bobpump2.minable.result = "bob-pump-2" bobpump2.max_health = 220 bobpump2.next_upgrade = "bob-pump-3" -bobpump2.pumping_speed = 20 bobpump2.energy_usage = "50kW" bobpump2.circuit_wire_max_distance = 10 @@ -14,7 +11,6 @@ bobpump3.name = "bob-pump-3" bobpump3.minable.result = "bob-pump-3" bobpump3.max_health = 260 bobpump3.next_upgrade = "bob-pump-4" -bobpump3.pumping_speed = 30 bobpump3.energy_usage = "65kW" bobpump3.circuit_wire_max_distance = 12.5 @@ -23,8 +19,18 @@ bobpump4.name = "bob-pump-4" bobpump4.minable.result = "bob-pump-4" bobpump4.max_health = 300 bobpump4.next_upgrade = nil -bobpump4.pumping_speed = 40 bobpump4.energy_usage = "75kW" bobpump4.circuit_wire_max_distance = 15 +if mods["quality"] then + data.raw.pump.pump.pumping_speed = 10 + bobpump2.pumping_speed = 20 + bobpump3.pumping_speed = 30 + bobpump4.pumping_speed = 40 +else + bobpump2.pumping_speed = 40 + bobpump3.pumping_speed = 60 + bobpump4.pumping_speed = 80 +end + data:extend({ bobpump2, bobpump3, bobpump4 })