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 10:04:26 -05:00
committed by GitHub
parent ee7306cb5b
commit 45516f4741
89 changed files with 385 additions and 329 deletions
+2 -2
View File
@@ -436,7 +436,7 @@
user.visible_message(span_danger("[user] slams head-first into [hit], suffering major cranial trauma!"), span_userdanger("You slam head-first into [hit], and the world explodes around you!"))
user.adjustStaminaLoss(30, updating_health=FALSE)
user.adjustBruteLoss(30)
user.adjust_timed_status_effect(15 SECONDS, /datum/status_effect/confusion)
user.adjust_confusion(15 SECONDS)
if(prob(80))
user.gain_trauma(/datum/brain_trauma/mild/concussion)
user.playsound_local(get_turf(user), 'sound/weapons/flashbang.ogg', 100, TRUE, 8)
@@ -448,7 +448,7 @@
user.visible_message(span_danger("[user] slams hard into [hit], knocking [user.p_them()] senseless!"), span_userdanger("You slam hard into [hit], knocking yourself senseless!"))
user.adjustStaminaLoss(30, updating_health=FALSE)
user.adjustBruteLoss(10)
user.adjust_timed_status_effect(10 SECONDS, /datum/status_effect/confusion)
user.adjust_confusion(10 SECONDS)
user.Knockdown(30)
shake_camera(user, 3, 4)
+1 -1
View File
@@ -71,7 +71,7 @@
if(highest_strength != TURF_WET_LUBE)
return
slipped.set_timed_status_effect(8 SECONDS, /datum/status_effect/confusion, only_if_higher = TRUE)
slipped.set_confusion_if_lower(8 SECONDS)
/datum/component/wet_floor/proc/update_flags()
var/intensity