Merge pull request #1675 from Fox-McCloud/welding-gas

Adds in Welding Gas Mask
This commit is contained in:
TheDZD
2015-08-09 19:31:53 -04:00
4 changed files with 54 additions and 0 deletions
+44
View File
@@ -14,6 +14,50 @@
"Vox" = 'icons/mob/species/vox/mask.dmi'
)
// **** Welding gas mask ****
/obj/item/clothing/mask/gas/welding
name = "welding mask"
desc = "A gas mask with built in welding goggles and face shield. Looks like a skull, clearly designed by a nerd."
icon_state = "weldingmask"
item_state = "weldingmask"
m_amt = 3000
g_amt = 1000
var/up = 0
flash_protect = 2
tint = 2
armor = list(melee = 10, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0)
origin_tech = "materials=2;engineering=2"
action_button_name = "Toggle Welding Helmet"
/obj/item/clothing/mask/gas/welding/attack_self()
toggle()
/obj/item/clothing/mask/gas/welding/verb/toggle()
set category = "Object"
set name = "Adjust welding mask"
set src in usr
if(usr.canmove && !usr.stat && !usr.restrained())
if(src.up)
src.up = !src.up
src.flags |= (MASKCOVERSEYES)
flags_inv |= (HIDEEYES)
icon_state = initial(icon_state)
usr << "You flip the [src] down to protect your eyes."
flash_protect = 2
tint = 2
else
src.up = !src.up
src.flags &= ~(MASKCOVERSEYES)
flags_inv &= ~(HIDEEYES)
icon_state = "[initial(icon_state)]up"
usr << "You push the [src] up out of your face."
flash_protect = 0
tint = 0
usr.update_inv_wear_mask() //so our mob-overlays update
//Bane gas mask
/obj/item/clothing/mask/banemask
name = "bane mask"
@@ -89,4 +89,14 @@
build_type = PROTOLATHE
materials = list("$metal" = 4000, "$bananium" = 1000)
build_path = /obj/item/weapon/bikehorn/airhorn
category = list("Equipment")
/datum/design/welding_mask
name = "Welding Gas Mask"
desc = "A gas mask with built in welding goggles and face shield. Looks like a skull, clearly designed by a nerd."
id = "weldingmask"
req_tech = list("materials" = 2, "engineering" = 2)
build_type = PROTOLATHE
materials = list("$metal" = 4000, "$glass" = 1000)
build_path = /obj/item/clothing/mask/gas/welding
category = list("Equipment")