mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Drowsiness refactor (#62104)
Creates two procs in /mob/status_procs for handling drowsiness changes (with check for negative values), and refactors all code to use these procs instead of assigning values to the mob's drowsiness themselves.
This commit is contained in:
@@ -398,7 +398,7 @@
|
||||
to_chat(M, span_hypnophrase("The light makes you feel oddly relaxed..."))
|
||||
M.add_confusion(min(M.get_confusion() + 10, 20))
|
||||
M.dizziness += min(M.dizziness + 10, 20)
|
||||
M.drowsyness += min(M.drowsyness + 10, 20)
|
||||
M.adjust_drowsyness(min(M.drowsyness+10, 20))
|
||||
M.apply_status_effect(STATUS_EFFECT_PACIFY, 100)
|
||||
else
|
||||
M.apply_status_effect(/datum/status_effect/trance, 200, TRUE)
|
||||
@@ -412,7 +412,7 @@
|
||||
to_chat(M, span_notice("Such a pretty light..."))
|
||||
M.add_confusion(min(M.get_confusion() + 4, 20))
|
||||
M.dizziness += min(M.dizziness + 4, 20)
|
||||
M.drowsyness += min(M.drowsyness + 4, 20)
|
||||
M.adjust_drowsyness(min(M.drowsyness+4, 20))
|
||||
M.apply_status_effect(STATUS_EFFECT_PACIFY, 40)
|
||||
|
||||
#undef CONFUSION_STACK_MAX_MULTIPLIER
|
||||
|
||||
Reference in New Issue
Block a user