-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Makes supermatter charged singularity damage the eyes of vie…
…wers [MDB IGNORE] (#24451) (#171) * Makes supermatter charged singularity damage the eyes of viewers (#79044) Mostly made this for the component for admin abuse but let's put it on supermatter singulo as well. Screaming as your eyes fail you while your station is being consumed seems like it would be !!fun!! :cl: ninjanomnom balance: It damages your eyes to look at the supermatter singularity /:cl: * Makes supermatter charged singularity damage the eyes of viewers * Modular compiler errors --------- Co-authored-by: SkyratBot <[email protected]> Co-authored-by: Emmett Gaines <[email protected]> Co-authored-by: Giz <[email protected]> Co-authored-by: Yaroslav Nurkov <[email protected]>
- Loading branch information
1 parent
9945c8a
commit f64cf6c
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// A component that damages eyes that look at the owner | ||
/datum/component/vision_hurting | ||
var/damage_per_second | ||
var/message | ||
|
||
/datum/component/vision_hurting/Initialize(damage_per_second=1, message="Your eyes burn as you look at") | ||
if(!isatom(parent)) | ||
return COMPONENT_INCOMPATIBLE | ||
|
||
src.damage_per_second = damage_per_second | ||
src.message = message | ||
|
||
START_PROCESSING(SSdcs, src) | ||
|
||
/datum/component/vision_hurting/process(seconds_per_tick) | ||
for(var/mob/living/carbon/viewer in viewers(parent)) | ||
if(viewer.is_blind() || viewer.get_eye_protection() >= damage_per_second) | ||
continue | ||
var/obj/item/organ/internal/eyes/burning_orbs = locate() in viewer.organs | ||
if(!burning_orbs) | ||
continue | ||
burning_orbs.apply_organ_damage(damage_per_second * seconds_per_tick) | ||
if(SPT_PROB(50, seconds_per_tick)) | ||
to_chat(viewer, span_userdanger("[message] [parent]!")) | ||
if(SPT_PROB(20, seconds_per_tick)) | ||
viewer.emote("scream") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters