2022-10-03 18:51:13 +02:00
|
|
|
fbrawl = {}
|
|
|
|
fbrawl.T = minetest.get_translator("fantasy_brawl")
|
|
|
|
|
2022-10-20 21:30:09 +02:00
|
|
|
|
2022-10-03 18:51:13 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/SETTINGS.lua")
|
2022-10-20 21:30:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
arena_lib.register_minigame("fbrawl", {
|
|
|
|
prefix = fbrawl_settings.prefix,
|
|
|
|
temp_properties = {
|
|
|
|
classes = {}, -- pl_name : string = class : {}
|
|
|
|
match_id = 0,
|
|
|
|
},
|
|
|
|
player_properties = {
|
|
|
|
class = "",
|
|
|
|
kills = 0,
|
|
|
|
ultimate_recharge = 0
|
|
|
|
},
|
|
|
|
load_time = fbrawl_settings.max_loading_time,
|
|
|
|
show_nametags = false,
|
|
|
|
show_minimap = false,
|
|
|
|
celebration_time = fbrawl_settings.celebration_time,
|
|
|
|
time_mode = "decremental"
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/hud.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/sounds.lua")
|
|
|
|
|
2022-10-03 18:51:13 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/chatcmdbuilder.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/utils.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/classes_system.lua")
|
2022-10-20 21:30:09 +02:00
|
|
|
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_arena_lib/callbacks.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_arena_lib/utils.lua")
|
|
|
|
|
2022-10-03 18:51:13 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/mana.lua")
|
|
|
|
|
2022-10-13 23:46:04 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/blood_effect.lua")
|
2022-10-03 18:51:13 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/warrior/warrior.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/mage/mage.lua")
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/commands.lua")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_allow_player_inventory_action(function(player, action, inventory, inventory_info)
|
|
|
|
local pl_name = player:get_player_name()
|
|
|
|
|
|
|
|
if arena_lib.is_player_in_arena(pl_name, "fantasy_brawl") then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_on_joinplayer(function(p, last_login)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
skillz.register_on_unlock("fbrawl", function(def) minetest.log("+ " .. def.name .. " to " .. def.pl_name) end)
|