mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Merge pull request #4450 from VOREStation/upstream-merge-5692
[MIRROR] Correctly fix surgery caps selection this time.
This commit is contained in:
@@ -353,17 +353,20 @@
|
|||||||
sols[initial(sol.name)] = sol
|
sols[initial(sol.name)] = sol
|
||||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(sols))*/ // Vorestation removal.
|
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(sols))*/ // Vorestation removal.
|
||||||
|
|
||||||
/datum/gear/head/surgical
|
/datum/gear/head/surgery
|
||||||
display_name = "surgical cap selection"
|
display_name = "surgical cap selection"
|
||||||
|
description = "Choose from a number of rings of different caps."
|
||||||
path = /obj/item/clothing/head/surgery
|
path = /obj/item/clothing/head/surgery
|
||||||
|
|
||||||
/datum/gear/head/surgical/New()
|
/datum/gear/head/surgery/New()
|
||||||
..()
|
..()
|
||||||
var/list/caps = list()
|
var/cap_type = list()
|
||||||
for(var/surgery in typesof(/obj/item/clothing/head/surgery))
|
cap_type["Purple cap"] = /obj/item/clothing/head/surgery/purple
|
||||||
var/obj/item/clothing/head/surgery/cap_type = caps
|
cap_type["Blue cap"] = /obj/item/clothing/head/surgery/blue
|
||||||
caps[initial(cap_type.name)] = cap_type
|
cap_type["Green cap"] = /obj/item/clothing/head/surgery/green
|
||||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(caps))
|
cap_type["Black cap"] = /obj/item/clothing/head/surgery/black
|
||||||
|
cap_type["Navy cap"] = /obj/item/clothing/head/surgery/navyblue
|
||||||
|
gear_tweaks += new/datum/gear_tweak/path(cap_type)
|
||||||
|
|
||||||
/datum/gear/head/circuitry
|
/datum/gear/head/circuitry
|
||||||
display_name = "headwear, circuitry (empty)"
|
display_name = "headwear, circuitry (empty)"
|
||||||
|
|||||||
Reference in New Issue
Block a user