From 80d668361c9509256e8f9a128d4d364a70e088ba Mon Sep 17 00:00:00 2001 From: Viator-MV Date: Wed, 14 May 2025 14:56:27 +0300 Subject: [PATCH] Mana trance (#1216) * That's it, Ed. * skill * CleanDisposed. * now heal * remake * bruh rechek * slowing * Update metamagic.yml * some ingame test and balance --------- Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> --- .../Actions/Spells/Meta/mana_trance.yml | 48 ++++++++++++++++++ .../Prototypes/_CP14/Skill/metamagic.yml | 16 +++++- .../Actions/Spells/meta.rsi/mana_trance.png | Bin 0 -> 330 bytes .../_CP14/Actions/Spells/meta.rsi/meta.json | 3 ++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Actions/Spells/Meta/mana_trance.yml create mode 100644 Resources/Textures/_CP14/Actions/Spells/meta.rsi/mana_trance.png diff --git a/Resources/Prototypes/_CP14/Entities/Actions/Spells/Meta/mana_trance.yml b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Meta/mana_trance.yml new file mode 100644 index 0000000000..b682bdce46 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Meta/mana_trance.yml @@ -0,0 +1,48 @@ +- type: entity + id: CP14ActionSpellManaTrance + name: Mana trance + description: You go into a trance for a while, restoring mana. + components: + - type: Sprite + sprite: _CP14/Actions/Spells/meta.rsi + state: mana_trance + - type: CP14MagicEffect + effects: + - !type:CP14SpellSpawnEntityOnTarget + spawns: + - CP14ImpactEffectManaGift + - !type:CP14SpellApplyEntityEffect + effects: + - !type:CP14ManaChange + manaDelta: 2 + safe: true + - !type:HealthChange + damage: + types: + CP14ManaDepletion: -0.1 + - type: CP14MagicEffectCastingVisual + proto: CP14RuneManaTrance + - type: InstantAction + itemIconStyle: BigAction + icon: + sprite: _CP14/Actions/Spells/meta.rsi + state: mana_trance + event: !type:CP14ToggleableInstantActionEvent + cooldown: 60 + castTime: 120 + hidden: true + breakOnMove: true + +- type: entity + id: CP14RuneManaTrance + parent: CP14BaseMagicRune + categories: [ HideSpawnMenu ] + save: false + components: + - type: PointLight + color: "#5096d4" + - type: Sprite + layers: + - state: sun + color: "#5096d4" + shader: unshaded \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Skill/metamagic.yml b/Resources/Prototypes/_CP14/Skill/metamagic.yml index e4ec21ef60..9225ec3d8a 100644 --- a/Resources/Prototypes/_CP14/Skill/metamagic.yml +++ b/Resources/Prototypes/_CP14/Skill/metamagic.yml @@ -124,6 +124,20 @@ - !type:NeedPrerequisite prerequisite: MetamagicT2 +- type: cp14Skill + id: CP14ActionSpellManaTrance + skillUiPosition: 8, 2 + tree: Metamagic + icon: + sprite: _CP14/Actions/Spells/meta.rsi + state: mana_trance + effects: + - !type:AddAction + action: CP14ActionSpellManaTrance + restrictions: + - !type:NeedPrerequisite + prerequisite: MetamagicT2 + # T3 - type: cp14Skill @@ -139,4 +153,4 @@ additionalMana: 25 restrictions: - !type:NeedPrerequisite - prerequisite: MetamagicT2 \ No newline at end of file + prerequisite: MetamagicT2 diff --git a/Resources/Textures/_CP14/Actions/Spells/meta.rsi/mana_trance.png b/Resources/Textures/_CP14/Actions/Spells/meta.rsi/mana_trance.png new file mode 100644 index 0000000000000000000000000000000000000000..25b6cad3787d79eeff3e830b901ed67b87e90a52 GIT binary patch literal 330 zcmV-Q0k!^#P)Px$1W80eR9J=WRl5zsFc3Wu9ZH#bn1BX})(d!qq=XSzAgv{uOu#%>B5Koc(&c0l z$7c~a;#HRXdGDUj&j4$HHP{qOzRe|M5#+GGTnDVd#yIqg_CVD`tJ$wc4j0Pp0fKSp zH7=+eAkx!epL|BL0Bf*$9^sPA{J~B`PL#1apLuO2ndH@hY%M-Dn(o z8uLHl*40<7s3`JW%@=flhfLK&OI3{#%249_W((l<(qSQzn0cD}CMG%w$6}Ye#mTsn z77#*0qOM>{fJAq$2j|k&g7QzewF~LK)MhkWU3iw