Belt-Worn RIGs (#6002)

Belt-worn RIG framework
This commit is contained in:
mistyLuminescence
2019-03-30 03:20:41 -04:00
committed by VirgoBot
parent 0d338f8c45
commit 8fe2ef9fde
8 changed files with 102 additions and 40 deletions
@@ -82,6 +82,8 @@ This saves us from having to call add_fingerprint() any time something is put in
if(slot_tie)
return 1
/obj/item/var/suitlink = 1 //makes belt items require a jumpsuit- set individual items to suitlink = 0 to allow wearing on belt slot without suit
/mob/living/carbon/human/u_equip(obj/W as obj)
if(!W) return 0
@@ -98,7 +100,7 @@ This saves us from having to call add_fingerprint() any time something is put in
drop_from_inventory(l_store)
if (wear_id)
drop_from_inventory(wear_id)
if (belt)
if (belt && belt.suitlink == 1)
worn_clothing -= belt
drop_from_inventory(belt)
worn_clothing -= w_uniform