Skip to content

Commit

Permalink
Insecure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
i1yadobr committed Oct 11, 2024
1 parent f0a14cc commit bde57ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions code/modules/clothing/head.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
var/cache_key = "[light_overlay]_[species_name]"
if(on && light_overlay_cache[cache_key] && slot == slot_head_str)
ret.AddOverlays(light_overlay_cache[cache_key])
if(item_state_slots && item_state_slots[slot])
ret.icon_state = item_state_slots[slot]
else
ret.icon_state = icon_state
return ret

/obj/item/clothing/head/attack_self(mob/user)
Expand Down
5 changes: 1 addition & 4 deletions code/modules/clothing/spacesuits/spacesuits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
/obj/item/clothing/head/helmet/space
name = "Space helmet"
icon_state = "space"
item_state_slots = list(
slot_l_hand_str = "s_helmet",
slot_r_hand_str = "s_helmet",
)
item_state = "space"
desc = "A special helmet designed for work in a hazardous, low-pressure environment."
item_flags = ITEM_FLAG_STOPPRESSUREDAMAGE | ITEM_FLAG_THICKMATERIAL | ITEM_FLAG_AIRTIGHT
flags_inv = BLOCKHAIR
Expand Down

0 comments on commit bde57ed

Please sign in to comment.