more loadout preferences

This commit is contained in:
DragonTrance
2021-03-09 09:50:07 -07:00
parent 9e9664e7a3
commit ae9b09a118
9 changed files with 28 additions and 15 deletions
@@ -16,12 +16,14 @@
continue
var/obj/item/I = new G.path
if(backpackstuffs && G.category == SLOT_IN_BACKPACK && iscarbon(M))
if(iscarbon(M) && backpackstuffs && (G.category == SLOT_IN_BACKPACK || G.blacklist_join_equip))
var/mob/living/carbon/C = M
var/obj/item/storage/backpack/B = C.back
if(!B || !SEND_SIGNAL(B, COMSIG_TRY_STORAGE_INSERT, I, null, TRUE, TRUE))
I.forceMove(get_turf(C))
continue
else if(G.blacklist_join_equip) //Assume we're gonna be put in a backpack and not equipped
continue
else if(backpackstuffs && G.category != SLOT_IN_BACKPACK)
continue
if(!M.equip_to_slot_if_possible(I, G.category, disable_warning = TRUE, bypass_equip_delay_self = TRUE)) // If the job's dresscode compliant, try to put it in its slot, first