mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Process certain status effects using a new "priority effects" subsystem (#89076)
This commit is contained in:
@@ -21,6 +21,10 @@
|
||||
if(STATUS_EFFECT_NORMAL_PROCESS)
|
||||
if(tick_speed < SSprocessing.wait)
|
||||
TEST_FAIL("Status effect [checking] has tick_interval set to [tick_speed], which is faster than SSprocessing can tick ([SSprocessing.wait]).")
|
||||
if(STATUS_EFFECT_PRIORITY)
|
||||
var/priority_wait = world.tick_lag * SSpriority_effects.wait // SSpriority_effects has the SS_TICKER flag, so its wait is in ticks, so we have to convert it to deciseconds.
|
||||
if(tick_speed < priority_wait)
|
||||
TEST_FAIL("Status effect [checking] has tick_interval set to [tick_speed], which is faster than SSpriority_effects can tick ([priority_wait]).")
|
||||
else
|
||||
TEST_FAIL("Invalid processing speed for status effect [checking] : [initial(checking.processing_speed)]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user