From 824c67676959370a34c8a2ecb1b362ffcdaf61e9 Mon Sep 17 00:00:00 2001 From: Ed Date: Sat, 3 Aug 2024 00:07:28 +0300 Subject: [PATCH] fireball spell --- .../Entities/Actions/Spells/fireball.yml | 90 ++++++++++++++++++ .../Entities/Actions/Spells/shadow_grab.yml | 5 +- .../_CP14/Entities/Clothing/Rings/ring.yml | 18 ++++ .../Magic/spells_icons.rsi/fireball.png | Bin 0 -> 1585 bytes .../Effects/Magic/spells_icons.rsi/meta.json | 3 + 5 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Actions/Spells/fireball.yml create mode 100644 Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/fireball.png diff --git a/Resources/Prototypes/_CP14/Entities/Actions/Spells/fireball.yml b/Resources/Prototypes/_CP14/Entities/Actions/Spells/fireball.yml new file mode 100644 index 0000000000..68f21bc6ef --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Actions/Spells/fireball.yml @@ -0,0 +1,90 @@ +- type: entity + id: CP14ActionSpellFireball + name: Fireball + description: An effective method of destruction - an explosive fireball + components: + - type: CP14MagicEffect + manaCost: 20 + effects: + - !type:CP14SpellSpawnEntityOnUser + spawns: + - CP14ImpactEffectFireball + - !type:CP14SpellProjectile + prototype: CP14Fireball + - type: CP14MagicEffectVerbalAspect + startSpeech: "Quaeso, quemdam inter vos quaero... " + endSpeech: "A pila!" + - type: CP14MagicEffectSomaticAspect + - type: CP14MagicEffectCastingVisual + proto: CP14RuneFireball + - type: WorldTargetAction + useDelay: 20 + checkCanAccess: false + raiseOnUser: true + range: 60 + itemIconStyle: BigAction + sound: !type:SoundPathSpecifier + path: /Audio/Magic/rumble.ogg + icon: + sprite: _CP14/Effects/Magic/spells_icons.rsi + state: fireball + event: !type:CP14DelayedWorldTargetActionEvent + delay: 3 + +- type: entity + id: CP14RuneFireball + parent: CP14BaseMagicRune + categories: [ HideSpawnMenu ] + components: + - type: PointLight + color: "#eea911" + - type: Sprite + layers: + - state: sun + color: "#eea911" + shader: unshaded + - state: medium_circle + color: "#fdda5d" + shader: unshaded + +- type: entity + id: CP14ImpactEffectFireball + parent: CP14BaseMagicImpact + categories: [ HideSpawnMenu ] + components: + - type: Sprite + layers: + - state: wave_up + color: "#eea911" + shader: unshaded + +- type: entity + id: CP14Fireball + parent: BulletRocket + name: artificial flame + categories: [ HideSpawnMenu ] + components: + - type: PointLight + color: "#E25822" + radius: 2.0 + energy: 5.0 + - type: Projectile + damage: + types: + Heat: 10 + - type: IgnitionSource + temperature: 400 + ignited: true + - type: IgniteOnCollide + fireStacks: 0.35 + - type: Sprite + sprite: Objects/Weapons/Guns/Projectiles/magic.rsi + layers: + - state: fireball + shader: unshaded + - type: Explosive + explosionType: FireBomb + totalIntensity: 15 + intensitySlope: 1 + maxIntensity: 6 + canCreateVacuum: false \ No newline at end of file diff --git a/Resources/Prototypes/_CP14/Entities/Actions/Spells/shadow_grab.yml b/Resources/Prototypes/_CP14/Entities/Actions/Spells/shadow_grab.yml index 4b61f5b817..8eec7fa9e9 100644 --- a/Resources/Prototypes/_CP14/Entities/Actions/Spells/shadow_grab.yml +++ b/Resources/Prototypes/_CP14/Entities/Actions/Spells/shadow_grab.yml @@ -13,10 +13,6 @@ spawns: - CP14ImpactEffectShadowGrab effects: - - !type:CP14SpellApplyEntityEffect - effects: - - !type:Paralyze - paralyzeTime: 0.5 - !type:CP14SpellThrowToUser throwPower: 10 - !type:CP14SpellSpawnEntityOnTarget @@ -36,6 +32,7 @@ state: shadow_grab event: !type:CP14DelayedEntityTargetActionEvent delay: 2 + hidden: true - type: entity id: CP14ImpactEffectShadowGrab diff --git a/Resources/Prototypes/_CP14/Entities/Clothing/Rings/ring.yml b/Resources/Prototypes/_CP14/Entities/Clothing/Rings/ring.yml index 9a73411b47..83158c5b06 100644 --- a/Resources/Prototypes/_CP14/Entities/Clothing/Rings/ring.yml +++ b/Resources/Prototypes/_CP14/Entities/Clothing/Rings/ring.yml @@ -47,6 +47,24 @@ spells: - CP14ActionSpellFlameCreation +- type: entity + id: CP14ClothingRingFireball + parent: CP14ClothingRingBase + name: conductive ring + description: A standard mana-conductive ring that allows the user to summon fireballs. + suffix: Fireball + components: + - type: Sprite + layers: + - state: brass_ring + - state: ruby_stone_small + - type: CP14SpellStorageRequireAttune + - type: CP14MagicAttuningItem + - type: CP14SpellStorageAccessWearing + - type: CP14SpellStorage + spells: + - CP14ActionSpellFireball + - type: entity id: CP14ClothingRingCureWounds parent: CP14ClothingRingBase diff --git a/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/fireball.png b/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/fireball.png new file mode 100644 index 0000000000000000000000000000000000000000..2d037218c2b9b8464a54552996c3d5fef0d3ab21 GIT binary patch literal 1585 zcmV-12G043P)Px)>q$gGR9J=Wm(7nHM;XSSw?4Z1V|K>7v+G^JtYcylIk5mGCbDv{g=6D@gg61W zJtOf4aOLWAj@SDt*UO|^Y}jpJ!}WPCD2{{@Z2)E_hUf_NKjW3btI^(8HW7K4+s3n z05&hgf^#Q%U?plMG~UC*!h;bDfq*nkD~&`FwWLMq8d%uwPYeH00Pfln)x&?u`rYf= zt#5^Xy$rZwL0(un-5HZq4w{rp(*&`Ppjp76OrbVMtfLQ=gcItR}RGj&idbW0g`DuNJVDoNzR^m#u_+16!0LTG6;1u+iJ5ofQh@_ekQPPc$9RFMT!9`FbzYh`&?Otm?c^)J+Tv?uwCj2Wq zhw*zKocF_YX5`p=Bb>rqKx7Hunwf=@%A7p-*jRClQPeE@9#G6)fS{jO* zkT2Je$J@ZPv^2%P1gmp?oTpBW`a;K<4BJe^F>481Y`qX1KD1KwH%>9vj>!T6IRLzG z05Y0jg#uFmf`(&o;(u8@G85p0uo`zUhl2YA#;=> zT>xnI4IqxT1R9d4NxP3nZ^;bsdv4WR^#6DNS=7m^5k{0bKBnm_I`24rX2xXIv-(pLj;H{kPulk@v zfgr6S?s)0bktVIDh-3)C;L_F{X0Q5>?DG^-4M~nddH*TsErB?960r-|AQDMnlCM8= z5kjC`efNYb2PM0jX*T#8Z#jincKj%Z9rObPfeE@_c(cBJ`!uqK?HhfF!)AaG83Jn1 zA%9;0`f?yZ&|EYL7j?_c_WxY2UOgjPaV3(tM%7qOEZ8)f*V2E$&>7CHZtO>|N3Ew( zU%&OdFRIk{%StY^7yU+7A*KR`Z1*SG-VSVDhy@o;K~spvNA8`?w^cBE+RY9b%3Be| zf?^ZOZd<@25@CGKu5SL$XG5sq;1BZNr7aRc38pR1tDH+$bKx9vw%FbcKYJtUErIAU zqdIdq!LHXitwG2vfZX=@%UTmwTn=8{@a|p*k?t{XNBaVD%`EXD{_AN zt3+~xYg=$uT0hEx$%zT;P0r#5$DAC_=y{&>ADgbu&=Z(Kx)(;*t0al;mq!{@#LcfYh@ zaex3w00BG#FbD9g07y9eY4XN1DEuX~H6aP>y&XU+^hbF_OourqSAs|Ays z1#kpFbw_+V=itB?I-Y&W@pk&bV|NYgK=c4Sj%_Ed0$2o4OvHBzYTp*$FT}2U2H*iK zOs-b}JT?(7F&X)z6bC+WfU&(b)|2NQ5H|s6u*Xt*n7FeQ?00000NkvXXu0mjfoptDN literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/meta.json b/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/meta.json index 427e8a028a..55474e51c7 100644 --- a/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/meta.json +++ b/Resources/Textures/_CP14/Effects/Magic/spells_icons.rsi/meta.json @@ -13,6 +13,9 @@ { "name": "flame_creation" }, + { + "name": "fireball" + }, { "name": "ice_dagger" },