Adds a second dose of the poison & lowers chance

This commit is contained in:
Cameron653
2017-09-22 23:36:45 -04:00
committed by GitHub
parent 2755d3ddb1
commit ec20b76ab8

View File

@@ -58,7 +58,7 @@ List of things solar grubs should be able to do:
var/poison_per_bite = 5 //grubs cause a shock when they bite someone
var/poison_type = "shockchem"
var/poison_chance = 100
var/poison_chance = 50
var/datum/powernet/PN // Our powernet
var/obj/structure/cable/attached // the attached cable
@@ -104,11 +104,10 @@ List of things solar grubs should be able to do:
if(isliving(.))
var/mob/living/L = .
if(L.reagents)
L.reagents.add_reagent(poison_type, poison_per_bite)
if(prob(poison_chance))
L << "<span class='warning'>You feel a shock rushing through your veins.</span>"
L.reagents.add_reagent(poison_type, poison_per_bite)
/mob/living/simple_animal/retaliate/solargrub/death()
src.anchored = 0
..()
..()