Headset Fix (#10637)

This commit is contained in:
Geeves
2020-11-23 13:14:15 +01:00
committed by GitHub
parent 5e7f18626c
commit 9b05856bbc
2 changed files with 11 additions and 2 deletions
+5 -2
View File
@@ -106,12 +106,12 @@
else
l_ear = headset //Department headset
if(l_ear)
equip_item(H, l_ear, slot_l_ear)
equip_item(H, l_ear, slot_l_ear, TRUE)
return
// Used to equip an item to the mob. Mainly to prevent copypasta for collect_not_del.
/datum/outfit/proc/equip_item(mob/living/carbon/human/H, path, slot)
/datum/outfit/proc/equip_item(mob/living/carbon/human/H, path, slot, var/set_no_remove = FALSE)
var/obj/item/I
if(isnum(path)) //Check if parameter is not numeric. Must be a path, list of paths or name of a gear datum
@@ -126,6 +126,9 @@
else
I = new path(H) //As fallback treat it as a path
if(set_no_remove)
I.autodrobe_no_remove = TRUE
if(collect_not_del)
H.equip_or_collect(I, slot)
else