Magic spells code expansion (#692)
* split manacost in separate component * stamina spells * toggleable actions * swap activeCasting on ActiveDoAfter * remove dublication * Update CP14SharedMagicSystem.ToggleableActions.cs * EntityWoldTarget * mana glove done * fix spell scrolls interrupting * fix cooldown problem * clean up, edit stamina system
This commit is contained in:
@@ -8,9 +8,10 @@
|
||||
state: earth_wall
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.3
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 15
|
||||
- type: CP14MagicEffect
|
||||
magicType: Earth
|
||||
manaCost: 15
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: flame_creation
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 5
|
||||
- type: CP14MagicEffect
|
||||
magicType: Fire
|
||||
manaCost: 5
|
||||
effects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: fireball
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.3
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 20
|
||||
- type: CP14MagicEffect
|
||||
magicType: Fire
|
||||
manaCost: 20
|
||||
effects:
|
||||
- !type:CP14SpellSpawnEntityOnUser
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: shadow_step
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.8
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 20
|
||||
- type: CP14MagicEffect
|
||||
magicType: Gate
|
||||
manaCost: 20
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: cure_burn
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.5
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: Healing
|
||||
manaCost: 10
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: cure_poison
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.5
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: Healing
|
||||
manaCost: 10
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: cure_wounds
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.5
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: Healing
|
||||
manaCost: 10
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: sphere_of_light
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: LightDarkness
|
||||
manaCost: 10
|
||||
effects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: flash_light
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: LightDarkness
|
||||
manaCost: 10
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
state: mana_consume
|
||||
- type: CP14MagicEffect
|
||||
magicType: Meta
|
||||
manaCost: 0
|
||||
canModifyManacost: false
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
@@ -34,9 +32,9 @@
|
||||
icon:
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: mana_consume
|
||||
event: !type:CP14DelayedEntityTargetActionEvent
|
||||
cooldown: 1
|
||||
castDelay: 2
|
||||
event: !type:CP14ToggleableEntityTargetActionEvent
|
||||
cooldown: 5
|
||||
castTime: 10
|
||||
breakOnMove: true
|
||||
|
||||
- type: entity
|
||||
|
||||
@@ -6,10 +6,11 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: mana_gift
|
||||
- type: CP14MagicEffect
|
||||
magicType: Meta
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 12
|
||||
canModifyManacost: false
|
||||
- type: CP14MagicEffect
|
||||
magicType: Meta
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
@@ -39,9 +40,9 @@
|
||||
icon:
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: mana_gift
|
||||
event: !type:CP14DelayedEntityTargetActionEvent
|
||||
cooldown: 1
|
||||
castDelay: 1
|
||||
event: !type:CP14ToggleableEntityTargetActionEvent
|
||||
cooldown: 5
|
||||
castTime: 10
|
||||
|
||||
- type: entity
|
||||
id: CP14RuneManaGift
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: shadow_grab
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: Movement
|
||||
manaCost: 10
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: resurrection
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.2
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 100
|
||||
- type: CP14MagicEffect
|
||||
magicType: Necromancy
|
||||
manaCost: 100
|
||||
telegraphyEffects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: water_creation
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 10
|
||||
- type: CP14MagicEffect
|
||||
magicType: Water
|
||||
manaCost: 10
|
||||
effects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
- type: Sprite
|
||||
sprite: _CP14/Effects/Magic/spells_icons.rsi
|
||||
state: beer_creation
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 50
|
||||
- type: CP14MagicEffect
|
||||
magicType: Water
|
||||
manaCost: 50
|
||||
effects:
|
||||
- !type:CP14SpellSpawnEntityOnTarget
|
||||
spawns:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
state: ice_shards
|
||||
- type: CP14MagicEffectCastSlowdown
|
||||
speedMultiplier: 0.75
|
||||
- type: CP14MagicEffectManaCost
|
||||
manaCost: 5
|
||||
- type: CP14MagicEffect
|
||||
magicType: Water
|
||||
manaCost: 5
|
||||
effects:
|
||||
- !type:CP14SpellProjectile
|
||||
prototype: CP14IceShard
|
||||
|
||||
Reference in New Issue
Block a user