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
|
|
|
|
|
|
|
|
2022-10-29 23:41:43 +02:00
|
|
|
arena_lib.register_minigame("fantasy_brawl", {
|
2022-10-20 21:30:09 +02:00
|
|
|
prefix = fbrawl_settings.prefix,
|
2022-10-29 22:21:10 +02:00
|
|
|
icon = "fbrawl_icon.png",
|
2022-10-20 21:30:09 +02:00
|
|
|
temp_properties = {
|
|
|
|
classes = {}, -- pl_name : string = class : {}
|
2022-10-30 20:56:45 +01:00
|
|
|
match_started = false,
|
2022-10-20 21:30:09 +02:00
|
|
|
},
|
|
|
|
player_properties = {
|
|
|
|
class = "",
|
|
|
|
kills = 0,
|
2022-10-29 02:22:18 +02:00
|
|
|
ultimate_recharge = 0,
|
2022-10-20 21:30:09 +02:00
|
|
|
},
|
2022-10-31 23:12:09 +01:00
|
|
|
hotbar = {slots = 4, background_image = "fbrawl_hotbar.png"},
|
2022-10-20 21:30:09 +02:00
|
|
|
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")
|
2022-10-20 21:30:09 +02:00
|
|
|
|
2022-10-23 01:54:03 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/classes_system.lua")
|
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/class_selector_formspec.lua")
|
2022-10-29 02:22:18 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/health_bar.lua")
|
2022-10-31 13:30:28 +01:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/hp_regen.lua")
|
2022-10-29 02:22:18 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/_classes/skill_status_hud.lua")
|
|
|
|
|
|
|
|
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
|
|
|
|
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")
|
|
|
|
|
2022-10-29 23:41:43 +02:00
|
|
|
dofile(minetest.get_modpath("fantasy_brawl") .. "/commands.lua")
|