after equip fixes (#7557)

This commit is contained in:
Geeves
2019-12-03 19:31:01 +02:00
committed by Werner
parent 145432cf7a
commit a9bfdd9ae1
4 changed files with 19 additions and 5 deletions

View File

@@ -72,8 +72,10 @@
zombie_type = "Tajara Zombie"
/datum/species/tajaran/before_equip(var/mob/living/carbon/human/H)
/datum/species/tajaran/after_equip(var/mob/living/carbon/human/H)
. = ..()
if(H.shoes)
return
var/obj/item/clothing/shoes/sandal/S = new /obj/item/clothing/shoes/sandal(H)
if(H.equip_to_slot_or_del(S,slot_shoes))
S.autodrobe_no_remove = 1

View File

@@ -90,8 +90,10 @@
zombie_type = "Unathi Zombie"
/datum/species/unathi/before_equip(var/mob/living/carbon/human/H)
/datum/species/unathi/after_equip(var/mob/living/carbon/human/H)
. = ..()
if(H.shoes)
return
var/obj/item/clothing/shoes/sandal/S = new /obj/item/clothing/shoes/sandal(H)
if(H.equip_to_slot_or_del(S,slot_shoes))
S.autodrobe_no_remove = 1

View File

@@ -122,13 +122,17 @@
/datum/species/bug/before_equip(var/mob/living/carbon/human/H)
. = ..()
H.gender = NEUTER
var/obj/item/clothing/shoes/sandal/S = new /obj/item/clothing/shoes/sandal(H)
if(H.equip_to_slot_or_del(S,slot_shoes))
S.autodrobe_no_remove = 1
var/obj/item/clothing/mask/breath/M = new /obj/item/clothing/mask/breath(H)
if(H.equip_to_slot_or_del(M, slot_wear_mask))
M.autodrobe_no_remove = 1
/datum/species/bug/after_equip(var/mob/living/carbon/human/H)
if(H.shoes)
return
var/obj/item/clothing/shoes/sandal/S = new /obj/item/clothing/shoes/sandal(H)
if(H.equip_to_slot_or_del(S,slot_shoes))
S.autodrobe_no_remove = 1
/datum/species/bug/equip_later_gear(var/mob/living/carbon/human/H)
if(istype(H.get_equipped_item(slot_back), /obj/item/storage/backpack))
H.equip_to_slot_or_del(new /obj/item/reagent_containers/inhaler/phoron_special(H.back), slot_in_backpack)