cure trace

This commit is contained in:
Ed
2024-11-15 18:45:22 +03:00
parent 0ca9ac59f9
commit cb4b92a5f7
5 changed files with 27 additions and 20 deletions

View File

@@ -51,8 +51,6 @@ public sealed class CP14ClientMagicVisionSystem : CP14SharedMagicVisionSystem
{
sprite.Visible = MagicVisible;
if (MagicVisible == false)
return;

View File

@@ -4,7 +4,6 @@ using Content.Shared._CP14.MagicEnergy.Components;
using Content.Shared._CP14.MagicSpell.Components;
using Content.Shared._CP14.MagicSpell.Events;
using Content.Shared._CP14.MagicSpell.Spells;
using Content.Shared._CP14.MagicSpellStorage;
using Content.Shared.Actions;
using Content.Shared.DoAfter;
using Content.Shared.FixedPoint;

View File

@@ -16,6 +16,7 @@
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ImpactEffectCureWounds
- CP14MagicTraceCureWounds
- !type:CP14SpellApplyEntityEffect
effects:
- !type:HealthChange
@@ -48,13 +49,25 @@
sound: !type:SoundPathSpecifier
path: /Audio/Magic/rumble.ogg
icon:
sprite: _CP14/Effects/Magic/spells_icons.rsi
sprite: _CP14/Effects/Magic/spells_icons.rsi
state: cure_wounds
event: !type:CP14DelayedEntityTargetActionEvent
cooldown: 10
castDelay: 3
breakOnMove: false
- type: entity
id: CP14MagicTraceCureWounds
parent: CP14BaseMagicTrace
categories: [ HideSpawnMenu ]
components:
- type: Sprite
layers:
- state: cure_wounds
shader: unshaded
- type: CP14MagicVisionMarker
visibilityTime: 20
- type: entity
id: CP14RuneCureWounds
parent: CP14BaseMagicRune

View File

@@ -34,4 +34,15 @@
- type: Sprite
drawdepth: Effects
sprite: _CP14/Effects/Magic/cast_impact.rsi
noRot: true
noRot: true
- type: entity
id: CP14BaseMagicTrace
abstract: true
components:
- type: Sprite
sprite: _CP14/Effects/Magic/spells_icons.rsi
drawdepth: Effects
- type: Clickable
- type: CP14MagicVisionMarker
visibilityTime: 30

View File

@@ -1,14 +0,0 @@
- type: entity
id: CP14MagicTrace
categories: [ ForkFiltered ]
components:
- type: Sprite
drawdepth: Effects
snapCardinals: true
sprite: _CP14/Effects/fire.rsi
layers:
- state: full
shader: unshaded
- type: Clickable
- type: CP14MagicVisionMarker
visibilityTime: 30