mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fixes Welding
Welding in a RIG/spacesuit is currently broken. This PR fixes it. It was broken for two reasons. First, the proc to get flash protection assumed the RIG was a clothing item, and as such thought it had variables it doesn't. So it would runtime. Second, spacesuit helmets lost their flash protection for some reason. This has been reversed.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
species_restricted = list("exclude","Diona")
|
||||
preserve_item = 1
|
||||
phoronproof = 1
|
||||
flash_protection = FLASH_PROTECTION_NONE
|
||||
flash_protection = FLASH_PROTECTION_MAJOR
|
||||
|
||||
var/obj/machinery/camera/camera
|
||||
var/list/camera_networks
|
||||
|
||||
@@ -715,8 +715,6 @@
|
||||
add_clothing_protection(glasses)
|
||||
if(istype(src.wear_mask, /obj/item/clothing/mask))
|
||||
add_clothing_protection(wear_mask)
|
||||
if(istype(back,/obj/item/weapon/rig))
|
||||
add_clothing_protection(back)
|
||||
|
||||
return flash_protection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user