mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user