Fixes custom loadout and slot system.

This commit is contained in:
nachomeep
2017-02-02 15:37:27 -05:00
parent c81b18b40a
commit c2ed062b3f
2 changed files with 42 additions and 35 deletions
@@ -280,17 +280,17 @@
path = /obj/item/clothing/accessory/storage/white_drop_pouches
allowed_roles = list("Station Engineer","Atmospheric Technician","Chief Engineer","Security Officer","Detective","Head of Security","Warden","Paramedic","Chief Medical Officer","Medical Doctor")
/datum/gear/accessory/fannypacks
/datum/gear/accessory/fannypack
display_name = "fannypack selection"
path = /obj/item/weapon/storage/belt/fannypack
cost = 2
/datum/gear/accessory/fannypack/New()
..()
var/list/fannypacks = list()
var/list/fannys = list()
for(var/fanny in typesof(/obj/item/weapon/storage/belt/fannypack))
var/obj/item/weapon/storage/belt/fannys = fanny
fannypacks[initial(fannys.name)] = fannys
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(fannypacks))
var/obj/item/weapon/storage/belt/fannypack/fanny_type = fanny
fannys[initial(fanny_type.name)] = fanny_type
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(fannys))
/datum/gear/accessory/webbing
display_name = "webbing, simple"