mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Small storage refactor and examine change (#44109)
* Removes repeated line * Description change for clothing items that can only store specific items * Get all children of can_hold listed items. * can_hold only needs the top most item, child items are dealt automatically * cant_hold related change * Text change * Moves the item check to the line above, and removes the current. * Same changes, but to belt/wallet code. * Change to using signals instead * Generic signal on datum/topic * Cache typecache, and small signal change * Small argument tweaks and remove unneeded lists * Change to proc * Change call can_holds/cant_holds to use new proc * initial, and cleaned up display code * Null check
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
STR.max_w_class = WEIGHT_CLASS_NORMAL
|
||||
STR.max_items = 40
|
||||
STR.max_combined_w_class = 40
|
||||
STR.can_hold = typecacheof(list(/obj/item/coin, /obj/item/stack/spacecash, /obj/item/holochip))
|
||||
STR.set_holdable(list(/obj/item/coin, /obj/item/stack/spacecash, /obj/item/holochip))
|
||||
|
||||
/obj/item/storage/bag/money/vault/PopulateContents()
|
||||
new /obj/item/coin/silver(src)
|
||||
@@ -24,4 +24,4 @@
|
||||
new /obj/item/coin/silver(src)
|
||||
new /obj/item/coin/gold(src)
|
||||
new /obj/item/coin/gold(src)
|
||||
new /obj/item/coin/adamantine(src)
|
||||
new /obj/item/coin/adamantine(src)
|
||||
|
||||
Reference in New Issue
Block a user