NBT Uniform Fixes (#13936)

This commit is contained in:
Wowzewow (Wezzy)
2022-05-14 11:52:50 +02:00
committed by GitHub
parent aa311f30be
commit 1f5bbf4145
22 changed files with 92 additions and 49 deletions
+2 -2
View File
@@ -710,10 +710,10 @@
else
metadata = list()
var/obj/item/CI = G.spawn_item(null,metadata, H)
if (G.slot == slot_wear_mask || G.slot == slot_wear_suit || G.slot == slot_head)
if (G.slot == slot_w_uniform)
if (leftovers)
leftovers += thing
Debug("EC/([H]): [thing] failed mask/suit/head check; leftovers=[!!leftovers]")
Debug("EC/([H]): [thing] failed uniform check; leftovers=[!!leftovers]")
else if (H.equip_to_slot_or_del(CI, G.slot))
to_chat(H, "<span class='notice'>Equipping you with [thing]!</span>")
if(G.slot != slot_tie)