mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Compiler Fixes
Fixes in order: - Removes List of defines in misc_ch.dm that are no longer used - they're defined here for the casino prize dispenser, making these obsolete:  - Fixes relative pathing in mecha_parts_ch.dm - Fixes relative pathing in bodybag.dm - Fixes relative pathing in sahoc_ch.dm - Fixes relative pathing in toys_yw.dm - Fixes def_zone being defined when only the variable was needed in twohanded_ch.dm - Fixes relative pathing in trash_pile_vr_ch.dm - Fixes clip_mask being missing in misc_ch.dm - Fixes relative pathing in tesh_synth_facemask.dm - Fixes absolute path being indented in by one (typo?) - Fixes relative pathing in armor_yw.dm - Fixes unreachable parent call in audible_scream_ch.dm - Fixes VERM_LIZARDS being undefined when it wasn't defined, as VERM_LIZARDMEN was the variable being defined + used in mutants.dm - Removes two un-needed parent calls - these procs have no parent on /obj/structure - thecake_ch.dm - Fixes invalid kword nano_state in protean_blob.dm - Fixes relative pathing in drone_manufacturer_unify.dm - Fixes relative pathing in synx.dm - Removes arguments of drop_item that don't exist (port was from TG and had force_drop = 1 and src defined.) - vox.dm - Added vision_required = TRUE to fix proc argument missing - bigdragon_ch.dm - Added include_robo = TRUE to fix argument missing in demon_ch.dm - Fixes relative pathing in rakshasa_abilities.dm - Adds comment to solargrub.dm, unable to fix operator overload error yet. - Fixes relative pathing in sprite_accessories_extra_ch.dm - Fixes relative pathing in sprite_accessories_yw.dm - Fixes relative pathing in phase.dm - Fixes relative pathing in bluespacecoffee.dm - Fixes relative pathing in other_ch.dm - Fixes relative pathing and ambigious ! in living_ch.dm - Fixes relative pathing in custom_clothes_yw.dm - Fixes relative pathing in custom_rigs_yw.dm - Fixes relative pathing in MadokaSpear.dm - Comments out duplicate #includes in southern_cross.dm as vorestation.dme has them #include'd.
This commit is contained in:
@@ -10,44 +10,45 @@
|
||||
var/lstat
|
||||
var/mob/living/carbon/maskmaster
|
||||
|
||||
equipped()
|
||||
..()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if(istype(H) && H.wear_mask == src)
|
||||
canremove = 0
|
||||
maskmaster = H
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
/obj/item/clothing/mask/synthfacemask/equipped()
|
||||
..()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if(istype(H) && H.wear_mask == src)
|
||||
canremove = 0
|
||||
maskmaster = H
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
|
||||
dropped()
|
||||
canremove = 1
|
||||
maskmaster = null
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
return ..()
|
||||
/obj/item/clothing/mask/synthfacemask/dropped()
|
||||
canremove = 1
|
||||
maskmaster = null
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
return ..()
|
||||
|
||||
Destroy()
|
||||
. = ..()
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
/obj/item/clothing/mask/synthfacemask/Destroy()
|
||||
. = ..()
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
|
||||
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>"
|
||||
/obj/item/clothing/mask/synthfacemask/mob_can_equip(var/mob/living/carbon/human/user, var/slot, var/disable_warning = FALSE)
|
||||
if (!..())
|
||||
return 0
|
||||
update_icon()
|
||||
var/mob/living/carbon/human/H = loc
|
||||
if (maskmaster && maskmaster.stat == DEAD) icon_state = "synth_facemask_dead"
|
||||
else icon_state = "synth_facemask"
|
||||
if(istype(H)) H.update_inv_wear_mask()
|
||||
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
|
||||
|
||||
process()
|
||||
if(maskmaster && lstat != maskmaster.stat)
|
||||
lstat = maskmaster.stat
|
||||
update_icon()
|
||||
/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"
|
||||
if(istype(H)) H.update_inv_wear_mask()
|
||||
|
||||
/obj/item/clothing/mask/synthfacemask/process()
|
||||
if(maskmaster && lstat != maskmaster.stat)
|
||||
lstat = maskmaster.stat
|
||||
update_icon()
|
||||
lstat = maskmaster.stat
|
||||
|
||||
|
||||
//LOADOUT ITEM
|
||||
|
||||
Reference in New Issue
Block a user