Skip to content

Commit

Permalink
Changed all TRAIT_NIGTH_VISION into TRAIT_NIGHT_VISION_WEAK for great…
Browse files Browse the repository at this point in the history
…er clarity of code
  • Loading branch information
wikimody committed Jan 12, 2025
1 parent 912b6c3 commit c831927
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/traits/declarations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
#define TRAIT_ALCOHOL_TOLERANCE "alcohol_tolerance"
#define TRAIT_AGEUSIA "ageusia"
#define TRAIT_HEAVY_SLEEPER "heavy_sleeper"
#define TRAIT_NIGHT_VISION "night_vision"
#define TRAIT_NIGHT_VISION_WEAK "night_vision"
#define TRAIT_LIGHT_STEP "light_step"
#define TRAIT_SPIRITUAL "spiritual"
#define TRAIT_VORACIOUS "voracious"
Expand Down
2 changes: 1 addition & 1 deletion code/_globalvars/traits/_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"TRAIT_ALCOHOL_TOLERANCE" = TRAIT_ALCOHOL_TOLERANCE,
"TRAIT_AGEUSIA" = TRAIT_AGEUSIA,
"TRAIT_HEAVY_SLEEPER" = TRAIT_HEAVY_SLEEPER,
"TRAIT_NIGHT_VISION" = TRAIT_NIGHT_VISION,
"TRAIT_NIGHT_VISION_WEAK" = TRAIT_NIGHT_VISION_WEAK,
"TRAIT_LIGHT_STEP" = TRAIT_LIGHT_STEP,
"TRAIT_SPIRITUAL" = TRAIT_SPIRITUAL,
"TRAIT_VORACIOUS" = TRAIT_VORACIOUS,
Expand Down
2 changes: 1 addition & 1 deletion code/datums/traits/positive_quirk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
desc = "You can see slightly more clearly in full darkness than most people."
icon = "eye"
value = 1
mob_trait = TRAIT_NIGHT_VISION
mob_trait = TRAIT_NIGHT_VISION_WEAK
gain_text = "<span class='notice'>The shadows seem a little less dark.</span>"
lose_text = "<span class='danger'>Everything seems a little darker.</span>"
medical_record_text = "Patient possesses a better than average retina."
Expand Down
2 changes: 1 addition & 1 deletion code/modules/surgery/organs/eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
human_owner.eye_color = eye_color
else
eye_color = human_owner.eye_color
if(HAS_TRAIT(human_owner, TRAIT_NIGHT_VISION) && !lighting_alpha)
if(HAS_TRAIT(human_owner, TRAIT_NIGHT_VISION_WEAK) && !lighting_alpha)
lighting_alpha = LIGHTING_PLANE_ALPHA_NV_TRAIT
eye_owner.update_tint()
owner.update_sight()
Expand Down

0 comments on commit c831927

Please sign in to comment.