From 6706a141637abbc97ecb8f212dc04a030c76be31 Mon Sep 17 00:00:00 2001 From: Ed Date: Sat, 29 Mar 2025 14:22:53 +0300 Subject: [PATCH] secret polymorph spell --- .../Actions/Spells/Life/sheep_polymorph.yml | 73 ++++++++++++++++++ .../Prototypes/_CP14/Polymorph/polymorph.yml | 13 ++++ Resources/Prototypes/_CP14/Skill/healing.yml | 12 ++- .../_CP14/Actions/Spells/misc.rsi/meta.json | 3 + .../Actions/Spells/misc.rsi/polymorph.png | Bin 0 -> 671 bytes 5 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Actions/Spells/Life/sheep_polymorph.yml create mode 100644 Resources/Prototypes/_CP14/Polymorph/polymorph.yml create mode 100644 Resources/Textures/_CP14/Actions/Spells/misc.rsi/polymorph.png diff --git a/Resources/Prototypes/_CP14/Entities/Actions/Spells/Life/sheep_polymorph.yml b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Life/sheep_polymorph.yml new file mode 100644 index 0000000000..854d150a2c --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Life/sheep_polymorph.yml @@ -0,0 +1,73 @@ +- type: entity + id: CP14ActionSpellSheepPolymorph + name: Sheep polymorph + description: You curse the target, turning it into a silly sheep for a short period of time. + components: + - type: Sprite + sprite: _CP14/Actions/Spells/misc.rsi + state: polymorph + - type: CP14MagicEffectCastSlowdown + speedMultiplier: 0.5 + - type: CP14MagicEffectManaCost + manaCost: 30 + - type: CP14MagicEffect + telegraphyEffects: + - !type:CP14SpellSpawnEntityOnTarget + spawns: + - CP14ImpactEffectSheepPolymorph + effects: + - !type:CP14SpellSpawnEntityOnTarget + spawns: + - CP14ImpactEffectSheepPolymorph + - !type:CP14SpellApplyEntityEffect + effects: + - !type:Polymorph + prototype: CP14Sheep + - type: CP14MagicEffectVerbalAspect + startSpeech: "Pellis dolorem..." + endSpeech: "non novit" + - type: CP14MagicEffectCastingVisual + proto: CP14RuneSheepPolymorph + - type: EntityTargetAction + whitelist: + components: + - MobState + range: 3 + itemIconStyle: BigAction + interactOnMiss: false + sound: !type:SoundPathSpecifier + path: /Audio/Magic/rumble.ogg + icon: + sprite: _CP14/Actions/Spells/misc.rsi + state: polymorph + event: !type:CP14DelayedEntityTargetActionEvent + cooldown: 30 + castDelay: 1.5 + breakOnMove: false + +- type: entity + id: CP14RuneSheepPolymorph + parent: CP14BaseMagicRune + categories: [ HideSpawnMenu ] + components: + - type: PointLight + color: "#8532a8" + - type: Sprite + layers: + - state: sun + color: "#8532a8" + shader: unshaded + - state: double_outer + color: "#db35c8" + shader: unshaded + +- type: entity + id: CP14ImpactEffectSheepPolymorph + parent: CP14BaseMagicImpact + categories: [ HideSpawnMenu ] + components: + - type: Sprite + layers: + - state: particles_up + color: "#db35c8" + shader: unshaded \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Polymorph/polymorph.yml b/Resources/Prototypes/_CP14/Polymorph/polymorph.yml new file mode 100644 index 0000000000..5d3189701f --- /dev/null +++ b/Resources/Prototypes/_CP14/Polymorph/polymorph.yml @@ -0,0 +1,13 @@ +- type: polymorph + id: CP14Sheep + configuration: + entity: CP14MobSheep + forced: true + revertOnCrit: true + revertOnDeath: true + transferDamage: true + polymorphSound: !type:SoundPathSpecifier + path: /Audio/Magic/forcewall.ogg + exitPolymorphSound: !type:SoundPathSpecifier + path: /Audio/Magic/forcewall.ogg + duration: 15 \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Skill/healing.yml b/Resources/Prototypes/_CP14/Skill/healing.yml index 9f3b527200..2509b08192 100644 --- a/Resources/Prototypes/_CP14/Skill/healing.yml +++ b/Resources/Prototypes/_CP14/Skill/healing.yml @@ -70,4 +70,14 @@ sprite: _CP14/Actions/Spells/healing.rsi state: speed_music effect: !type:AddAction - action: CP14ActionSpellSpeedBallade \ No newline at end of file + action: CP14ActionSpellSpeedBallade + +- type: cp14Skill + id: CP14ActionSpellSheepPolymorph + skillUiPosition: 4, 10 + tree: Healing + icon: + sprite: _CP14/Actions/Spells/misc.rsi + state: polymorph + effect: !type:AddAction + action: CP14ActionSpellSheepPolymorph \ No newline at end of file diff --git a/Resources/Textures/_CP14/Actions/Spells/misc.rsi/meta.json b/Resources/Textures/_CP14/Actions/Spells/misc.rsi/meta.json index 4bc6d501a7..1c0e5d594e 100644 --- a/Resources/Textures/_CP14/Actions/Spells/misc.rsi/meta.json +++ b/Resources/Textures/_CP14/Actions/Spells/misc.rsi/meta.json @@ -9,6 +9,9 @@ "states": [ { "name": "magical_acceleration" + }, + { + "name": "polymorph" } ] } \ No newline at end of file diff --git a/Resources/Textures/_CP14/Actions/Spells/misc.rsi/polymorph.png b/Resources/Textures/_CP14/Actions/Spells/misc.rsi/polymorph.png new file mode 100644 index 0000000000000000000000000000000000000000..0b87c050f5815e37b0beb0207a0c444f267bc788 GIT binary patch literal 671 zcmV;Q0$}}#P)Px%SxH1eR9J=0Ry}LmKp1`$@)z8}3fUZ#uh|qY4x~-TEP-G$rDO3JNFcZ*6dLGg z0$I`}MJYH#AWIwzWC+4|$&#-_+Dz@C{t?%q+;NibPX3VHz95k9o_n9?p7+&B!2cW# zuSF-#F*9ibV8D&2Kxw!za1I%8TmicEV+k8qz%=^n-;%3{qGLuBa9$}>;s>x6a`<>$ z4b8K~ow^N%ncpad*1s#fjpfuu2z*{CQvh&W59@0M5I?}TpSOmn`uqMTtgjU~1_0(a zO6d2xJWnQT4lF8k4iGvx^%LKLGIqoL$_Y*(QmkVu`( z`4-rx&8-~@04uA@F|3Faqv5q^ zq5xUqr^jc0FD7Q#q%kqHJs=V@3v~$@_PVAY6JzL;aAkE_YV)X(=)f=`mL@d;!z7iJ zWfW1`ABfGZ9m@J32|H2@n=n=Uw0@UU<(b+)e%ir={{d$`YYnH7`vd?0002ovPDHLk FV1ggMFY*8Y literal 0 HcmV?d00001