mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Upport Teshari Synth Face mask from Chompstation (#8238)
Co-authored-by: Reo Lozzot <84661000+ReoDaProtovali@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -2,12 +2,15 @@
|
||||
/obj/item/clothing/mask/synthfacemask
|
||||
name = "Synth Face"
|
||||
desc = "A round dark muzzle made of LEDs."
|
||||
body_parts_covered = EYES //CHOMPedit, though isnt this chomp exclusive item?
|
||||
flags = PHORONGUARD //Since it cant easily be removed...
|
||||
item_flags = AIRTIGHT | FLEXIBLEMATERIAL | BLOCK_GAS_SMOKE_EFFECT //This should make it properly work as a mask... and allow you to eat stuff through it!
|
||||
body_parts_covered = FACE|EYES
|
||||
icon = 'icons/mob/species/teshari/synth_facemask.dmi'
|
||||
icon_override = 'icons/mob/species/teshari/synth_facemask.dmi'
|
||||
icon_state = "synth_facemask"
|
||||
origin_tech = list(TECH_ILLEGAL = 1)
|
||||
var/lstat
|
||||
var/visor_state = "Neutral" //Separating this from lstat so that it could potentially be used for an override system or something
|
||||
var/mob/living/carbon/maskmaster
|
||||
|
||||
/obj/item/clothing/mask/synthfacemask/equipped()
|
||||
@@ -35,20 +38,26 @@
|
||||
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>"
|
||||
to_chat(user, "<span class='warning'>You must have a compatible robotic head to install this upgrade.</span>")
|
||||
return 0
|
||||
|
||||
/obj/item/clothing/mask/synthfacemask/update_icon()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if (maskmaster && maskmaster.stat == DEAD) icon_state = "synth_facemask_dead"
|
||||
else icon_state = "synth_facemask"
|
||||
switch(visor_state)
|
||||
if (DEAD)
|
||||
icon_state = "synth_facemask_dead"
|
||||
else
|
||||
icon_state = "synth_facemask"
|
||||
if(istype(H)) H.update_inv_wear_mask()
|
||||
|
||||
/obj/item/clothing/mask/synthfacemask/process()
|
||||
if(maskmaster && lstat != maskmaster.stat)
|
||||
lstat = maskmaster.stat
|
||||
visor_state = "Neutral" //This does nothing at the moment, but it's there incase anyone wants to add more states.
|
||||
//Maybe a verb that sets an emote override here
|
||||
if(lstat == DEAD)
|
||||
visor_state = DEAD
|
||||
update_icon()
|
||||
lstat = maskmaster.stat
|
||||
|
||||
|
||||
//LOADOUT ITEM
|
||||
@@ -61,4 +70,4 @@
|
||||
|
||||
/datum/gear/mask/synthface/New()
|
||||
..()
|
||||
gear_tweaks = list(gear_tweak_free_color_choice)
|
||||
gear_tweaks += list(gear_tweak_free_color_choice)
|
||||
|
||||
Reference in New Issue
Block a user