Spray cans contain flammable solvents

Also, spraying someone will stun them even if they lack a client.
This commit is contained in:
Jack Edge
2016-05-02 22:19:49 +01:00
parent d9aac22800
commit 7c293f0aa6
+10 -3
View File
@@ -195,15 +195,22 @@
if(C.client)
C.blur_eyes(3)
C.blind_eyes(1)
if(C.check_eye_prot() <= 0) // no eye protection? ARGH IT BURNS.
C.confused = max(C.confused, 3)
C.Weaken(3)
if(C.check_eye_prot() <= 0) // no eye protection? ARGH IT BURNS.
C.confused = max(C.confused, 3)
C.Weaken(3)
if(ishuman(C))
var/mob/living/carbon/human/H = C
H.lip_style = "spray_face"
H.lip_color = paint_color
H.update_body()
// Caution, spray cans contain inflammable substances
if(C.reagents)
C.reagents.add_reagent("welding_fuel", 5)
C.reagents.add_reagent("ethanol", 5)
C.reagents.reaction(C, VAPOR, 10)
uses = max(0,uses-10)
if(istype(target, /obj/structure/window))
if(uses)
target.color = paint_color