mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
Change various things to subtypesof()
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
/datum/gear/plushie/New()
|
||||
..()
|
||||
var/list/plushies = list()
|
||||
for(var/obj/item/toy/plushie/plushie_type as anything in subtypesof(/obj/item/toy/plushie/) - /obj/item/toy/plushie/therapy)
|
||||
for(var/obj/item/toy/plushie/plushie_type as anything in subtypesof(/obj/item/toy/plushie) - /obj/item/toy/plushie/therapy)
|
||||
plushies[initial(plushie_type.name)] = plushie_type
|
||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(plushies))
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
/datum/gear/figure/New()
|
||||
..()
|
||||
var/list/figures = list()
|
||||
for(var/obj/item/toy/figure/figure_type as anything in typesof(/obj/item/toy/figure/) - /obj/item/toy/figure)
|
||||
for(var/obj/item/toy/figure/figure_type as anything in subtypesof(/obj/item/toy/figure))
|
||||
figures[initial(figure_type.name)] = figure_type
|
||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(figures))
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
/datum/gear/character/New()
|
||||
..()
|
||||
var/list/characters = list()
|
||||
for(var/obj/item/toy/character/character_type as anything in typesof(/obj/item/toy/character/) - /obj/item/toy/character)
|
||||
for(var/obj/item/toy/character/character_type as anything in subtypesof(/obj/item/toy/character))
|
||||
characters[initial(character_type.name)] = character_type
|
||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(characters))
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
/datum/gear/mechtoy/New()
|
||||
..()
|
||||
var/list/mechs = list()
|
||||
for(var/obj/item/toy/mecha/mech_type as anything in typesof(/obj/item/toy/mecha/) - /obj/item/toy/mecha/)
|
||||
for(var/obj/item/toy/mecha/mech_type as anything in subtypesof(/obj/item/toy/mecha))
|
||||
mechs[initial(mech_type.name)] = mech_type
|
||||
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(mechs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user