mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Lightning spells and bioelectrogenesis will no longer stun outright
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
if(istype(held_item,/obj/item/weapon/grab))
|
||||
var/obj/item/weapon/grab/G = held_item
|
||||
if(G.affecting)
|
||||
G.affecting.electrocute_act(10 * siemens,src,1.0,BP_TORSO)
|
||||
G.affecting.electrocute_act(10 * siemens, src, 1.0, BP_TORSO, 0)
|
||||
var/agony = 80 * siemens //Does more than if hit with an electric hand, since grabbing is slower.
|
||||
G.affecting.stun_effect_act(0, agony, BP_TORSO, src)
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
if(ishuman(target_mob)) // Otherwise someone else stood in the beam and is going to pay for it.
|
||||
var/mob/living/carbon/human/H = target_mob
|
||||
var/obj/item/organ/external/affected = H.get_organ(check_zone(BP_TORSO))
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected)
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected, 0)
|
||||
else
|
||||
target_mob.electrocute_act(power, src, 0.75, BP_TORSO)
|
||||
return 0 // Since this is a continous beam, it needs to keep flying until it hits the Technomancer.
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
if(ishuman(target_mob))
|
||||
var/mob/living/carbon/human/H = target_mob
|
||||
var/obj/item/organ/external/affected = H.get_organ(check_zone(BP_TORSO))
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected)
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected, 0)
|
||||
else
|
||||
target_mob.electrocute_act(power, src, 0.75, BP_TORSO)
|
||||
hit_mobs |= target_mob
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
if(ishuman(target_mob))
|
||||
var/mob/living/carbon/human/H = target_mob
|
||||
var/obj/item/organ/external/affected = H.get_organ(check_zone(BP_TORSO))
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected)
|
||||
H.electrocute_act(power, src, H.get_siemens_coefficient_organ(affected), affected, 0)
|
||||
else
|
||||
target_mob.electrocute_act(power, src, 0.75, BP_TORSO)
|
||||
return 1
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
return
|
||||
|
||||
/mob/living/carbon/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0, var/def_zone = null)
|
||||
/mob/living/carbon/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0, var/def_zone = null, var/stun = 1)
|
||||
if(status_flags & GODMODE) return 0 //godmode
|
||||
shock_damage *= siemens_coeff
|
||||
if (shock_damage<1)
|
||||
@@ -108,8 +108,9 @@
|
||||
"\red <B>You feel a powerful shock course through your body!</B>", \
|
||||
"\red You hear a heavy electrical crack." \
|
||||
)
|
||||
Stun(10)//This should work for now, more is really silly and makes you lay there forever
|
||||
Weaken(10)
|
||||
if(stun)
|
||||
Stun(10)//This should work for now, more is really silly and makes you lay there forever
|
||||
Weaken(10)
|
||||
else
|
||||
src.visible_message(
|
||||
"\red [src] was mildly shocked by \the [source].", \
|
||||
|
||||
36
html/changelogs/Anewbe - LightningStun.yml
Normal file
36
html/changelogs/Anewbe - LightningStun.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
################################
|
||||
# Example Changelog File
|
||||
#
|
||||
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
|
||||
#
|
||||
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
|
||||
# When it is, any changes listed below will disappear.
|
||||
#
|
||||
# Valid Prefixes:
|
||||
# bugfix
|
||||
# wip (For works in progress)
|
||||
# tweak
|
||||
# soundadd
|
||||
# sounddel
|
||||
# rscadd (general adding of nice things)
|
||||
# rscdel (general deleting of nice things)
|
||||
# imageadd
|
||||
# imagedel
|
||||
# maptweak
|
||||
# spellcheck (typo fixes)
|
||||
# experiment
|
||||
#################################
|
||||
|
||||
# Your name.
|
||||
author: Anewbe
|
||||
|
||||
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
|
||||
delete-after: True
|
||||
|
||||
# Any changes you've made. See valid prefix list above.
|
||||
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
|
||||
# SCREW THIS UP AND IT WON'T WORK.
|
||||
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
|
||||
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
|
||||
changes:
|
||||
- rscdel: "Lightning spells and bioelectrogenesis will no longer stun outright."
|
||||
Reference in New Issue
Block a user