mods that hopefully work for a TechAge-based pack

This commit is contained in:
2026-09-09 06:27:51 -06:00
parent 4e6b08d194
commit c27db2a537
6234 changed files with 375578 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
ancient_bones.config = {}
local function setting(name, tp, default)
local full_name = "ancient_bones." .. name
local value
value = tonumber(core.settings:get(full_name))
local v, other = default:match("^(%S+) (.+)")
default = value == nil and tonumber(other and v or default)
if value == nil then
value = default
assert(default ~= nil, "Cannot parse default for " .. full_name)
end
ancient_bones.config[name] = value
end
local file = io.open(ancient_bones.modpath .. "/settingtypes.txt", "r")
for line in file:lines() do
local name, tp, value = line:match("^ancient_bones%.(%S+) %(.*%) (%S+) (.*)")
if value then
setting(name, tp, value)
end
end
file:close()