forked from mtcontrib/factions
Power system redo.
This commit is contained in:
parent
d481a8fa7a
commit
f5c050e240
20
config.lua
20
config.lua
|
@ -2,9 +2,9 @@ factions_config = {}
|
||||||
local flip = tonumber(minetest.settings:get("protection_max_depth")) or 512
|
local flip = tonumber(minetest.settings:get("protection_max_depth")) or 512
|
||||||
factions_config.protection_max_depth = -flip
|
factions_config.protection_max_depth = -flip
|
||||||
factions_config.protection_max_height = tonumber(minetest.settings:get("protection_max_height")) or 10000
|
factions_config.protection_max_height = tonumber(minetest.settings:get("protection_max_height")) or 10000
|
||||||
factions_config.power_per_parcel = tonumber(minetest.settings:get("power_per_parcel")) or 0.5
|
factions_config.power_per_parcel = tonumber(minetest.settings:get("power_per_parcel")) or 1
|
||||||
factions_config.power_per_death = tonumber(minetest.settings:get("power_per_death")) or 0.25
|
factions_config.power_per_death = tonumber(minetest.settings:get("power_per_death")) or 1
|
||||||
factions_config.power_per_tick = tonumber(minetest.settings:get("power_per_tick")) or 0.125
|
factions_config.power_per_tick = tonumber(minetest.settings:get("power_per_tick")) or 2
|
||||||
factions_config.tick_time = tonumber(minetest.settings:get("tick_time")) or 60
|
factions_config.tick_time = tonumber(minetest.settings:get("tick_time")) or 60
|
||||||
factions_config.power_per_attack = tonumber(minetest.settings:get("power_per_attack")) or 10
|
factions_config.power_per_attack = tonumber(minetest.settings:get("power_per_attack")) or 10
|
||||||
factions_config.faction_name_max_length = tonumber(minetest.settings:get("faction_name_max_length")) or 50
|
factions_config.faction_name_max_length = tonumber(minetest.settings:get("faction_name_max_length")) or 50
|
||||||
|
@ -13,8 +13,8 @@ factions_config.maximum_faction_inactivity = tonumber(minetest.settings:get("max
|
||||||
factions_config.maximum_parcelless_faction_time = tonumber(minetest.settings:get("maximum_parcelless_faction_time")) or 10800
|
factions_config.maximum_parcelless_faction_time = tonumber(minetest.settings:get("maximum_parcelless_faction_time")) or 10800
|
||||||
factions_config.power = tonumber(minetest.settings:get("power")) or 0
|
factions_config.power = tonumber(minetest.settings:get("power")) or 0
|
||||||
factions_config.maxpower = tonumber(minetest.settings:get("maxpower")) or 0
|
factions_config.maxpower = tonumber(minetest.settings:get("maxpower")) or 0
|
||||||
factions_config.power_per_player = tonumber(minetest.settings:get("power_per_player")) or 0.125
|
factions_config.power_per_player = tonumber(minetest.settings:get("power_per_player")) or 1
|
||||||
factions_config.powermax_per_player = tonumber(minetest.settings:get("powermax_per_player")) or 2
|
factions_config.powermax_per_player = tonumber(minetest.settings:get("powermax_per_player")) or 12
|
||||||
factions_config.parcel_size = tonumber(minetest.settings:get("parcel_size")) or 16
|
factions_config.parcel_size = tonumber(minetest.settings:get("parcel_size")) or 16
|
||||||
factions_config.protection_depth_height_limit = minetest.settings:get_bool("protection_depth_height_limit") or true
|
factions_config.protection_depth_height_limit = minetest.settings:get_bool("protection_depth_height_limit") or true
|
||||||
factions_config.enable_power_per_player = minetest.settings:get_bool("power_per_playerb") or true
|
factions_config.enable_power_per_player = minetest.settings:get_bool("power_per_playerb") or true
|
||||||
|
@ -24,9 +24,9 @@ factions_config.protection_style = minetest.settings:get("protection_style") or
|
||||||
--[[
|
--[[
|
||||||
factions_config.protection_max_depth = -512
|
factions_config.protection_max_depth = -512
|
||||||
factions_config.protection_max_height = 10000
|
factions_config.protection_max_height = 10000
|
||||||
factions_config.power_per_parcel = 0.5
|
factions_config.power_per_parcel = 1
|
||||||
factions_config.power_per_death = 0.25
|
factions_config.power_per_death = 1
|
||||||
factions_config.power_per_tick = 0.125
|
factions_config.power_per_tick = 2
|
||||||
factions_config.tick_time = 60
|
factions_config.tick_time = 60
|
||||||
factions_config.power_per_attack = 10
|
factions_config.power_per_attack = 10
|
||||||
factions_config.faction_name_max_length = 50
|
factions_config.faction_name_max_length = 50
|
||||||
|
@ -35,8 +35,8 @@ factions_config.maximum_faction_inactivity = 604800
|
||||||
factions_config.maximum_parcelless_faction_time = 10800
|
factions_config.maximum_parcelless_faction_time = 10800
|
||||||
factions_config.power = 0
|
factions_config.power = 0
|
||||||
factions_config.maxpower = 0
|
factions_config.maxpower = 0
|
||||||
factions_config.power_per_player = 0.125
|
factions_config.power_per_player = 1
|
||||||
factions_config.powermax_per_player = 2
|
factions_config.powermax_per_player = 12
|
||||||
factions_config.parcel_size = 16
|
factions_config.parcel_size = 16
|
||||||
factions_config.protection_depth_height_limit = true
|
factions_config.protection_depth_height_limit = true
|
||||||
factions_config.enable_power_per_player = true
|
factions_config.enable_power_per_player = true
|
||||||
|
|
|
@ -5,11 +5,11 @@ protection_max_depth (Protection max depth) float 512
|
||||||
# The max height of protection from a parcel.
|
# The max height of protection from a parcel.
|
||||||
protection_max_height (Protection max height) float 10000
|
protection_max_height (Protection max height) float 10000
|
||||||
# Cost of power to claim a parcel of land.
|
# Cost of power to claim a parcel of land.
|
||||||
power_per_parcel (Power-per-parcel) float 0.5
|
power_per_parcel (Power-per-parcel) float 1
|
||||||
# Power lost on death.
|
# Power lost on death.
|
||||||
power_per_death (Power-per-death) float 0.25
|
power_per_death (Power-per-death) float 1
|
||||||
# Power regeneration rate.
|
# Power regeneration rate.
|
||||||
power_per_tick (Power-per-tick) float 0.125
|
power_per_tick (Power-per-tick) float 2
|
||||||
# Faction timer. This timer regenerates power.
|
# Faction timer. This timer regenerates power.
|
||||||
tick_time (Faction timer) float 60
|
tick_time (Faction timer) float 60
|
||||||
# Not in use.
|
# Not in use.
|
||||||
|
@ -27,9 +27,9 @@ power (Starting power) float 0
|
||||||
# Maximum power of a starting faction.
|
# Maximum power of a starting faction.
|
||||||
maxpower (Starting Maximum power) float 0
|
maxpower (Starting Maximum power) float 0
|
||||||
# How much power the players make.
|
# How much power the players make.
|
||||||
power_per_player (power-per-player) float 0.125
|
power_per_player (power-per-player) float 1
|
||||||
# How much max power is created per new player.
|
# How much max power is created per new player.
|
||||||
powermax_per_player (powermax-per-player) float 2
|
powermax_per_player (powermax-per-player) float 12
|
||||||
# parcel size
|
# parcel size
|
||||||
parcel_size (parcel-size) float 16
|
parcel_size (parcel-size) float 16
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user