Magic types, magic clothing (#539)

* magic types + auto magic spell description

* manacost calculation event

* manacost ffect clothing

* Update orbs.yml

* magic type not required
This commit is contained in:
Ed
2024-11-06 08:44:03 +03:00
committed by GitHub
parent b5df675187
commit a9bdab0705
29 changed files with 339 additions and 78 deletions

View File

@@ -6,6 +6,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -0.5
- type: CP14MagicEffect
magicType: Evocation
manaCost: 20
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -6,6 +6,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -0.9
- type: CP14MagicEffect
magicType: Evocation
manaCost: 15
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -6,6 +6,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -0.7
- type: CP14MagicEffect
magicType: Evocation
manaCost: 20
effects:
- !type:CP14SpellSpawnEntityOnUser

View File

@@ -4,6 +4,7 @@
description: A artificial flame forms in your hand, illuminating your surroundings. You can throw it to use it as a disposable weapon.
components:
- type: CP14MagicEffect
magicType: Conjuration
manaCost: 5
effects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -4,6 +4,7 @@
description: Creates a flash of bright, blinding light.
components:
- type: CP14MagicEffect
magicType: Abjuration
manaCost: 10
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -4,6 +4,7 @@
description: Materialization of a temporary sharp ice throwing dagger
components:
- type: CP14MagicEffect
magicType: Evocation
manaCost: 15
effects:
- !type:CP14SpellSpawnEntityOnTarget
@@ -89,6 +90,6 @@
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
collection: GlassBreak
- !type:DoActsBehavior
acts: ["Destruction"]

View File

@@ -6,6 +6,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -0.25
- type: CP14MagicEffect
magicType: Evocation
manaCost: 5
effects:
- !type:CP14SpellProjectile

View File

@@ -4,7 +4,9 @@
description: You can transfer a small amount of your magical energy to a target entity or magical object.
components:
- type: CP14MagicEffect
magicType: Necromancy
manaCost: 12
canModifyManacost: false
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -4,6 +4,7 @@
description: You attract a ghostly hand that draws an object or entity to you
components:
- type: CP14MagicEffect
magicType: Transmutation
manaCost: 10
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -6,6 +6,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -0.4
- type: CP14MagicEffect
magicType: Conjuration
manaCost: 20
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -4,6 +4,7 @@
description: Materialization of a bright and safe light source.
components:
- type: CP14MagicEffect
magicType: Conjuration
manaCost: 10
effects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -125,6 +125,8 @@
sprite: _CP14/Clothing/Head/Roles/General/triangularhat.rsi
- type: Clothing
sprite: _CP14/Clothing/Head/Roles/General/triangularhat.rsi
- type: CP14MagicClothingManacostModify
globalModifier: 0.8
- type: entity
parent: CP14ClothingHeadBase
@@ -135,4 +137,6 @@
- type: Sprite
sprite: _CP14/Clothing/Head/Roles/General/triangularhat_golden.rsi
- type: Clothing
sprite: _CP14/Clothing/Head/Roles/General/triangularhat_golden.rsi
sprite: _CP14/Clothing/Head/Roles/General/triangularhat_golden.rsi
- type: CP14MagicClothingManacostModify
globalModifier: 0.8

View File

@@ -103,6 +103,7 @@
- type: CP14MagicEffectCastSlowdown
speedMultiplier: -1.0
- type: CP14MagicEffect
magicType: Conjuration
manaCost: 5
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget

View File

@@ -10,30 +10,30 @@
drawDepth: Mobs
noRot: true
- type: entity
parent: CP14BaseRitualOrb
id: CP14RitualOrbCreation
name: creation orb
categories: [ HideSpawnMenu]
components:
- type: CP14MagicRitualOrb
powers:
Creation: 1
- type: Sprite
layers:
- state: creation
shader: unshaded
- type: entity
parent: CP14BaseRitualOrb
id: CP14RitualOrbDestruction
name: destruction orb
categories: [ HideSpawnMenu]
components:
- type: CP14MagicRitualOrb
powers:
Destruction: 1
- type: Sprite
layers:
- state: destruction
shader: unshaded
#- type: entity
# parent: CP14BaseRitualOrb
# id: CP14RitualOrbCreation
# name: creation orb
# categories: [ HideSpawnMenu]
# components:
# - type: CP14MagicRitualOrb
# powers:
# Creation: 1
# - type: Sprite
# layers:
# - state: creation
# shader: unshaded
#
#- type: entity
# parent: CP14BaseRitualOrb
# id: CP14RitualOrbDestruction
# name: destruction orb
# categories: [ HideSpawnMenu]
# components:
# - type: CP14MagicRitualOrb
# powers:
# Destruction: 1
# - type: Sprite
# layers:
# - state: destruction
# shader: unshaded

View File

@@ -1,9 +1,39 @@
- type: magicType
id: Creation
name: cp14-magic-type-creation
color: "#4bcc7d"
id: Abjuration
name: cp14-magic-type-abjuration #Ограждение
color: "#c94328"
- type: magicType
id: Destruction
name: cp14-magic-type-destruction
color: "#c94c1a"
id: Conjuration
name: cp14-magic-type-conjuration #Призыв
color: "#8e28c9"
- type: magicType
id: Divination
name: cp14-magic-type-divination #Прорицание
color: "#81d3e3"
- type: magicType
id: Enchantment
name: cp14-magic-type-enchantment #Очарование
color: "#7147a1"
- type: magicType
id: Evocation
name: cp14-magic-type-evocation #Воплощение
color: "#47a14a"
- type: magicType
id: Illusion
name: cp14-magic-type-illusion #Иллюзия
color: "#cc1275"
- type: magicType
id: Necromancy
name: cp14-magic-type-necromancy #Некромантия
color: "#4dc4a4"
- type: magicType
id: Transmutation
name: cp14-magic-type-transmutation #Трансмутация
color: "#3333d4"