Merge pull request #15181 from Citadel-Station-13/typecaches

no more powergaming dice bags
This commit is contained in:
Lin
2021-09-20 23:59:53 -05:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -17,6 +17,11 @@
/obj/item/dice/d100
)
/obj/item/storage/dice/ComponentInitialize()
. = ..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
STR.can_hold = single_path_typecache_immutable(/obj/item/dice)
/obj/item/storage/dice/PopulateContents()
new /obj/item/dice/d4(src)
new /obj/item/dice/d6(src)