mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 17:06:55 +01:00
requires #6644 Entirely replaces how (most) belts perform insertion checks. This pretty much allows belts to hold most things. Armor vests are next. Trashbags will also use the systems we use on main. Closes #7256 and #7435 --------- Co-authored-by: silicons <silicons@silicons.dev>
55 lines
1.9 KiB
Plaintext
55 lines
1.9 KiB
Plaintext
/obj/item/storage/bag/trash
|
|
name = "trash bag"
|
|
desc = "It's the heavy-duty black polymer kind. Time to take out the trash!"
|
|
icon = 'icons/obj/janitor.dmi'
|
|
icon_state = "trashbag"
|
|
item_state_slots = list(SLOT_ID_RIGHT_HAND = "trashbag", SLOT_ID_LEFT_HAND = "trashbag")
|
|
drop_sound = 'sound/items/drop/wrapper.ogg'
|
|
pickup_sound = 'sound/items/pickup/wrapper.ogg'
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
|
|
storage_datum_path = /datum/object_system/storage/trash_bag
|
|
max_combined_volume = WEIGHT_VOLUME_SMALL * 48
|
|
|
|
/obj/item/storage/bag/trash/initialize_storage()
|
|
. = ..()
|
|
obj_storage.update_icon_on_item_change = TRUE
|
|
|
|
// TODO: this is fucking broken, fix it.
|
|
/obj/item/storage/bag/trash/update_icon_state()
|
|
switch(w_class)
|
|
if(3)
|
|
icon_state = "[initial(icon_state)]1"
|
|
if(4)
|
|
icon_state = "[initial(icon_state)]2"
|
|
if(5 to INFINITY)
|
|
icon_state = "[initial(icon_state)]3"
|
|
else
|
|
icon_state = "[initial(icon_state)]"
|
|
return ..()
|
|
|
|
/obj/item/storage/bag/trash/throw_land(atom/A, datum/thrownthing/TT)
|
|
. = ..()
|
|
// let them shuffle the contents so they can grab other stuff with this if they really want
|
|
obj_storage?.hide()
|
|
var/list/athena_event_balancing_patch = contents.Copy()
|
|
shuffle_inplace(athena_event_balancing_patch)
|
|
contents = athena_event_balancing_patch
|
|
|
|
/obj/item/storage/bag/trash/bluespace
|
|
name = "trash bag of holding"
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
max_combined_volume = WEIGHT_VOLUME_SMALL * 48 * 3
|
|
desc = "The latest and greatest in custodial convenience, a trashbag that is capable of holding vast quantities of garbage."
|
|
icon_state = "bluetrashbag"
|
|
|
|
/obj/item/storage/bag/trash/plasticbag
|
|
name = "plastic bag"
|
|
desc = "It's a very flimsy, very noisy alternative to a bag."
|
|
icon = 'icons/obj/trash.dmi'
|
|
icon_state = "plasticbag"
|
|
drop_sound = 'sound/items/drop/wrapper.ogg'
|
|
pickup_sound = 'sound/items/pickup/wrapper.ogg'
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
max_combined_volume = WEIGHT_VOLUME_NORMAL * 3
|