update crystals modalrPart structure

This commit is contained in:
comasqw
2024-12-09 20:59:59 +04:00
parent 6b41aa71ca
commit cd618efc31
9 changed files with 34 additions and 24 deletions

View File

@@ -24,7 +24,7 @@ public sealed partial class EditManacostModify : CP14ModularCraftModifier
if (modifier >= 1f)
manacostModifyComp.Modifiers[magicType] += modifier - 1f;
else
manacostModifyComp.Modifiers[magicType] += 1f - modifier;
manacostModifyComp.Modifiers[magicType] -= 1f - modifier;
}
else
{

View File

@@ -20,6 +20,7 @@
- type: entity
id: CP14MagicCrystalSpellSphereOfLight
parent: CP14MagicCrystalBase
suffix: SphereOfLight
components:
- type: Sprite
color: "#FFFF00"

View File

@@ -4,6 +4,7 @@
id: CP14ClothingMagicRingBase
categories: [ ForkFiltered ]
abstract: true
name: ring
components:
- type: Item
size: Tiny

View File

@@ -1,3 +1,11 @@
# SpellSphereOfLight
- type: modularPart
id: BaseCrystalModifiers_SpellSphereOfLight
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- type: modularPart
id: RingMagicCrystal1_SpellSphereOfLight
targetSlot: RingMagicCrystal1
@@ -7,9 +15,9 @@
state: ring_grey_icon
color: "#FFFF00"
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- !type:Inherit
copyFrom:
- BaseCrystalModifiers_SpellSphereOfLight
- type: modularPart
id: BlueHolderMagicCrystal1_SpellSphereOfLight
@@ -17,12 +25,12 @@
sourcePart: CP14MagicCrystalSpellSphereOfLight
iconSprite:
- sprite: _CP14/Objects/ModularTools/Magic/magic_crystal.rsi
state: blueholder_grey_icon1
state: holder_grey_icon1
color: "#FFFF00"
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- !type:Inherit
copyFrom:
- BaseCrystalModifiers_SpellSphereOfLight
- type: modularPart
id: BlueHolderMagicCrystal2_SpellSphereOfLight
@@ -30,12 +38,12 @@
sourcePart: CP14MagicCrystalSpellSphereOfLight
iconSprite:
- sprite: _CP14/Objects/ModularTools/Magic/magic_crystal.rsi
state: blueholder_grey_icon2
state: holder_grey_icon2
color: "#FFFF00"
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- !type:Inherit
copyFrom:
- BaseCrystalModifiers_SpellSphereOfLight
- type: modularPart
id: BlueHolderMagicCrystal3_SpellSphereOfLight
@@ -43,12 +51,12 @@
sourcePart: CP14MagicCrystalSpellSphereOfLight
iconSprite:
- sprite: _CP14/Objects/ModularTools/Magic/magic_crystal.rsi
state: blueholder_grey_icon3
state: holder_grey_icon3
color: "#FFFF00"
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- !type:Inherit
copyFrom:
- BaseCrystalModifiers_SpellSphereOfLight
- type: modularPart
id: BlueHolderMagicCrystal4_SpellSphereOfLight
@@ -56,9 +64,9 @@
sourcePart: CP14MagicCrystalSpellSphereOfLight
iconSprite:
- sprite: _CP14/Objects/ModularTools/Magic/magic_crystal.rsi
state: blueholder_grey_icon4
state: holder_grey_icon4
color: "#FFFF00"
modifiers:
- !type:AddSpellsToSpellStorage
spells:
- CP14ActionSpellSphereOfLight
- !type:Inherit
copyFrom:
- BaseCrystalModifiers_SpellSphereOfLight

View File

@@ -11,16 +11,16 @@
"name": "ring_grey_icon"
},
{
"name": "blueholder_grey_icon1"
"name": "holder_grey_icon1"
},
{
"name": "blueholder_grey_icon2"
"name": "holder_grey_icon2"
},
{
"name": "blueholder_grey_icon3"
"name": "holder_grey_icon3"
},
{
"name": "blueholder_grey_icon4"
"name": "holder_grey_icon4"
}
]
}