mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
fixes signal circuit not working | refactors name of timer cooldown macros to be inherent, also docs them (#79367)
## About The Pull Request Title ## Why It's Good For The Game Less headache in the future for a macro thats not really obvious in what it does ## Changelog 🆑 fix: signals in circuits now actually function /🆑
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
switch(action)
|
||||
if("signal")
|
||||
if(cooldown_length > 0)
|
||||
if(TIMER_COOLDOWN_CHECK(src, COOLDOWN_SIGNALLER_SEND))
|
||||
if(TIMER_COOLDOWN_RUNNING(src, COOLDOWN_SIGNALLER_SEND))
|
||||
balloon_alert(ui.user, "recharging!")
|
||||
return
|
||||
TIMER_COOLDOWN_START(src, COOLDOWN_SIGNALLER_SEND, cooldown_length)
|
||||
@@ -135,7 +135,7 @@
|
||||
return
|
||||
if(!ishuman(user))
|
||||
return
|
||||
if(TIMER_COOLDOWN_CHECK(src, COOLDOWN_SIGNALLER_SEND))
|
||||
if(TIMER_COOLDOWN_RUNNING(src, COOLDOWN_SIGNALLER_SEND))
|
||||
balloon_alert(user, "still recharging...")
|
||||
return
|
||||
TIMER_COOLDOWN_START(src, COOLDOWN_SIGNALLER_SEND, 1 SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user