diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm
index d5b79092f46..1c10aa36ac5 100644
--- a/code/modules/clothing/spacesuits/rig/rig.dm
+++ b/code/modules/clothing/spacesuits/rig/rig.dm
@@ -76,7 +76,7 @@
var/datum/effect/effect/system/spark_spread/spark_system
/obj/item/weapon/rig/examine()
- usr << "This is a \icon[mob_icon][src.name]."
+ usr << "This is \icon[src][src.name]."
usr << "[src.desc]"
if(wearer)
for(var/obj/item/piece in list(helmet,gloves,chest,boots))
@@ -182,13 +182,13 @@
sealing = 1
if(!seal_target && !suit_is_deployed())
- M << "The suit flashes an error light. It can't function properly without being fully deployed."
+ M.visible_message("[M]'s suit flashes an error light.","Your suit flashes an error light. It can't function properly without being fully deployed.")
failed_to_seal = 1
if(!failed_to_seal)
if(!instant)
- M << "With a quiet hum, the suit begins running checks and adjusting components."
+ M.visible_message("[M]'s suit emits a quiet hum as it begins to adjust its seals.","With a quiet hum, the suit begins running checks and adjusting components.")
if(!do_after(M,SEAL_DELAY))
if(M) M << "You must remain still while the suit is adjusting the components."
failed_to_seal = 1
@@ -207,12 +207,11 @@
continue
if(!istype(M) || !istype(piece) || !istype(compare_piece) || !msg_type)
- if(!failed_to_seal)
- if(M) M << "You must remain still while the suit is adjusting the components."
+ if(M) M << "You must remain still while the suit is adjusting the components."
failed_to_seal = 1
break
- if(M.back == src && piece == compare_piece)
+ if(!failed_to_seal && M.back == src && piece == compare_piece)
if(!instant)
if(!do_after(M,SEAL_DELAY))
@@ -236,11 +235,11 @@
if(!seal_target)
if(flags & AIRTIGHT)
helmet.flags |= AIRTIGHT
- helmet.flags_inv |= (HIDEEYES|HIDEFACE)
+ helmet.flags_inv |= (HIDEEYES|HIDEFACE|HIDEMASK)
helmet.body_parts_covered |= (FACE|EYES)
else
helmet.flags &= ~AIRTIGHT
- helmet.flags_inv &= ~(HIDEEYES|HIDEFACE)
+ helmet.flags_inv &= ~(HIDEEYES|HIDEFACE|HIDEMASK)
helmet.body_parts_covered &= ~(FACE|EYES)
helmet.update_light(wearer)
else
@@ -450,9 +449,6 @@
//TODO: Maybe consider a cache for this (use mob_icon as blank canvas, use suit icon overlay).
overlays.Cut()
- if(mob_icon)
- mob_icon.overlays.Cut()
-
if(!mob_icon || update_mob_icon)
var/species_icon = 'icons/mob/rig_back.dmi'
// Since setting mob_icon will override the species checks in
@@ -462,10 +458,8 @@
mob_icon = image("icon" = species_icon, "icon_state" = "[icon_state]")
if(installed_modules.len)
-
for(var/obj/item/rig_module/module in installed_modules)
if(module.suit_overlay)
- mob_icon.overlays += image("icon" = 'icons/mob/rig_modules.dmi', "icon_state" = "[module.suit_overlay]")
chest.overlays += image("icon" = 'icons/mob/rig_modules.dmi', "icon_state" = "[module.suit_overlay]", "dir" = SOUTH)
if(wearer)
@@ -492,10 +486,9 @@
user << "Unauthorized user. Access denied."
return 0
- else if(user.loc && user.loc.loc && istype(user.loc.loc,/obj/item/rig_module/ai_container))
- if(!ai_override_enabled)
- user << "Synthetic access disabled. Please consult hardware provider."
- return 0
+ else if(!ai_override_enabled)
+ user << "Synthetic access disabled. Please consult hardware provider."
+ return 0
return 1