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
This commit is contained in:
parent
e8ffd71067
commit
f06a3a695d
|
|
@ -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;
|
||||
|
||||
|
|
@ -158,6 +159,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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -66,5 +66,11 @@ namespace Content.Server.Bible.Components
|
|||
|
||||
[DataField("locPrefix")]
|
||||
public string LocPrefix = "bible";
|
||||
|
||||
/// <summary>
|
||||
/// A short light effect to display when successfully healing someone
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public EntProtoId? HealingLightEffect = "HolyLightEffect";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@
|
|||
failChance: 0
|
||||
locPrefix: "necro"
|
||||
healSound: "/Audio/Effects/lightburn.ogg"
|
||||
healingLightEffect: EvilLightEffect
|
||||
- type: Summonable
|
||||
specialItem: SpawnPointGhostCerberus
|
||||
respawnTime: 300
|
||||
|
|
@ -188,3 +189,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue