write something there

This commit is contained in:
N-Nachtigal 2025-05-04 16:01:41 +02:00
commit b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions

View file

@ -0,0 +1,24 @@
-- Globals
asuna_awards = {
awards = {},
}
-- Load awards after other mods are loaded if enabled
if asuna.content.wayfarer.awards then
minetest.register_on_mods_loaded(function()
local mpath = minetest.get_modpath("asuna_awards")
dofile(mpath .. "/register_on_interval.lua")
local awards_path = mpath .. "/awards/"
local award_files = minetest.get_dir_list(awards_path,false)
for i = 1, #award_files do
local file = award_files[i]
local award_name = "asuna_awards:" .. file:sub(1,-5)
local implementation = dofile(awards_path .. file)
local award_definition = implementation(award_name)
if award_definition.condition == nil or award_definition.condition then
asuna_awards.awards[award_name] = award_definition
awards.register_award(award_name,award_definition)
end
end
end)
end