loadout stuff

This commit is contained in:
Timothy Teakettle
2020-07-28 22:52:00 +01:00
parent 469ea17063
commit 721e018aec
18 changed files with 620 additions and 721 deletions
+47
View File
@@ -0,0 +1,47 @@
//defines for loadout categories
//backpack
#define CATEGORY_BACKPACK "In backpack"
#define SUBCATEGORY_BACKPACK_GENERAL "General" //basically anything that there's not enough of to have its own subcategory
#define SUBCATEGORY_BACKPACK_TOYS "Toys"
//neck
#define CATEGORY_NECK "Neck"
#define SUBCATEGORY_NECK_GENERAL "General"
#define SUBCATEGORY_NECK_TIE "Ties"
#define SUBCATEGORY_NECK_SCARVES "Scarves"
//mask
#define CATEGORY_MASK "Mask"
#define SUBCATEGORY_MASK_DONATOR "Donator"
//hands
#define CATEGORY_HANDS "Hands"
//uniform
#define CATEGORY_UNIFORM "Uniform"
#define SUBCATEGORY_UNIFORM_GENERAL "General"
#define SUBCATEGORY_UNIFORM_JOBS "Jobs"
//suit
#define CATEGORY_SUIT "Suit"
#define SUBCATEGORY_SUIT_GENERAL "General"
#define SUBCATEGORY_SUIT_COATS "Coats"
#define SUBCATEGORY_SUIT_JACKETS "Jackets"
#define SUBCATEGORY_SUIT_JOBS "Jobs"
//head
#define CATEGORY_HEAD "Head"
#define SUBCATEGORY_HEAD_GENERAL "General"
#define SUBCATEGORY_HEAD_JOBS "Jobs"
//shoes
#define CATEGORY_SHOES "Shoes"
//gloves
#define CATEGORY_GLOVES "Gloves"
//glasses
#define CATEGORY_GLASSES "Glasses"
//donator items
#define CATEGORY_DONATOR "Donator"
+1 -1
View File
@@ -674,7 +674,7 @@ SUBSYSTEM_DEF(job)
return
for(var/i in the_mob.client.prefs.chosen_gear)
var/datum/gear/G = i
G = GLOB.loadout_items[slot_to_string(initial(G.category))][initial(G.name)]
G = GLOB.loadout_items[G.category][initial(G.name)]
if(!G)
continue
var/permitted = TRUE