mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user