This commit is contained in:
2025-01-10 00:09:13 +09:00
parent 8f5d3e4a65
commit 7a5577452c

View File

@@ -372,11 +372,11 @@ local function handle_input_interfaces()
local count_deduct local count_deduct
local count_add local count_add
if prototypes.quality[v.quality].level == 1 then if prototypes.quality[v.quality].level == 0 then
count_deduct = v.count count_deduct = v.count
count_add = v.count count_add = v.count
elseif prototypes.quality[v.quality].level > 1 and v.count >= 10 then elseif prototypes.quality[v.quality].level > 0 and v.count >= 10 then
local batch = math.floor(v.count / 10) local batch = math.floor(v.count / 10)
count_deduct = batch * 10 count_deduct = batch * 10
count_add = batch * (7 + (prototypes.quality[v.quality].level * 3)) count_add = batch * (7 + (prototypes.quality[v.quality].level * 3))