config based
This commit is contained in:
@@ -1,18 +1,4 @@
|
||||
// Stamina Buffer
|
||||
/// Stamina buffer amount
|
||||
#define STAMINA_BUFFER_CAPACITY 30
|
||||
/// Stamina buffer regen per decisecond
|
||||
#define STAMINA_BUFFER_REGEN_PER_SECOND 1
|
||||
/// Stamina buffer regen multiplier while in combat mode
|
||||
#define STAMINA_BUFFER_REGEN_PER_SECOND_COMBAT 3
|
||||
/// Penalty time after an action (clickdelay counting action) ends for stamina buffer regeneration
|
||||
#define STAMINA_BUFFER_REGEN_ACTION_PENALTY_TIME 8
|
||||
/// Penalty regen multiplier
|
||||
#define STAMINA_BUFFER_REGEN_ACTION_PENALTY_FACTOR 0.5
|
||||
/// percent of regen to take away at stamcrit
|
||||
#define STAMINA_BUFFER_STAMCRIT_REGEN_PERCENT_PENALTY 0.75
|
||||
/// percent of capacity to take away at stamcrit
|
||||
#define STAMINA_BUFFER_STAMCRIT_CAPACITY_PERCENT_PENALTY 0.5
|
||||
|
||||
// Standard amounts for stamina usage
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#define CONFIG_SET(X, Y) global.config.Set(/datum/config_entry/##X, ##Y)
|
||||
/// Gets the datum of the object, for when editing a const define.
|
||||
#define CONFIG_GET_ENTRY(X) global.config.GetEntryDatum(/datum/config_entry/##X)
|
||||
/// Caches an entry in the proc
|
||||
#define CONFIG_CACHE_ENTRY_AND_FETCH_VALUE(X, varname) var/static/datum/config_entry/##X/entrycache_##varname;if(!entrycache_##varname){entrycache_##varname=CONFIG_GET_ENTRY(##X);};var/##varname=entrycache_##varname.config_entry_value
|
||||
|
||||
#define CONFIG_MAPS_FILE "maps.txt"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user