From fe8f5f2d41d22b43f893ffd7fbe0e343aa474c91 Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:33:38 -0400 Subject: [PATCH] Add a holy light effect to bible healing (#43189) * save * remove unneeded event * Revert "remove unneeded event" This reverts commit 779ec783094144ca978a5e9d111235e29539e8a3. Revert "save" This reverts commit f88e0ab18b253915f5efde5886a4701a73ffa35a. * Use simple light effect entities with TimedDespawn --- Content.Server/Bible/BibleSystem.cs | 4 ++++ .../Bible/Components/BibleComponent.cs | 6 +++++ .../Objects/Specific/Chapel/bibles.yml | 24 +++++++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/Content.Server/Bible/BibleSystem.cs b/Content.Server/Bible/BibleSystem.cs index 813d808dbc..5ce37276b7 100644 --- a/Content.Server/Bible/BibleSystem.cs +++ b/Content.Server/Bible/BibleSystem.cs @@ -15,6 +15,7 @@ using Content.Shared.Popups; using Content.Shared.Timing; using Content.Shared.Verbs; using Robust.Shared.Audio.Systems; +using Robust.Shared.Map; using Robust.Shared.Player; using Robust.Shared.Random; @@ -145,6 +146,9 @@ namespace Content.Server.Bible _audio.PlayPvs(component.HealSoundPath, args.User); _delay.TryResetDelay((uid, useDelay)); + + if (component.HealingLightEffect.HasValue) + Spawn(component.HealingLightEffect.Value, new EntityCoordinates(args.Target.Value, default)); } else { diff --git a/Content.Server/Bible/Components/BibleComponent.cs b/Content.Server/Bible/Components/BibleComponent.cs index 7f4af569e5..af600158e9 100644 --- a/Content.Server/Bible/Components/BibleComponent.cs +++ b/Content.Server/Bible/Components/BibleComponent.cs @@ -53,5 +53,11 @@ namespace Content.Server.Bible.Components [DataField("locPrefix")] public string LocPrefix = "bible"; + + /// + /// A short light effect to display when successfully healing someone + /// + [DataField] + public EntProtoId? HealingLightEffect = "HolyLightEffect"; } } diff --git a/Resources/Prototypes/Entities/Objects/Specific/Chapel/bibles.yml b/Resources/Prototypes/Entities/Objects/Specific/Chapel/bibles.yml index 0fb3f1a04b..2639dac99e 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Chapel/bibles.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Chapel/bibles.yml @@ -83,6 +83,7 @@ failChance: 0 locPrefix: "necro" healSound: "/Audio/Effects/lightburn.ogg" + healingLightEffect: EvilLightEffect - type: Summonable specialItem: SpawnPointGhostCerberus respawnTime: 300 @@ -168,3 +169,26 @@ sprite: Objects/Specific/Chapel/ratvartablet.rsi - type: Item sprite: Objects/Specific/Chapel/ratvartablet.rsi + +- type: entity + id: HolyLightEffect + categories: [ HideSpawnMenu ] + components: + - type: PointLight + enabled: true + radius: 1.5 + energy: 20 + color: lightgoldenrodyellow + netsync: false + - type: LightFade + duration: 0.7 + - type: TimedDespawn + lifetime: 0.7 + +- type: entity + id: EvilLightEffect + categories: [ HideSpawnMenu ] + parent: HolyLightEffect + components: + - type: PointLight + color: red