Skip to content

Commit

Permalink
Lamp Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-023 committed Sep 21, 2024
1 parent 91ac64c commit 468629a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,34 @@ Applied by gun suicide and high impact bullet executions, removed by rejuvenate,
overlays_standing[SUIT_GARB_LAYER] = IMG
apply_overlay(SUIT_GARB_LAYER)

if(istype(wear_suit, /obj/item/clothing/suit/marine))
var/obj/item/clothing/suit/marine/marine_armor = wear_suit
if(marine_armor.flags_marine_armor & ARMOR_SQUAD_OVERLAY)
if(assigned_squad && assigned_squad.equipment_color && assigned_squad.use_stripe_overlay)
var/leader = assigned_squad.squad_leader
var/image/squad_overlay = image(marine_armor.squad_overlay_icon, icon_state = "std-armor")
if(leader == src)
squad_overlay = image(marine_armor.squad_overlay_icon, icon_state = "sql-armor")
squad_overlay.layer = -SUIT_SQUAD_LAYER
squad_overlay.alpha = assigned_squad.armor_alpha
squad_overlay.color = assigned_squad.equipment_color
overlays_standing[SUIT_SQUAD_LAYER] = squad_overlay
apply_overlay(SUIT_SQUAD_LAYER)

if(length(marine_armor.armor_overlays))
var/image/K
var/image/IMG
for(var/i in marine_armor.armor_overlays)
K = marine_armor.armor_overlays[i]
if(K)
if(!IMG)
IMG = image(K.icon,src,K.icon_state, "layer"= -SUIT_GARB_LAYER)
else
IMG.overlays += image(K.icon,src,K.icon_state, "layer"= -SUIT_GARB_LAYER)
if(IMG)
overlays_standing[SUIT_GARB_LAYER] = IMG
apply_overlay(SUIT_GARB_LAYER)

update_tail_showing()
else
update_tail_showing()
Expand Down

0 comments on commit 468629a

Please sign in to comment.