mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
43
code/modules/clothing/masks/tesh_synth_facemask.dm
Normal file
43
code/modules/clothing/masks/tesh_synth_facemask.dm
Normal file
@@ -0,0 +1,43 @@
|
||||
//TESHARI FACE MASK //Defning all the procs in one go
|
||||
/obj/item/clothing/mask/synthfacemask
|
||||
name = "Synth Face"
|
||||
desc = "A round dark muzzle made of LEDs."
|
||||
body_parts_covered = FACE|EYES
|
||||
icon = 'icons/mob/species/seromi/synth_facemask.dmi'
|
||||
icon_override = 'icons/mob/species/seromi/synth_facemask.dmi'
|
||||
icon_state = "synth_facemask"
|
||||
origin_tech = list(TECH_ILLEGAL = 1)
|
||||
|
||||
equipped()
|
||||
..()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if(istype(H) && H.wear_mask == src)
|
||||
canremove = 0
|
||||
dropped()
|
||||
canremove = 1
|
||||
return ..()
|
||||
mob_can_equip(var/mob/living/carbon/human/user, var/slot)
|
||||
if (!..())
|
||||
return 0
|
||||
if(istype(user))
|
||||
var/obj/item/organ/external/E = user.organs_by_name[BP_HEAD]
|
||||
if(istype(E) && (E.robotic >= ORGAN_ROBOT))
|
||||
return 1
|
||||
user << "<span class='warning'>You must have a compatible robotic head to install this upgrade.</span>"
|
||||
return 0
|
||||
update_icon()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if (H.stat == DEAD) icon_state = "synth_facemask_dead"
|
||||
if(istype(H)) H.update_inv_wear_mask()
|
||||
|
||||
//LOADOUT ITEM
|
||||
/datum/gear/mask/synthface/
|
||||
display_name = "Synth Facemask(Tesh)"
|
||||
path = /obj/item/clothing/mask/synthfacemask
|
||||
sort_category = "Xenowear"
|
||||
whitelisted = SPECIES_TESHARI
|
||||
cost = 1
|
||||
|
||||
/datum/gear/mask/synthface/New()
|
||||
..()
|
||||
gear_tweaks = list(gear_tweak_free_color_choice)
|
||||
Reference in New Issue
Block a user