Code: Select all
for _, quality in pairs(data.raw["quality"]) do
quality.beacon_power_usage_multiplier = quality.level
end
Code: Select all
for _, quality in pairs(data.raw["quality"]) do
quality.beacon_power_usage_multiplier = quality.level
end
Oh yeah I always forget normal is 0 not 1(I think lua is affecting my brain in a bad way), my logic was dump `1 + quality.level` is way betterboskid wrote: Wed May 13, 2026 10:38 am What i suspect is happening here is that normal quality got a multiplier of 0 (since quality levels start at 0) and this made the logic not show energy consumption since entity does not consume any electricity at the base quality. The only thing i can do here is to make QualityPrototype throw an error if you give beacon_power_usage_multiplier with a value smaller than 0.01.