Merge pull request #3741 from AsV9/electricityman

Ethereals are now charged up slightly when stunned by batons.
This commit is contained in:
nichlas0010
2018-12-04 18:57:09 +01:00
committed by GitHub
2 changed files with 15 additions and 1 deletions

View File

@@ -118,7 +118,13 @@
user.Paralyze(stunforce*3)
deductcharge(hitcost)
return
//yogs edit begin ---------------------------------
if(status && isethereal(M))
var/mob/living/carbon/human/H = M
var/datum/species/ethereal/E = H.dna?.species
E.adjust_charge(20) //equivalent to hitting a lightbulb 4 times
to_chat(M,"<span class='notice'>You receive some charge from [src].</span>")
//yogs edit end ----------------------------------
if(iscyborg(M))
..()
return

View File

@@ -24,6 +24,14 @@
C.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ), forced = "hulk")
else if((C.status_flags & CANKNOCKDOWN) && !C.has_trait(TRAIT_STUNIMMUNE))
addtimer(CALLBACK(C, /mob/living/carbon.proc/do_jitter_animation, jitter), 5)
//yogstation edit begin -------------------------------------------
if(ishuman(C))
var/mob/living/carbon/human/H = C
if(isethereal(H))
var/datum/species/ethereal/E = H.dna?.species
E.adjust_charge(20)
to_chat(C,"<span class='notice'>You receive some charge from [src].</span>")
//yogstation edit end ---------------------------------------------
/obj/item/projectile/energy/electrode/on_range() //to ensure the bolt sparks when it reaches the end of its range if it didn't hit a target yet
do_sparks(1, TRUE, src)