mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Merge pull request #10710 from xxalpha/cablecoilbackpack
Fixed storage not updating when joining cable coils.
This commit is contained in:
+4
-1
@@ -425,4 +425,7 @@ var/list/blood_splatter_icons = list()
|
||||
return
|
||||
|
||||
/atom/proc/storage_contents_dump_act(obj/item/weapon/storage/src_object, mob/user)
|
||||
return 0
|
||||
return 0
|
||||
|
||||
//This proc is called on the location of an atom when the atom is Destroy()'d
|
||||
/atom/proc/handle_atom_del(atom/A)
|
||||
|
||||
@@ -76,6 +76,8 @@
|
||||
|
||||
/atom/movable/Destroy()
|
||||
. = ..()
|
||||
if(loc)
|
||||
loc.handle_atom_del(src)
|
||||
if(reagents)
|
||||
qdel(reagents)
|
||||
for(var/atom/movable/AM in contents)
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
/obj/item/stack/Destroy()
|
||||
if (usr && usr.machine==src)
|
||||
usr << browse(null, "window=stack")
|
||||
src.loc = null
|
||||
..()
|
||||
|
||||
/obj/item/stack/examine(mob/user)
|
||||
@@ -186,8 +185,6 @@
|
||||
if(is_cyborg)
|
||||
return source.energy < cost
|
||||
if (amount < 1)
|
||||
if(usr)
|
||||
usr.unEquip(src, 1)
|
||||
qdel(src)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@@ -469,3 +469,6 @@
|
||||
if(verbs.Find(/obj/item/weapon/storage/verb/quick_empty))
|
||||
quick_empty()
|
||||
|
||||
/obj/item/weapon/storage/handle_atom_del(atom/A)
|
||||
if(A in contents)
|
||||
remove_from_storage(A,null)
|
||||
|
||||
Reference in New Issue
Block a user