wendigo tweak

This commit is contained in:
Ed
2025-04-13 12:34:03 +03:00
parent 26d81b684b
commit e968c7a9b8
5 changed files with 47 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
using Content.Shared.Stealth;
namespace Content.Shared._CP14.MagicSpell.Spells;
public sealed partial class CP14SpellRevealStealthUser : CP14SpellEffect
{
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
{
if (args.User is null)
return;
var stealth = entManager.System<SharedStealthSystem>();
stealth.SetVisibility(args.User.Value, 1);
}
}

View File

@@ -10,9 +10,13 @@
speedMultiplier: 0.2
- type: CP14MagicEffect
effects:
- !type:CP14SpellSpawnEntityOnUser
spawns:
- CP14RuneWendigoFearImpact
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ImpactEffectWendigoFear
- !type:CP14SpellRevealStealthUser
- !type:CP14SpellApplyEntityEffect
effects:
- !type:MovespeedModifier
@@ -56,7 +60,8 @@
sprite: _CP14/Effects/Magic/cast_impact.rsi
layers:
- state: particles_down
color: "#2b2c32"
color: "#6c5f82"
shader: unshaded
- type: entity
id: CP14RuneWendigoFear
@@ -64,9 +69,27 @@
categories: [ HideSpawnMenu ]
components:
- type: PointLight
color: "#2b2c32"
color: "#6c5f82"
- type: Sprite
layers:
- state: double_outer
color: "#2b2c32"
shader: unshaded
color: "#6c5f82"
shader: unshaded
- type: entity
id: CP14RuneWendigoFearImpact
parent: CP14BaseMagicImpact
categories: [ HideSpawnMenu ]
components:
- type: PointLight
color: "#6c5f82"
radius: 3
energy: 8
netsync: false
- type: Sprite
layers:
- state: particles_up
color: "#6c5f82"
shader: unshaded
- type: LightFade
duration: 1

View File

@@ -10,10 +10,12 @@
stamina: 20
- type: CP14MagicEffect
telegraphyEffects:
- !type:CP14SpellRevealStealthUser
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14WendigoRitualSound
effects:
- !type:CP14SpellRevealStealthUser
- !type:CP14SpellApplyEntityEffect
effects:
- !type:Paralyze
@@ -45,5 +47,4 @@
castDelay: 2.5
distanceThreshold: 1.5
breakOnMove: false
breakOnDamage: true
hidden: true
breakOnDamage: true

View File

@@ -6,8 +6,6 @@
- type: Sprite
sprite: _CP14/Actions/Spells/wendigo.rsi
state: step
- type: CP14MagicEffectCastSlowdown
speedMultiplier: 0.8
- type: CP14MagicEffect
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -100,7 +100,7 @@
- CP14ActionSpellWendigoWarp
- type: SpamEmitSound
minInterval: 20
maxInterval: 40
maxInterval: 80
sound:
path: /Audio/_CP14/Effects/Wendigo/ambient.ogg
params: