Speeds up the preference menu, implement object pooling (#17133)

* Speeds up the preference menu

https://github.com/tgstation/tgstation/pull/63225

* Fix compile
This commit is contained in:
Ling
2023-01-02 01:22:11 +01:00
committed by GitHub
parent 38510590be
commit 1e546cd676
50 changed files with 962 additions and 283 deletions

View File

@@ -137,6 +137,15 @@
..() // we want the survival stuff too.
new /obj/item/radio/off(src)
/obj/item/storage/box/survival/proc/wardrobe_removal()
if(!isplasmaman(loc)) //We need to specially fill the box with plasmaman gear, since it's intended for one
return
var/obj/item/mask = locate(/obj/item/clothing/mask/breath) in src
var/obj/item/internals = locate(/obj/item/tank/internals/emergency_oxygen) in src
new /obj/item/tank/internals/plasmaman/belt(src)
qdel(mask) // Get rid of the items that shouldn't be
qdel(internals)
/obj/item/storage/box/survival_mining/PopulateContents()
new /obj/item/clothing/mask/gas/explorer(src)
new /obj/item/tank/internals/emergency_oxygen(src)