Essence splitter (#948)

* disable rotting

* pipipi

* essence storage

* energy splitter

* Update essence_splitter.yml

* Update impact.png

* visual fixes

* sound fix

* Update twoHandedStaffs.yml

* unhardcode

* Update meta.json

* fix
This commit is contained in:
Ed
2025-02-27 13:48:38 +03:00
committed by GitHub
parent c6cc4daa3f
commit 5524e029f4
32 changed files with 350 additions and 74 deletions

View File

@@ -264,7 +264,7 @@
shiveringHeatRegulation: 2000
normalBodyTemperature: 310.15
thermalRegulationTemperatureThreshold: 25
- type: Perishable
#- type: Perishable #CP14 - disable rotting
- type: Butcherable
butcheringType: Spike # TODO human.
spawned:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 100
- type: CP14MagicEffect
magicType: Necromancy
magicType: Death
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 10
- type: CP14MagicEffect
magicType: Healing
magicType: Life
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 10
- type: CP14MagicEffect
magicType: Healing
magicType: Life
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 10
- type: CP14MagicEffect
magicType: Healing
magicType: Life
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 5
- type: CP14MagicEffect
magicType: Healing
magicType: Life
effects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 5
- type: CP14MagicEffect
magicType: Healing
magicType: Life
effects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 5
- type: CP14MagicEffect
magicType: Healing
magicType: Life
telegraphyEffects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -11,7 +11,7 @@
- type: CP14MagicEffectManaCost
manaCost: 5
- type: CP14MagicEffect
magicType: Healing
magicType: Life
effects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:

View File

@@ -98,5 +98,5 @@
sprite: _CP14/Clothing/Eyes/thaumaturgy_glasses.rsi
- type: Clothing
sprite: _CP14/Clothing/Eyes/thaumaturgy_glasses.rsi
- type: CP14MagicEnergyScanner
- type: CP14MagicEssenceScanner

View File

@@ -35,6 +35,14 @@
restitution: 0.3 # fite me
friction: 0.2
- type: entity
parent: CP14BaseEssence
id: CP14EssenceEarth
name: earth essence
components:
- type: Sprite
color: "#70533f"
- type: entity
parent: CP14BaseEssence
id: CP14EssenceFire
@@ -45,11 +53,11 @@
- type: entity
parent: CP14BaseEssence
id: CP14EssenceEarth
name: earth essence
id: CP14EssenceLife
name: life essence
components:
- type: Sprite
color: "#70533f"
color: "#89e04f"
- type: entity
parent: CP14BaseEssence
@@ -69,8 +77,24 @@
- type: entity
parent: CP14BaseEssence
id: CP14EssenceDarkness
name: darkness essence
id: CP14EssenceDimension
name: dimension essence
components:
- type: Sprite
color: "#391c57"
color: "#391c57"
- type: entity
parent: CP14BaseEssence
id: CP14EssenceDeath
name: death essence
components:
- type: Sprite
color: "#55877a"
- type: entity
parent: CP14BaseEssence
id: CP14EssenceElectric
name: electric essence
components:
- type: Sprite
color: "#caed72"

View File

@@ -66,7 +66,7 @@
- CP14ActionSpellResurrection
- type: CP14MagicManacostModify
modifiers:
Healing: 1.4
Life: 1.4
- type: CP14MagicEnergyExaminable
- type: CP14MagicEnergyContainer
energy: 80

View File

@@ -35,14 +35,20 @@
components:
- type: Sprite
color: "#5eabeb"
- type: CP14MagicEssenceContainer
essences:
Water: 3
- type: entity
parent: CP14CrystalShardBase
id: CP14CrystalShardHealing
suffix: Healing
suffix: Life
components:
- type: Sprite
color: "#3de063"
- type: CP14MagicEssenceContainer
essences:
Life: 3
- type: entity
parent: CP14CrystalShardBase
@@ -51,6 +57,9 @@
components:
- type: Sprite
color: "#ed731c"
- type: CP14MagicEssenceContainer
essences:
Fire: 3
- type: entity
parent: CP14CrystalShardBase
@@ -59,6 +68,9 @@
components:
- type: Sprite
color: "#f1c7ff"
- type: CP14MagicEssenceContainer
essences:
Light: 3
- type: entity
parent: CP14CrystalShardBase
@@ -67,11 +79,17 @@
components:
- type: Sprite
color: "#e6ff6b"
- type: CP14MagicEssenceContainer
essences:
Electric: 3
- type: entity
parent: CP14CrystalShardBase
id: CP14CrystalShardDarkness
suffix: Darkness
suffix: Dimension
components:
- type: Sprite
color: "#391c57"
color: "#391c57"
- type: CP14MagicEssenceContainer
essences:
Dimension: 3

View File

@@ -6,10 +6,7 @@
name: solution normalizer
description: An alchemical device that removes fine precipitates from solutions, and stabilizes it for further work
categories: [ ForkFiltered ]
placement:
mode: PlaceFree
components:
# TODO: energy consuming (magic or fireplace)
- type: InteractionOutline
- type: Sprite
drawdepth: Items

View File

@@ -0,0 +1,60 @@
- type: entity
id: CP14EssenceSplitter
parent:
- BaseStructureDynamic
name: essence splitter
description: A device capable of splitting objects into magical essence when overloaded with energy.
categories: [ ForkFiltered ]
components:
- type: InteractionOutline
- type: Sprite
drawdepth: Items
noRot: true
offset: 0, 0.2
sprite: _CP14/Structures/Specific/Thaumaturgy/essence_splitter.rsi
layers:
- state: base
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.25,0.25,0.25"
density: 125
mask:
- TabletopMachineMask
- type: CP14MagicEnergyExaminable
- type: CP14MagicEnergyContainer
maxEnergy: 50
energy: 0
unsafeSupport: true
- type: CP14MagicEssenceSplitter
whitelist:
components:
- Item
- type: entity
id: CP14EssenceSplitterImpactEffect
name: essence splitter impact
categories: [ HideSpawnMenu ]
components:
- type: Sprite
drawdepth: Effects
noRot: true
offset: 0, 0.2
sprite: _CP14/Structures/Specific/Thaumaturgy/essence_splitter.rsi
layers:
- state: impact
shader: unshaded
- type: PointLight
radius: 1.5
- type: TimedDespawn
lifetime: 3.95
- type: EffectVisuals
- type: Tag
tags:
- HideContextMenu
- type: AnimationPlayer
- type: EmitSoundOnSpawn
sound:
path: /Audio/Magic/ethereal_enter.ogg

View File

@@ -2,26 +2,31 @@
id: Earth
name: cp14-magic-type-earth
color: "#70533f"
essenceProto: CP14EssenceEarth
- type: magicType
id: Fire
name: cp14-magic-type-fire
color: "#d9741c"
essenceProto: CP14EssenceFire
- type: magicType
id: Healing
id: Life
name: cp14-magic-type-healing
color: "#89e04f"
essenceProto: CP14EssenceLife
- type: magicType
id: Light
name: cp14-magic-type-light
color: "#ba97b8"
essenceProto: CP14EssenceLight
- type: magicType
id: Dimension
name: cp14-magic-type-dimension
color: "#4e0691"
essenceProto: CP14EssenceDimension
- type: magicType
id: Meta
@@ -32,8 +37,16 @@
id: Water
name: cp14-magic-type-water
color: "#1c94d9"
essenceProto: CP14EssenceWater
- type: magicType
id: Necromancy
name: cp14-magic-type-necro
color: "#55877a"
id: Death
name: cp14-magic-type-death
color: "#55877a"
essenceProto: CP14EssenceDeath
- type: magicType
id: Electric
name: cp14-magic-type-electric
color: "#caed72"
essenceProto: CP14EssenceElectric