mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 02:43:16 +00:00
* Removes the GetComponent macros * Regex replacement for GET_COMPONENT Search: `GET_COMPONENT\( *(.+?) *, *(.+?) *\)` Replace: `var$2/$1 = GetComponent($2)` * Regex replacement for GET_COMPONENT_FROM Search: `GET_COMPONENT_FROM\( *(.+?) *, *(.+?) *, *(.+?) *\)` Replace: `var$2/$1 = $3.GetComponent($2)`
28 lines
864 B
Plaintext
28 lines
864 B
Plaintext
/*****************************Money bag********************************/
|
|
|
|
/obj/item/storage/bag/money
|
|
name = "money bag"
|
|
icon_state = "moneybag"
|
|
force = 10
|
|
throwforce = 0
|
|
resistance_flags = FLAMMABLE
|
|
max_integrity = 100
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
|
|
/obj/item/storage/bag/money/Initialize()
|
|
. = ..()
|
|
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
|
|
STR.max_w_class = WEIGHT_CLASS_NORMAL
|
|
STR.max_items = 40
|
|
STR.max_combined_w_class = 40
|
|
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)
|
|
new /obj/item/coin/silver(src)
|
|
new /obj/item/coin/silver(src)
|
|
new /obj/item/coin/silver(src)
|
|
new /obj/item/coin/gold(src)
|
|
new /obj/item/coin/gold(src)
|
|
new /obj/item/coin/adamantine(src)
|