okay, let's watch the population drop - adds a config option that makes all stamina buffer actions free (TG-style gameplay) (#7608)

* "sTAM BAD REE" is like sandpaper on my nerves. so let's turn the server into a TG clone for a week and watch as the population dwindles to nothing just to prove a point!

* and the config, too
This commit is contained in:
deathride58
2018-11-09 22:10:20 -05:00
committed by kevinz000
parent b745f56eeb
commit cbc21fe8db
5 changed files with 16 additions and 5 deletions

View File

@@ -312,6 +312,7 @@
staminas = new /obj/screen/staminas()
infodisplay += staminas
if(!CONFIG_GET(flag/disable_stambuffer))
staminabuffer = new /obj/screen/staminabuffer()
infodisplay += staminabuffer
//END OF CIT CHANGES

View File

@@ -350,3 +350,5 @@
/datum/config_entry/number/monkeycap
config_entry_value = 64
min_val = 0
/datum/config_entry/flag/disable_stambuffer

View File

@@ -28,6 +28,9 @@
. = ..()
if(CONFIG_GET(flag/disable_stambuffer))
togglesprint()
AddComponent(/datum/component/redirect, list(COMSIG_COMPONENT_CLEAN_ACT = CALLBACK(src, .proc/clean_blood)))

View File

@@ -542,3 +542,6 @@ ROUNDSTART_TRAITS
## A cap on how many monkeys may be created via monkey cubes
MONKEYCAP 64
## Uncomment to use TG-style combat
#DISABLE_STAMBUFFER

View File

@@ -1,6 +1,8 @@
/mob/living/carbon/adjustStaminaLossBuffered(amount, updating_stamina = 1)
if(status_flags & GODMODE)
return 0
if(CONFIG_GET(flag/disable_stambuffer))
return
var/directstamloss = (bufferedstam + amount) - stambuffer
if(directstamloss > 0)
adjustStaminaLoss(directstamloss)