Final tweaks and fixes

This commit is contained in:
warior4356
2020-07-14 01:43:00 -07:00
parent 93b43721f3
commit 0911425f2b
4 changed files with 16 additions and 2 deletions
@@ -124,6 +124,13 @@
reagents.reaction(M, REAGENT_TOUCH)
reagents.clear_reagents()
/obj/item/reagent_containers/food/drinks/bottle/decompile_act(obj/item/matter_decompiler/C, mob/user)
if(!reagents.total_volume)
C.stored_comms["glass"] += 3
qdel(src)
return TRUE
return ..()
//Keeping this here for now, I'll ask if I should keep it here.
/obj/item/broken_bottle
name = "Broken Bottle"
@@ -368,8 +368,8 @@
to_chat(D, "<span class='warning'>You carefully and thoroughly decompile your downed fellow, storing as much of its resources as you can within yourself.</span>")
qdel(src)
new/obj/effect/decal/cleanable/blood/oil(get_turf(src))
qdel(src)
C.stored_comms["metal"] += 15
C.stored_comms["glass"] += 15
@@ -170,7 +170,7 @@
var/grabbed_something = 0
for(var/atom/movable/A in T)
if(A.decompile_act(src)) // Each decompileable mob or obj needs to have this defined
if(A.decompile_act(src, usr)) // Each decompileable mob or obj needs to have this defined
grabbed_something = 1
if(grabbed_something)
@@ -42,6 +42,13 @@
var/image/lid = image(icon, src, "lid_bottle")
overlays += lid
/obj/item/reagent_containers/glass/bottle/decompile_act(obj/item/matter_decompiler/C, mob/user)
if(!reagents.total_volume)
C.stored_comms["glass"] += 3
qdel(src)
return TRUE
return ..()
/obj/item/reagent_containers/glass/bottle/toxin
name = "toxin bottle"
desc = "A small bottle containing toxic compounds."