mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Part 4: Storage Improvements (#90783)
- Address https://github.com/tgstation/tgstation/pull/90476#discussion_r2051701283. Makes pill bottle code cleaner - Datumized some more storage values(monkey guncase toolbox & crafter toolbox) making their init slightly faster - Moved all standard storage subtypes(bags, boxes, lockboxes etc) that is scattered across various files & folders in the codebase into their respective files under `code/game/objects/item/storage` folder. This means for e.g. if you want to see all boxes in the game you can find them in `code/game/objects/item/storage/boxes` folder & don't have to go looking for hidden subtypes in various module files or folders where they were hidden away. Makes looking for stuff & modifying these storages much saner & easier 🆑 code: organized storage subtypes under the same files & folders /🆑 --------- Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com>
This commit is contained in:
committed by
Roxy
co-authored by
_0Steven
parent
2b4c5aa010
commit
1428f663e0
@@ -1,35 +0,0 @@
|
||||
/*****************************Money bag********************************/
|
||||
|
||||
/obj/item/storage/bag/money
|
||||
name = "money bag"
|
||||
desc = "A bag for storing your profits."
|
||||
icon_state = "moneybag"
|
||||
worn_icon_state = "moneybag"
|
||||
force = 10
|
||||
throwforce = 0
|
||||
resistance_flags = FLAMMABLE
|
||||
max_integrity = 100
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
storage_type = /datum/storage/bag/money
|
||||
|
||||
/obj/item/storage/bag/money/Initialize(mapload)
|
||||
. = ..()
|
||||
if(prob(20))
|
||||
icon_state = "moneybagalt"
|
||||
|
||||
/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)
|
||||
|
||||
///Used in the dutchmen pirate shuttle.
|
||||
/obj/item/storage/bag/money/dutchmen/PopulateContents()
|
||||
for(var/iteration in 1 to 9)
|
||||
new /obj/item/coin/silver/doubloon(src)
|
||||
for(var/iteration in 1 to 9)
|
||||
new /obj/item/coin/gold/doubloon(src)
|
||||
new /obj/item/coin/adamantine/doubloon(src)
|
||||
Reference in New Issue
Block a user