nearsighted
Nearsighted
Vars | |
absolute_severity | Highest severity value in [var/absolute_sources]. |
---|---|
absolute_sources | Associated list of sources with their supplied severity level. Cannot be corrected with glasses. |
correctable_severity | Highest severity value in [var/correctable_sources]. |
correctable_sources | Associated list of sources with their supplied severity level. Can be corrected with glasses. |
update_signals | Static list of signals that, when received, we force an update to our nearsighted overlay |
Procs | |
get_severity | Gets the severity value that would be used when calculating impairment. |
set_severity | Sets the severity of a source. Recalculates the severity variables if there is a change |
should_be_nearsighted | Checks if we should be nearsighted currently, or if we should clear the overlay |
update_nearsighted_overlay | Updates our nearsightd overlay, either removing it if we have the trait or adding it if we don't |
update_nearsightedness | Signal proc for when we gain or lose TRAIT_NEARSIGHTED_CORRECTED - (temporarily) disable the overlay if we're correcting it |
Var Details
absolute_severity
Highest severity value in [var/absolute_sources].
absolute_sources
Associated list of sources with their supplied severity level. Cannot be corrected with glasses.
correctable_severity
Highest severity value in [var/correctable_sources].
correctable_sources
Associated list of sources with their supplied severity level. Can be corrected with glasses.
update_signals
Static list of signals that, when received, we force an update to our nearsighted overlay
Proc Details
get_severity
Gets the severity value that would be used when calculating impairment.
set_severity
Sets the severity of a source. Recalculates the severity variables if there is a change
should_be_nearsighted
Checks if we should be nearsighted currently, or if we should clear the overlay
update_nearsighted_overlay
Updates our nearsightd overlay, either removing it if we have the trait or adding it if we don't
update_nearsightedness
Signal proc for when we gain or lose TRAIT_NEARSIGHTED_CORRECTED - (temporarily) disable the overlay if we're correcting it