[MIRROR] Limits when Icebox's snow will alert you [MDB IGNORE] (#17746)

* Limits when Icebox's snow will alert you (#71485)

## About The Pull Request
Limits when you get alerted to icebox, to when you would need to know it

When youre in a mining area
If you're a miner
and If you can see the snow outside
then it will alert you, otherwise it hides the alert
and ghosts always get alerted
## Why It's Good For The Game
Getting alerted about incoming storms is annoying when you're indoors
for 80-100% of the shift, and just serves to clutter chat. Also, the way
its set up is modular and can be applied to any other weather condition
you'd want
## Changelog
🆑
fix: limits how much you get alerted by icebox storms
/🆑

Co-authored-by: Candycaneannihalator <candycane@ thisisnotarealaddr.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
Co-authored-by: etherware-novice <candy@ notarealaddr.com>

* Limits when Icebox's snow will alert you

Co-authored-by: texan-down-under <73374039+etherware-novice@users.noreply.github.com>
Co-authored-by: Candycaneannihalator <candycane@ thisisnotarealaddr.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
Co-authored-by: etherware-novice <candy@ notarealaddr.com>
This commit is contained in:
SkyratBot
2022-11-25 14:22:07 +00:00
committed by GitHub
co-authored by Candycaneannihalator Mothblocks etherware-novice texan-down-under
parent 5ca56b4ed8
commit abd6980402
5 changed files with 55 additions and 27 deletions
@@ -26,6 +26,14 @@
. = ..()
RegisterSignal(src, COMSIG_TOOL_ATOM_ACTED_PRIMARY(tool_behaviour), PROC_REF(on_analyze))
/obj/item/analyzer/equipped(mob/user, slot, initial)
. = ..()
ADD_TRAIT(user, TRAIT_DETECT_STORM, CLOTHING_TRAIT)
/obj/item/analyzer/dropped(mob/user, silent)
. = ..()
REMOVE_TRAIT(user, TRAIT_DETECT_STORM, CLOTHING_TRAIT)
/obj/item/analyzer/examine(mob/user)
. = ..()
. += span_notice("Right-click [src] to open the gas reference.")