mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Part 3: Storage Improvements (#90476)
Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
This commit is contained in:
@@ -200,7 +200,14 @@
|
||||
if(istype(attacking_item, /obj/item/storage/bag/trash))
|
||||
if(mybag)
|
||||
balloon_alert(user, "already has \a [mybag]!")
|
||||
else if(user.transferItemToLoc(attacking_item, src))
|
||||
return
|
||||
|
||||
var/obj/item/storage/bag/trash/insert = attacking_item
|
||||
if(!insert.insertable)
|
||||
balloon_alert(user, "cannot be inserted!")
|
||||
return
|
||||
|
||||
if(user.transferItemToLoc(attacking_item, src))
|
||||
balloon_alert(user, "attached [attacking_item]")
|
||||
return
|
||||
|
||||
|
||||
@@ -11,12 +11,8 @@
|
||||
|
||||
/obj/structure/toiletbong/Initialize(mapload)
|
||||
. = ..()
|
||||
create_storage()
|
||||
AddComponent(/datum/component/simple_rotation, post_rotation = CALLBACK(src, PROC_REF(post_rotation)))
|
||||
create_storage(max_total_storage = 100, max_slots = 12, canhold = /obj/item/food)
|
||||
atom_storage.attack_hand_interact = FALSE
|
||||
atom_storage.do_rustle = FALSE
|
||||
atom_storage.animated = FALSE
|
||||
create_storage(storage_type = /datum/storage/toiletbong)
|
||||
|
||||
weed_overlay = mutable_appearance('icons/obj/watercloset.dmi', "[base_icon_state]_overlay")
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
Reference in New Issue
Block a user