Bugfixes: Drones, Infrared emitters, Implant cases and Limbs (#2049)

This PR contains bugfixes for:

Drones being unable to matter-decompile burnt matches (#717). Burnt matches will be decompiled into a small amount of wood.
Ghosts triggering infrared emitters (#644). Added a check whether the movable passing through the laser beam is actually "visible".
Reagent transfer messages showing up when clicking on chem implant cases, even when the syringe is empty (#704). Added a check whether reagents have actually been transferred. The displayed message will now also display the actual amount transferred. Removed spawn(5)-delay to prevent click-stacking.
Limb relocation messages not showing up for bystanders (#778).
This commit is contained in:
inselc
2017-04-07 22:53:21 +02:00
committed by skull132
parent f759bf23d5
commit 238ce7a80c
5 changed files with 26 additions and 9 deletions
@@ -37,9 +37,9 @@
if(src.imp.reagents.total_volume >= src.imp.reagents.maximum_volume)
user << "<span class='warning'>\The [src] is full.</span>"
else
spawn(5)
I.reagents.trans_to_obj(src.imp, 5)
user << "<span class='notice'>You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units.</span>"
var/trans = I.reagents.trans_to_obj(src.imp, 5)
if (trans > 0)
user << "<span class='notice'>You inject [trans] units of the solution. The syringe now contains [I.reagents.total_volume] units.</span>"
else if (istype(I, /obj/item/weapon/implanter))
var/obj/item/weapon/implanter/M = I
if (M.imp)