Adds macros to help with common set_- and adjust_timed_status_effect uses (#69951)

* Adds helpers for status effect application
This commit is contained in:
MrMelbert
2022-09-24 11:04:26 -04:00
committed by GitHub
parent ee7306cb5b
commit 45516f4741
89 changed files with 385 additions and 329 deletions
+1 -1
View File
@@ -489,7 +489,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/start/new_player)
var/mob/living/carbon/spawned_carbon = hangover_mob
spawned_carbon.set_resting(TRUE, silent = TRUE)
if(prob(50))
spawned_carbon.adjust_timed_status_effect(rand(30 SECONDS, 40 SECONDS), /datum/status_effect/drugginess)
spawned_carbon.adjust_drugginess(rand(30 SECONDS, 40 SECONDS))
else
spawned_carbon.adjust_drunk_effect(rand(15, 25))
spawned_carbon.adjust_disgust(rand(5, 55)) //How hungover are you?