factions/config.lua
2019-05-16 18:59:18 -05:00

25 lines
2.3 KiB
Lua

factions_config = {}
factions_config.protection_max_depth = tonumber(minetest.settings:get("factions.protection_max_depth")) or -512
factions_config.protection_max_height = tonumber(minetest.settings:get("factions.protection_max_height")) or 10000
factions_config.power_per_parcel = tonumber(minetest.settings:get("factions.power_per_parcel")) or 1
factions_config.power_per_death = tonumber(minetest.settings:get("factions.power_per_death")) or 1
factions_config.power_per_tick = tonumber(minetest.settings:get("factions.power_per_tick")) or 2
factions_config.tick_time = tonumber(minetest.settings:get("factions.tick_time")) or 60
factions_config.power_per_attack = tonumber(minetest.settings:get("factions.power_per_attack")) or 10
factions_config.faction_name_max_length = tonumber(minetest.settings:get("factions.faction_name_max_length")) or 50
factions_config.rank_name_max_length = tonumber(minetest.settings:get("factions.rank_name_max_length")) or 25
factions_config.maximum_faction_inactivity = tonumber(minetest.settings:get("factions.maximum_faction_inactivity")) or 604800
factions_config.maximum_parcelless_faction_time = tonumber(minetest.settings:get("factions.maximum_parcelless_faction_time")) or 10800
factions_config.power = tonumber(minetest.settings:get("factions.power")) or 12
factions_config.maxpower = tonumber(minetest.settings:get("factions.maxpower")) or 0
factions_config.power_per_player = tonumber(minetest.settings:get("factions.power_per_player")) or 1
factions_config.powermax_per_player = tonumber(minetest.settings:get("factions.powermax_per_player")) or 12
factions_config.parcel_size = tonumber(minetest.settings:get("factions.parcel_size")) or 16
factions_config.protection_depth_height_limit = minetest.settings:get_bool("factions.protection_depth_height_limit") or true
factions_config.enable_power_per_player = minetest.settings:get_bool("factions.power_per_playerb") or true
factions_config.attack_parcel = minetest.settings:get_bool("factions.attack_parcel") or false
factions_config.faction_diplomacy = minetest.settings:get_bool("factions.faction_diplomacy") or true
factions_config.spawn_teleport = minetest.settings:get_bool("factions.spawn_teleport") or false
factions_config.protection_style = minetest.settings:get("factions.protection_style") or "2d"
factions_config.faction_user_priv = minetest.settings:get("factions.faction_user_priv") or false