mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Fix some incorrect uses of "src" in energized component [MDB IGNORE] (#25882)
* Fix some incorrect uses of "src" in energized component (#80613) ## About The Pull Request Fixes this:  Untested ## Changelog 🆑 fix: Fixed "was shocked by /datum/component/energized" message. /🆑 * Fix some incorrect uses of "src" in energized component --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
if(prob(100 - toast_prob))
|
||||
if(prob(25))
|
||||
do_sparks(1, FALSE, source)
|
||||
playsound(src, SFX_SPARKS, 40, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
playsound(parent, SFX_SPARKS, 40, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
source.audible_message(span_danger("[parent] makes an electric crackle..."))
|
||||
return FALSE
|
||||
|
||||
@@ -116,10 +116,10 @@
|
||||
header = "Electrifying!",
|
||||
)
|
||||
do_sparks(4, FALSE, source)
|
||||
playsound(src, SFX_SPARKS, 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
playsound(parent, SFX_SPARKS, 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
source.audible_message(span_danger("[parent] makes a loud electric crackle!"))
|
||||
to_chat(future_tram_victim, span_userdanger("You hear a loud electric crackle!"))
|
||||
future_tram_victim.electrocute_act(15, src, 1)
|
||||
future_tram_victim.electrocute_act(15, parent, 1)
|
||||
return TRUE
|
||||
|
||||
#undef NORMAL_TOAST_PROB
|
||||
|
||||
Reference in New Issue
Block a user