-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* resurrection spell * Update spawners.yml
- Loading branch information
Showing
13 changed files
with
144 additions
and
5 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Content.Shared/_CP14/MagicSpell/Spells/CP14SpellResurrection.cs
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,25 @@ | ||
using Content.Shared.EntityEffects; | ||
using Content.Shared.Mind; | ||
using Content.Shared.Mobs; | ||
using Content.Shared.Mobs.Systems; | ||
|
||
namespace Content.Shared._CP14.MagicSpell.Spells; | ||
|
||
public sealed partial class CP14SpellResurrectionEffect : CP14SpellEffect | ||
{ | ||
[DataField(required: true, serverOnly: true)] | ||
public List<EntityEffect> Effects = new(); | ||
|
||
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args) | ||
{ | ||
if (args.Target is null) | ||
return; | ||
|
||
var targetEntity = args.Target.Value; | ||
|
||
var mobState = entManager.System<MobStateSystem>(); | ||
|
||
if (mobState.IsDead(targetEntity)) | ||
mobState.ChangeMobState(targetEntity, MobState.Critical); | ||
} | ||
} |
File renamed without changes.
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
91 changes: 91 additions & 0 deletions
91
Resources/Prototypes/_CP14/Entities/Actions/Spells/Necromancy/T1_resurrection.yml
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,91 @@ | ||
- type: entity | ||
id: CP14ActionSpellResurrection | ||
name: Resurrection | ||
description: You're trying to put the soul back into the body. | ||
components: | ||
- type: CP14MagicEffectCastSlowdown | ||
speedMultiplier: 0.2 | ||
- type: CP14MagicEffect | ||
magicType: Necromancy | ||
manaCost: 100 | ||
telegraphyEffects: | ||
- !type:CP14SpellSpawnEntityOnTarget | ||
spawns: | ||
- CP14ImpactEffectResurrection | ||
effects: | ||
- !type:CP14SpellSpawnEntityOnTarget | ||
spawns: | ||
- CP14ImpactEffectResurrection | ||
- !type:CP14SpellResurrectionEffect | ||
- !type:CP14SpellApplyEntityEffect | ||
effects: | ||
- !type:ChemVomit | ||
probability: 0.25 | ||
- !type:Emote | ||
showInChat: false | ||
emote: Cough | ||
probability: 0.3 | ||
- !type:HealthChange | ||
damage: | ||
types: | ||
Asphyxiation: -50 | ||
Bloodloss: -10 | ||
- !type:Jitter | ||
- type: CP14MagicEffectVerbalAspect | ||
startSpeech: "Redi animam meam..." | ||
endSpeech: "Eu rezei por ti" | ||
- type: CP14MagicEffectCastingVisual | ||
proto: CP14RuneResurrection | ||
- type: EntityTargetAction | ||
whitelist: | ||
components: | ||
- MobState | ||
range: 7 | ||
itemIconStyle: BigAction | ||
interactOnMiss: false | ||
canTargetSelf: false | ||
sound: !type:SoundPathSpecifier | ||
path: /Audio/Magic/rumble.ogg | ||
icon: | ||
sprite: _CP14/Effects/Magic/spells_icons.rsi | ||
state: resurrection | ||
event: !type:CP14DelayedEntityTargetActionEvent | ||
cooldown: 300 | ||
castDelay: 10 | ||
breakOnMove: true | ||
|
||
- type: entity | ||
id: CP14RuneResurrection | ||
parent: CP14BaseMagicRune | ||
categories: [ HideSpawnMenu ] | ||
components: | ||
- type: PointLight | ||
color: "#328643" | ||
- type: Sprite | ||
layers: | ||
- state: sun | ||
color: "#366357" | ||
shader: unshaded | ||
- state: medium_circle | ||
color: "#55877a" | ||
shader: unshaded | ||
|
||
- type: entity | ||
id: CP14ImpactEffectResurrection | ||
parent: CP14BaseMagicImpact | ||
categories: [ HideSpawnMenu ] | ||
components: | ||
- type: Sprite | ||
layers: | ||
- state: wave_up | ||
color: "#55877a" | ||
shader: unshaded | ||
|
||
- type: entity | ||
parent: CP14BaseSpellScrollNecromancy | ||
id: CP14SpellScrollResurrection | ||
name: resurrection spell scroll | ||
components: | ||
- type: CP14SpellStorage | ||
spells: | ||
- CP14ActionSpellResurrection |
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
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 |
---|---|---|
|
@@ -212,7 +212,7 @@ | |
Medicine: | ||
effects: | ||
- !type:Emote | ||
showInChat: true | ||
showInChat: false | ||
emote: Cough | ||
probability: 0.3 | ||
|
||
|
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
Binary file added
BIN
+407 Bytes
Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/resurrection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.