getting micro to work again

This commit is contained in:
Dip
2020-10-02 19:46:12 -03:00
parent 4d39d175c4
commit 461cd2b042
4 changed files with 67 additions and 76 deletions
+1 -4
View File
@@ -1,5 +1,5 @@
/datum/element/mob_holder
element_flags = ELEMENT_BESPOKE
element_flags = ELEMENT_BESPOKE|ELEMENT_DETACH
id_arg_index = 2
var/worn_state
var/alt_worn
@@ -54,9 +54,6 @@
"<span class='userdanger'>[user] picks you up!</span>")
to_chat(user, "<span class='notice'>You pick [source] up.</span>")
source.drop_all_held_items()
if(ishuman(source)) //Slightly hacky edit to at least not disable the micro holding system entirely
var/obj/item/clothing/head/mob_holder/micro/holder = new(get_turf(source), source, worn_state, alt_worn, right_hand, left_hand, inv_slots)
return holder
var/obj/item/clothing/head/mob_holder/holder = new(get_turf(source), source, worn_state, alt_worn, right_hand, left_hand, inv_slots)
if(proctype)
INVOKE_ASYNC(src, proctype, source, holder, user)
@@ -40,6 +40,7 @@
. = ..()
if(!CONFIG_GET(flag/disable_human_mood))
AddComponent(/datum/component/mood)
AddElement(/datum/element/mob_holder/micro, "micro")
/mob/living/carbon/human/Destroy()
QDEL_NULL(physiology)