mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-08-29 07:36:16 +01:00
Shock message update
Makes sure the shock message appears every time a player is shocked successfully by a railing
This commit is contained in:
@@ -275,8 +275,8 @@
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(shock(user, 70))
|
||||
user.visible_message("<span class='warning'>[user] gets shocked by [src]!</span>", null, null, COMBAT_MESSAGE_RANGE)
|
||||
shock(user, 70)
|
||||
|
||||
|
||||
/obj/structure/railing/attack_alien(mob/living/user)
|
||||
user.do_attack_animation(src)
|
||||
@@ -332,6 +332,7 @@
|
||||
var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread
|
||||
s.set_up(3, 1, src)
|
||||
s.start()
|
||||
user.visible_message("<span class='warning'>[user] gets shocked by [src]!</span>", null, null, COMBAT_MESSAGE_RANGE)
|
||||
return TRUE
|
||||
else
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user