modsuit patch one (#63638)

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
Fikou
2021-12-27 14:47:59 -08:00
committed by GitHub
co-authored by MrMelbert
parent 4dbe04013f
commit f58848e2ec
27 changed files with 258 additions and 52 deletions
+16 -1
View File
@@ -29,6 +29,9 @@
QDEL_NULL(mod)
return ..()
/obj/item/clothing/head/helmet/space/mod/atom_destruction(damage_flag)
return mod.atom_destruction(damage_flag)
/obj/item/clothing/suit/armor/mod
name = "MOD chestplate"
desc = "A chestplate for a MODsuit."
@@ -56,6 +59,9 @@
QDEL_NULL(mod)
return ..()
/obj/item/clothing/suit/armor/mod/atom_destruction(damage_flag)
return mod.atom_destruction(damage_flag)
/obj/item/clothing/gloves/mod
name = "MOD gauntlets"
desc = "A pair of gauntlets for a MODsuit."
@@ -80,8 +86,12 @@
QDEL_NULL(mod)
return ..()
/// Replaces these gloves on the wearer with the overslot ones
/obj/item/clothing/gloves/mod/atom_destruction(damage_flag)
overslot.forceMove(drop_location())
overslot = null
return mod.atom_destruction(damage_flag)
/// Replaces these gloves on the wearer with the overslot ones
/obj/item/clothing/gloves/mod/proc/show_overslot()
if(!overslot)
return
@@ -114,6 +124,11 @@
QDEL_NULL(mod)
return ..()
/obj/item/clothing/shoes/mod/atom_destruction(damage_flag)
overslot.forceMove(drop_location())
overslot = null
return mod.atom_destruction(damage_flag)
/// Replaces these shoes on the wearer with the overslot ones
/obj/item/clothing/shoes/mod/proc/show_overslot()
if(!overslot)