mirror of
https://github.com/Xevion/research-multipliers.git
synced 2025-12-10 12:08:17 -06:00
chore: minor lua reformat
This commit is contained in:
@@ -126,7 +126,6 @@ function table.contains(table, element)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function is_essential_research(name)
|
function is_essential_research(name)
|
||||||
return essential_research[name] == true;
|
return essential_research[name] == true;
|
||||||
end
|
end
|
||||||
@@ -149,6 +148,7 @@ function is_interplanetary_research(name)
|
|||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ function calculate(name, technology)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- debug printing
|
-- debug printing
|
||||||
if (technology.unit) then
|
if (technology.unit) then
|
||||||
if (technology.unit.count ~= nil) then
|
if (technology.unit.count ~= nil) then
|
||||||
log(name .. " : " .. technology.unit.count .. " -> x" .. multiplier)
|
log(name .. " : " .. technology.unit.count .. " -> x" .. multiplier)
|
||||||
@@ -241,9 +241,9 @@ function calculate(name, technology)
|
|||||||
else
|
else
|
||||||
-- simple count
|
-- simple count
|
||||||
if (multiplier < 1) then
|
if (multiplier < 1) then
|
||||||
technology.unit.count = math.max(math.ceil(technology.unit.count*multiplier), 1)
|
technology.unit.count = math.max(math.ceil(technology.unit.count * multiplier), 1)
|
||||||
else
|
else
|
||||||
technology.unit.count = technology.unit.count*multiplier;
|
technology.unit.count = technology.unit.count * multiplier;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user