IronAge adapted

Construction plan added
power bugfix
formspec power_image added
This commit is contained in:
Joachim Stolberg 2019-04-27 17:42:50 +02:00
parent 5b721c62e3
commit ba60bbba38

14
basis/lib.lua Normal file
View File

@ -0,0 +1,14 @@
function techage.range(val, min, max)
val = tonumber(val)
if val < min then return min end
if val > max then return max end
return val
end
function techage.one_of(val, selection)
for _,v in ipairs(selection) do
if val == v then return val end
end
return selection[1]
end