Files
RoxyandGitHub b4671a3dea Fix blinking config (#3783)
## About The Pull Request

#3703 introduced a config value to enable blinking but it doesn't work
because it defaults to true and config entries are disabled by
commenting them out, but the lack of an entry will make it use its
default value meaning you can never actually disable blinking. This
switches it to be an option to disable blinking that defaults to false
instead

## Why It's Good For The Game

we need to steal their eyelids

## Proof Of Testing

yeag

## Changelog
🆑
config: fixed blinking config option
/🆑
2025-05-11 02:11:57 -07:00

16 lines
531 B
Plaintext

/datum/config_entry/flag/disable_blinking
default = FALSE
// blinking won't update without re-running the animate
/datum/config_entry/flag/disable_blinking/vv_edit_var(var_name, var_value)
. = ..()
if(var_name == NAMEOF(src, config_entry_value))
INVOKE_ASYNC(src, PROC_REF(update_blinkers))
/datum/config_entry/flag/disable_blinking/proc/update_blinkers()
for(var/mob/living/carbon/human/blinker in GLOB.alive_mob_list)
var/obj/item/organ/eyes/eyes = blinker.get_organ_slot(ORGAN_SLOT_EYES)
eyes?.blink()
CHECK_TICK