From ac5579c7fd31f8a3f8c58ace8946a9a19d827fc9 Mon Sep 17 00:00:00 2001 From: comasqw Date: Mon, 9 Dec 2024 21:34:28 +0400 Subject: [PATCH] added base old magic scroll --- .../Objects/ModularTools/Magic/ring.yml | 1 + .../Objects/ModularTools/Magic/scrolls.yml | 98 +++++++++++++++++++ .../Objects/ModularTools/Magic/staff.yml | 10 +- .../ModularCraft/Magic/magic_scrolls.yml | 27 +++++ 4 files changed, 132 insertions(+), 4 deletions(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/scrolls.yml create mode 100644 Resources/Prototypes/_CP14/ModularCraft/Magic/magic_scrolls.yml diff --git a/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/ring.yml b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/ring.yml index b6f1ee00b8..e0f2feebba 100644 --- a/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/ring.yml +++ b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/ring.yml @@ -19,6 +19,7 @@ startProtoPart: CP14ClothingMagicRingBase startSlots: - RingMagicCrystal1 + - OldMagicScroll1 - type: CP14MagicManacostModify # Blue ring diff --git a/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/scrolls.yml b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/scrolls.yml new file mode 100644 index 0000000000..a4b40982aa --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/scrolls.yml @@ -0,0 +1,98 @@ +# Base +- type: entity + parent: BaseItem + id: CP14BaseOldMagicScroll + categories: [ ForkFiltered ] + name: old magic scroll + abstract: true + components: + - type: Sprite + sprite: _CP14/Objects/Bureaucracy/paper.rsi + - type: Item + size: Tiny + - type: Flammable + fireSpread: true + alwaysCombustible: true + damage: + types: + Heat: 1 + - type: FireVisuals + sprite: Effects/fire.rsi + normalState: fire + - type: Damageable + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 15 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + Ash: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: Food + solution: food + delay: 7 + forceFeedDelay: 7 + - type: FlavorProfile + flavors: + - paper + - CP14Magic + - type: BadFood + - type: SolutionContainerManager + solutions: + food: + maxVol: 1 + reagents: + - ReagentId: Fiber + Quantity: 1 + +# Earth + +- type: entity + id: CP14OldMagicScroll_Earth5 + parent: CP14BaseOldMagicScroll + suffix: Earth, 5 + components: + - type: Sprite + layers: + - state: paper_filled + color: "#000000" + - state: magic + shader: unshaded + - type: CP14ModularCraftPart + possibleParts: + - OldMagicScroll_Earth5 + +- type: entity + id: CP14OldMagicScroll_Earth10 + parent: CP14BaseOldMagicScroll + suffix: Earth, 10 + components: + - type: Sprite + layers: + - state: paper_filled + color: "#000000" + - state: magic + shader: unshaded + - type: CP14ModularCraftPart + possibleParts: + - OldMagicScroll_Earth10 + +- type: entity + id: CP14OldMagicScroll_Earth15 + parent: CP14BaseOldMagicScroll + suffix: Earth, 15 + components: + - type: Sprite + layers: + - state: paper_filled + color: "#000000" + - state: magic + shader: unshaded + - type: CP14ModularCraftPart + possibleParts: + - OldMagicScroll_Earth15 diff --git a/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/staff.yml b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/staff.yml index c996d42e24..176c4de39c 100644 --- a/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/staff.yml +++ b/Resources/Prototypes/_CP14/Entities/Objects/ModularTools/Magic/staff.yml @@ -55,12 +55,13 @@ breakOnMove: false slots: - neck + - type: CP14MagicManacostModify + globalModifier: 0.9 - type: CP14ModularCraftStartPoint startProtoPart: CP14MagicStaff_GlowingWooden startSlots: - MagicCrystalHolder - - type: CP14MagicManacostModify - globalModifier: 0.9 + - OldMagicScroll1 # Wooden staff - type: entity @@ -79,9 +80,10 @@ breakOnMove: false slots: - neck + - type: CP14MagicManacostModify + globalModifier: 1.1 - type: CP14ModularCraftStartPoint startProtoPart: CP14MagicStaff_Wooden startSlots: - MagicCrystalHolder - - type: CP14MagicManacostModify - globalModifier: 1.1 + - OldMagicScroll1 diff --git a/Resources/Prototypes/_CP14/ModularCraft/Magic/magic_scrolls.yml b/Resources/Prototypes/_CP14/ModularCraft/Magic/magic_scrolls.yml new file mode 100644 index 0000000000..988691fcd7 --- /dev/null +++ b/Resources/Prototypes/_CP14/ModularCraft/Magic/magic_scrolls.yml @@ -0,0 +1,27 @@ +# Earth +- type: modularPart + id: OldMagicScroll_Earth5 + targetSlot: OldMagicScroll1 + sourcePart: CP14OldMagicScroll_Earth5 + modifiers: + - !type:EditManacostModify + modifiers: + Earth: 0.95 + +- type: modularPart + id: OldMagicScroll_Earth10 + targetSlot: OldMagicScroll1 + sourcePart: CP14OldMagicScroll_Earth10 + modifiers: + - !type:EditManacostModify + modifiers: + Earth: 0.90 + +- type: modularPart + id: OldMagicScroll_Earth15 + targetSlot: OldMagicScroll1 + sourcePart: CP14OldMagicScroll_Earth15 + modifiers: + - !type:EditManacostModify + modifiers: + Earth: 0.85