Love your mod, but I felt a bit OCD-like when I saw the ugly non-rounded numbers.
So in my local file, I tried to edit the code to round the cost numbers so that they look slightly better. Just wondering if you might also want to add a mod option to round costs in a way similar to this.
(I am not a programmer and only got the below code with trial and error and google)
for i,tech in pairs(tech_list.name) do
local k = 10
if settings.startup["omniscience-cumulative-count"].value then
k = tech_list.cost[i]
elseif settings.startup["omniscience-exponential"].value then
k = settings.startup["omniscience-exponential-initial"].value * math.pow(base,tech_list.height[i])
end
if k > 8000 then
if k > 80000 then
if k > 800000 then
if k > 1800000 then
if k > 4000000 then
k = math.floor(k/1000000+0.5) * 1000000
else
k = math.floor(k/500000+0.5) * 500000
end
else
if k > 1600000 then
k = 1600000
else
k = math.floor(k/200000+0.5) * 200000
end
end
elseif k > 180000 then
if k > 400000 then
k = math.floor(k/100000+0.5) * 100000
else
k = math.floor(k/50000+0.5) * 50000
end
else
if k > 160000 then
k = 160000
else
k = math.floor(k/20000+0.5) * 20000
end
end
elseif k > 18000 then
if k > 40000 then
k = math.floor(k/10000+0.5) * 10000
else
k = math.floor(k/5000+0.5) * 5000
end
else
if k > 16000 then
k = 16000
else
k = math.floor(k/2000+0.5) * 2000
end
end
elseif k > 80 then
if k > 800 then
if k > 1800 then
if k > 4000 then
k = math.floor(k/1000+0.5) * 1000
else
k = math.floor(k/500+0.5) * 500
end
else
if k > 1600 then
k = 1600
else
k = math.floor(k/200+0.5) * 200
end
end
elseif k > 180 then
if k > 400 then
k = math.floor(k/100+0.5) * 100
else
k = math.floor(k/50+0.5) * 50
end
else
if k > 160 then
k = 160
else
k = math.floor(k/20+0.5) * 20
end
end
elseif k > 10 then
k = math.floor(k/10+0.5) * 10
else
k = math.floor(k+0.5)
end
data.raw.technology[tech].unit.count = k
--[[cost increments like:
10-20-30-40-50-60-70-80
100-120-140-160-200-250-300-350-400-500-600-700-800
1000-1200-1400-1600-2000-2500-3000-3500-4000-5000-6000-7000-8000
10000-12000-14000-16000-20000-25000-30000-35000-40000-50000-60000-70000-80000
...]]--
end