mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #3741 from AsV9/electricityman
Ethereals are now charged up slightly when stunned by batons.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user