Adds ability to repair TCommsat machinery without having to dismantle the machines and rebuild them from scratch. Applying nanopaste will restore 10-20 integrity points.

This commit is contained in:
Atlantiscze
2014-07-16 14:54:18 +02:00
parent 56ef90a0fb
commit 21397d0ac7
@@ -21,6 +21,19 @@
if(istype(P, /obj/item/device/multitool))
attack_hand(user)
// REPAIRING: Use Nanopaste to repair 10-20 integrity points.
if(istype(P, /obj/item/stack/nanopaste))
var/obj/item/stack/nanopaste/T = P
if (integrity < 100) //Damaged, let's repair!
integrity = between(0, integrity + rand(10,20), 100)
T.use(1)
usr << "You apply the Nanopaste to [src], repairing some of the damage."
else
usr << "This machine is already in perfect condition."
return
switch(construct_op)
if(0)
if(istype(P, /obj/item/weapon/screwdriver))