Deletes misleading infinite define, adds defines for clearer status effect durations (#87842)

## About The Pull Request

1. Deletes `INFINTIE`, it is misleading and not at all a big number and
causes bugs
2. Adds `STATUS_EFFECT_PERMANENT` and `STATUS_EFFECT_NO_TICK` to make it
clearer what infinite status effects are
This commit is contained in:
MrMelbert
2024-11-12 17:24:27 +01:00
committed by GitHub
parent 155c343684
commit 239797a4ee
43 changed files with 134 additions and 117 deletions
@@ -66,7 +66,7 @@
/obj/item/laser_pointer/infinite_range
name = "infinite laser pointer"
desc = "Used to shine in the eyes of Cyborgs who need a bit of a push, this works through camera consoles."
max_range = INFINITE
max_range = INFINITY
/obj/item/laser_pointer/infinite_range/Initialize(mapload)
. = ..()
@@ -203,7 +203,7 @@
to_chat(user, span_warning("Your fingers can't press the button!"))
return
if(max_range != INFINITE)
if(max_range != INFINITY)
if(!IN_GIVEN_RANGE(target, user, max_range))
to_chat(user, span_warning("\The [target] is too far away!"))
return