Spells content (#897)

* modifiers

* counter spell, and 2 new spell scrolls

* Update magical_acceleration.yml

* Update T0_counter_spell.yml
This commit is contained in:
Ed
2025-02-14 11:50:57 +03:00
committed by GitHub
parent 04aa7504fb
commit 909dc36158
17 changed files with 331 additions and 4 deletions

View File

@@ -41,4 +41,26 @@
shader: unshaded
color: "#4097bd"
- type: PointLight
color: "#4097bd"
color: "#4097bd"
- type: entity
parent: CP14BaseSpellScrollHealing
id: CP14SpellScrollMagicalAcceleration
name: magical accseleration spell scroll
components:
- type: CP14SpellStorage
spells:
- CP14ActionSpellMagicalAcceleration
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
CP14Ash1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -0,0 +1,73 @@
- type: entity
id: CP14ActionSpellCounterSpell
name: counter spell
description: By affecting the magical energy itself, you can interrupt the cast of someone else's spell.
components:
- type: Sprite
sprite: _CP14/Effects/Magic/spells_icons.rsi
state: counter_spell
- type: CP14MagicEffectCastSlowdown
speedMultiplier: 0.7
- type: CP14MagicEffectManaCost
manaCost: 15
- type: CP14MagicEffect
magicType: Meta
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ImpactEffectCounterSpell
effects:
- !type:CP14SpellInterruptSpell
- type: CP14MagicEffectCastingVisual
proto: CP14RuneCounterSpell
- type: EntityTargetAction
whitelist:
components:
- CP14MagicEnergyContainer
itemIconStyle: BigAction
interactOnMiss: false
sound: !type:SoundPathSpecifier
path: /Audio/Magic/rumble.ogg
icon:
sprite: _CP14/Effects/Magic/spells_icons.rsi
state: counter_spell
event: !type:CP14DelayedEntityTargetActionEvent
cooldown: 10
castDelay: 0.75
breakOnMove: false
- type: entity
id: CP14RuneCounterSpell
parent: CP14BaseMagicRune
categories: [ HideSpawnMenu ]
components:
- type: PointLight
color: "#5096d4"
- type: Sprite
layers:
- state: medium_circle
color: "#5096d4"
shader: unshaded
- type: entity
id: CP14ImpactEffectCounterSpell
parent: CP14BaseMagicImpact
categories: [ HideSpawnMenu ]
components:
- type: Sprite
layers:
- state: circle_decrease
color: "#5096d4"
shader: unshaded
- state: circle_increase
color: "#5096d4"
shader: unshaded
- type: entity
parent: CP14BaseSpellScrollMeta
id: CP14SpellScrollCounterSpell
name: counter spell spell scroll #Spell spell spell spell
components:
- type: CP14SpellStorage
spells:
- CP14ActionSpellCounterSpell

View File

@@ -37,6 +37,8 @@
- id: CP14SpellScrollFlashLight
- id: CP14SpellScrollWaterCreation
- id: CP14SpellScrollPlantGrowth
- id: CP14SpellScrollCounterSpell
- id: CP14ActionSpellMagicalAcceleration
- id: CP14EnergyCrystalSmallEmpty
- id: CP14BaseSharpeningStone
- id: CP14ScrapCopper

View File

@@ -590,7 +590,7 @@
id: CP14GeneralSpells
name: cp14-loadout-general-spells
minLimit: 0
maxLimit: 2
maxLimit: 3
loadouts:
- CP14ActionSpellFlameCreation
- CP14ActionSpellCureWounds
@@ -600,6 +600,7 @@
- CP14ActionSpellSphereOfLight
- CP14ActionSpellManaConsume
- CP14ActionSpellManaGift
- CP14ActionSpellCounterSpell
- CP14ActionSpellShadowGrab
- CP14ActionSpellWaterCreation
- CP14ActionSpellFreeze
@@ -772,6 +773,19 @@
traits:
- CP14ManaWasting
- type: loadout
id: CP14ActionSpellCounterSpell
dummyEntity: CP14ActionSpellCounterSpell
actions:
- CP14ActionSpellCounterSpell
effects:
- !type:JobRequirementLoadoutEffect
requirement:
!type:TraitsRequirement
inverted: true
traits:
- CP14ManaWasting
- type: loadout
id: CP14ActionSpellBeerCreation
dummyEntity: CP14ActionSpellBeerCreation