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:
Zephyr
2023-10-31 10:58:48 +00:00
committed by GitHub
parent 743bb4ac8a
commit 9ebf319e6a
21 changed files with 39 additions and 35 deletions
+2 -2
View File
@@ -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)