Skip to content

Commit

Permalink
if cats not glowing
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 2, 2024
1 parent 4679539 commit 0814287
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/modules/mob/living/simple_animal/friendly/cat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
var/current_tick_amount = 0
var/last_tick_amount = 0
var/fail_to_receive = 0
var/glow_strength

/mob/living/simple_animal/pet/cat/Initialize()
. = ..()
Expand Down Expand Up @@ -190,8 +191,7 @@
update_glow()

/mob/living/simple_animal/pet/cat/proc/update_glow()
var/glow_strength = 0
remove_filter("ray_cat_glow")
var/old_glow_strength = glow_strength
switch(radiation_count)
if(-INFINITY to RAD_LEVEL_NORMAL)
glow_strength = 1
Expand All @@ -205,7 +205,10 @@
glow_strength = 5
if(RAD_LEVEL_CRITICAL to INFINITY)
glow_strength = 6
add_filter("ray_cat_glow", 2, drop_shadow_filter(x = 0, y = -1, size = glow_strength, color = RAD_GLOW_COLOR))
if((old_glow_strength != glow_strength) && (glow_strength > 1))
src.add_filter("ray_cat_glow", 2, list("type" = "outline", "color" = RAD_GLOW_COLOR, "size" = glow_strength))
if(glow_strength <= 1)
src.remove_filter("ray_cat_glow")

/mob/living/simple_animal/pet/cat/Life()
radiation_count -= radiation_count/RAD_MEASURE_SMOOTHING
Expand Down

0 comments on commit 0814287

Please sign in to comment.