Skip to content

Commit

Permalink
Optimizing and some recast of loadout (discordia-space#3701)
Browse files Browse the repository at this point in the history
* .Gitignore Update

* Loadout update
  • Loading branch information
AlexMorgan3817 authored and drexample committed Aug 24, 2019
1 parent cd122ca commit 39a6186
Show file tree
Hide file tree
Showing 11 changed files with 206 additions and 263 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#ignore misc BYOND files
Thumbs.db
*.sav
*.log
*.int
*.rsc
*.dmb
*.lk
*.backup
*.before
tools/
data/
cfg/
tmp/
build_log.txt
.vscode
__pycache__

#vscode
.vscode
.history
23 changes: 14 additions & 9 deletions code/modules/client/preference_setup/loadout/lists/accessories.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/datum/gear/accessory
sort_category = "Accessories"
category = /datum/gear/accessory
Expand Down Expand Up @@ -43,14 +42,17 @@
/datum/gear/accessory/cargo
display_name = "armband, cargo"
path = /obj/item/clothing/accessory/armband/cargo
allowed_roles = list(JOBS_CARGO)

/datum/gear/accessory/emt
display_name = "armband, EMT"
path = /obj/item/clothing/accessory/armband/medgreen
allowed_roles = list(JOBS_MEDICAL)

/datum/gear/accessory/engineering
display_name = "armband, engineering"
path = /obj/item/clothing/accessory/armband/engine
allowed_roles = list(JOBS_ENGINEERING)

/datum/gear/accessory/hydroponics
display_name = "armband, hydroponics"
Expand All @@ -59,23 +61,26 @@
/datum/gear/accessory/medical
display_name = "armband, medical"
path = /obj/item/clothing/accessory/armband/med
allowed_roles = list(JOBS_MEDICAL)

/datum/gear/accessory/science
display_name = "armband, science"
path = /obj/item/clothing/accessory/armband/science
allowed_roles = list(JOBS_SCIENCE)

/datum/gear/accessory/holster
display_name = "holster, armpit"
path = /obj/item/clothing/accessory/holster/armpit
allowed_roles = list("Captain", "First Officer", "Ironhammer Operative", "Ironhammer Gunnery Sergeant", "Ironhammer Commander","Ironhammer Inspector")

/datum/gear/accessory/holster/hip
display_name = "holster, hip"
path = /obj/item/clothing/accessory/holster/hip
allowed_roles = list("Captain", "First Officer", JOBS_SECURITY)

/datum/gear/accessory/holster/waist
display_name = "holster, waist"
path = /obj/item/clothing/accessory/holster/waist
/datum/gear/accessory/holster/New()
..()
var/ties = list(
"Armpit" = /obj/item/clothing/accessory/holster/armpit,
"Hip" = /obj/item/clothing/accessory/holster/hip,
"Waist" = /obj/item/clothing/accessory/holster/waist,
)
gear_tweaks += new/datum/gear_tweak/path(ties)

/datum/gear/accessory/tie/blue
display_name = "tie, blue"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/datum/gear/clothing/
sort_category = "Clothing Pieces"
category = /datum/gear/clothing/
Expand Down
5 changes: 3 additions & 2 deletions code/modules/client/preference_setup/loadout/lists/eyegear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@
/datum/gear/eyes/sciencegoggles
display_name = "Science Goggles"
path = /obj/item/clothing/glasses/powered/science
allowed_roles = list(JOBS_SCIENCE)

/datum/gear/eyes/security
display_name = "Security HUD"
path = /obj/item/clothing/glasses/hud/security
allowed_roles = list("Ironhammer Operative","Ironhammer Commander","Ironhammer Gunnery Sergeant")
allowed_roles = list(JOBS_SECURITY)

/datum/gear/eyes/medical
display_name = "Medical HUD"
path = /obj/item/clothing/glasses/hud/health
allowed_roles = list("Moebius Doctor","Moebius Biolab Officer","Moebius Chemist","Moebius Paramedic")
allowed_roles = list(JOBS_MEDICAL)

/datum/gear/eyes/shades
display_name = "Sunglasses, fat"
Expand Down
57 changes: 24 additions & 33 deletions code/modules/client/preference_setup/loadout/lists/footwear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,45 @@
display_name = "sandals"
path = /obj/item/clothing/shoes/sandal

/datum/gear/shoes/black
display_name = "shoes, black"
path = /obj/item/clothing/shoes/black

/datum/gear/shoes/blue
display_name = "shoes, blue"
path = /obj/item/clothing/shoes/color/blue

/datum/gear/shoes/brown
display_name = "shoes, brown"
path = /obj/item/clothing/shoes/color/brown

/datum/gear/shoes/lacey
display_name = "shoes, classy"
path = /obj/item/clothing/shoes/reinforced

/*//Same with /datum/gear/shoes/lacey
/datum/gear/shoes/dress
display_name = "shoes, dress"
path = /obj/item/clothing/shoes/reinforced

/datum/gear/shoes/green
display_name = "shoes, green"
path = /obj/item/clothing/shoes/color/green
path = /obj/item/clothing/shoes/reinforced*/

/datum/gear/shoes/leather
display_name = "shoes, leather"
path = /obj/item/clothing/shoes/leather

/datum/gear/shoes/orange
display_name = "shoes, orange"
path = /obj/item/clothing/shoes/color/orange

/datum/gear/shoes/purple
display_name = "shoes, purple"
path = /obj/item/clothing/shoes/color/purple

/datum/gear/shoes/rainbow
display_name = "shoes, rainbow"
path = /obj/item/clothing/shoes/color/rainbow

/datum/gear/shoes/red
display_name = "shoes, red"
path = /obj/item/clothing/shoes/color/red
/datum/gear/shoes/colorable
display_name = "shoes, colorable"
flags = GEAR_HAS_COLOR_SELECTION
path = /obj/item/clothing/shoes/color

/datum/gear/shoes/white
display_name = "shoes, white"
path = /obj/item/clothing/shoes/color/white
/datum/gear/shoes/color_presets
display_name = "shoes, color presets"
path = /obj/item/clothing/shoes/black

/datum/gear/shoes/yellow
display_name = "shoes, yellow"
path = /obj/item/clothing/shoes/color/yellow
/datum/gear/shoes/color_presets/New()
..()
var/shoes = list(
"White" = /obj/item/clothing/shoes/color/white,
"Black" = /obj/item/clothing/shoes/black,
"Brown" = /obj/item/clothing/shoes/color/brown,
"Red" = /obj/item/clothing/shoes/color/red,
"Orange" = /obj/item/clothing/shoes/color/orange,
"Yellow" = /obj/item/clothing/shoes/color/yellow,
"Green" = /obj/item/clothing/shoes/color/green,
"Blue" = /obj/item/clothing/shoes/color/blue,
"Purple" = /obj/item/clothing/shoes/color/purple,
)
gear_tweaks += new /datum/gear_tweak/path(shoes)
71 changes: 30 additions & 41 deletions code/modules/client/preference_setup/loadout/lists/gloves.dm
Original file line number Diff line number Diff line change
@@ -1,55 +1,44 @@
// Gloves
/datum/gear/gloves
display_name = "gloves, black"
path = /obj/item/clothing/gloves/thick
cost = 2
/datum/gear/gloves/
slot = slot_gloves
sort_category = "Gloves and Handwear"
category = /datum/gear/gloves/

/datum/gear/gloves/blue
display_name = "gloves, blue"
path = /obj/item/clothing/gloves/color/blue

/datum/gear/gloves/yellow
display_name = "gloves, yellow"
path = /obj/item/clothing/gloves/color/yellow

/datum/gear/gloves/brown
display_name = "gloves, brown"
path = /obj/item/clothing/gloves/color/brown

/datum/gear/gloves/light_brown
display_name = "gloves, light-brown"
path = /obj/item/clothing/gloves/color/light_brown

/datum/gear/gloves/green
display_name = "gloves, green"
path = /obj/item/clothing/gloves/color/green

/datum/gear/gloves/grey
display_name = "gloves, grey"
path = /obj/item/clothing/gloves/color/grey
/datum/gear/gloves/work
display_name = "gloves, work"
path = /obj/item/clothing/gloves/thick
cost = 3

/datum/gear/gloves/latex
display_name = "gloves, latex"
path = /obj/item/clothing/gloves/latex

/datum/gear/gloves/orange
display_name = "gloves, orange"
path = /obj/item/clothing/gloves/color/orange

/datum/gear/gloves/purple
display_name = "gloves, purple"
path = /obj/item/clothing/gloves/color/purple

/datum/gear/gloves/rainbow
display_name = "gloves, rainbow"
path = /obj/item/clothing/gloves/color/rainbow
cost = 2

/datum/gear/gloves/colored
display_name = "gloves, colored"
flags = GEAR_HAS_COLOR_SELECTION
path = /obj/item/clothing/gloves/color

/datum/gear/gloves/red
display_name = "gloves, red"
path = /obj/item/clothing/gloves/color/red
/datum/gear/gloves/color_presets
display_name = "gloves, color presets"
path = /obj/item/clothing/gloves/color/blue

/datum/gear/gloves/white
display_name = "gloves, white"
path = /obj/item/clothing/gloves/color/white
/datum/gear/gloves/color_presets/New()
..()
var/gloves = list(
"Blue" = /obj/item/clothing/gloves/color/blue,
"Yellow" = /obj/item/clothing/gloves/color/yellow,
"White" = /obj/item/clothing/gloves/color/white,
"Red" = /obj/item/clothing/gloves/color/red,
"Purple" = /obj/item/clothing/gloves/color/purple,
"Orange" = /obj/item/clothing/gloves/color/orange,
"Grey" = /obj/item/clothing/gloves/color/grey,
"Green" = /obj/item/clothing/gloves/color/green,
"Light-Brown" = /obj/item/clothing/gloves/color/light_brown,
"Brown" = /obj/item/clothing/gloves/color/brown
)
gear_tweaks += new /datum/gear_tweak/path(gloves)
Loading

0 comments on commit 39a6186

Please sign in to comment.