From d89ef56907c283e5b322d2e4b5b127e37deade6f Mon Sep 17 00:00:00 2001 From: firebat4321 Date: Tue, 10 Jun 2025 07:14:07 -0400 Subject: [PATCH] Firebolt (#1354) * added firebolt spell yml, added to spellbook tree * Added new sprites for Firebolt action/spellbook, in-game bolt sprite. * Missing comma from fire .json file. * Updated firebolt IDs to use own ID instead of Fireball's ID. * Spell doesn't break on move now. * Updated on soundHit effect * Corrected Fireball IDs to Firebolt * Updated copyright entries * Update firebolt.yml --------- Co-authored-by: Red <96445749+TheShuEd@users.noreply.github.com> --- .../Entities/Actions/Spells/Fire/firebolt.yml | 98 ++++++++++++++++++ .../Prototypes/_CP14/Skill/pyrokinetic.yml | 14 +++ .../Actions/Spells/fire.rsi/firebolt.png | Bin 0 -> 474 bytes .../_CP14/Actions/Spells/fire.rsi/meta.json | 7 +- .../Effects/Magic/firebolt.rsi/firebolt.png | Bin 0 -> 583 bytes .../Effects/Magic/firebolt.rsi/meta.json | 14 +++ 6 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Actions/Spells/Fire/firebolt.yml create mode 100644 Resources/Textures/_CP14/Actions/Spells/fire.rsi/firebolt.png create mode 100644 Resources/Textures/_CP14/Effects/Magic/firebolt.rsi/firebolt.png create mode 100644 Resources/Textures/_CP14/Effects/Magic/firebolt.rsi/meta.json diff --git a/Resources/Prototypes/_CP14/Entities/Actions/Spells/Fire/firebolt.yml b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Fire/firebolt.yml new file mode 100644 index 0000000000..896ecd6f81 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Actions/Spells/Fire/firebolt.yml @@ -0,0 +1,98 @@ +- type: entity + id: CP14ActionSpellFirebolt + name: Firebolt + description: A staple of a pyrokinetic's arsenal - a small but potent bolt of fire. + components: + - type: Sprite + sprite: _CP14/Actions/Spells/fire.rsi + state: fireball + - type: CP14MagicEffectCastSlowdown + speedMultiplier: 0.75 + - type: CP14MagicEffectManaCost + manaCost: 10 + - type: CP14MagicEffect + magicType: Fire + effects: + - !type:CP14SpellProjectile + prototype: CP14Firebolt + - !type:CP14SpellSpawnEntityOnUser + spawns: + - CP14ImpactEffectFirebolt + - type: CP14MagicEffectVerbalAspect + endSpeech: "Ignis acus!" + - type: CP14MagicEffectCastingVisual + proto: CP14RuneFirebolt + - type: CP14MagicEffectPacifiedBlock + - type: EntityWorldTargetAction + repeat: true + checkCanAccess: false + raiseOnUser: true + range: 60 + itemIconStyle: BigAction + sound: !type:SoundPathSpecifier + path: /Audio/Magic/rumble.ogg + icon: + sprite: _CP14/Actions/Spells/fire.rsi + state: firebolt + event: !type:CP14DelayedEntityWorldTargetActionEvent + cooldown: 1.0 + breakOnMove: false + +- type: entity + id: CP14RuneFirebolt + parent: CP14BaseMagicRune + categories: [ HideSpawnMenu ] + save: false + components: + - type: PointLight + color: "#eea911" + - type: Sprite + layers: + - state: medium_circle + color: "#fdda5d" + shader: unshaded + +- type: entity + id: CP14ImpactEffectFirebolt + parent: CP14BaseMagicImpact + categories: [ HideSpawnMenu ] + save: false + components: + - type: Sprite + layers: + - state: wave_up + color: "#eea911" + shader: unshaded + +- type: entity + id: CP14Firebolt + parent: BaseBullet + name: firebolt + categories: [ HideSpawnMenu ] + save: false + components: + - type: PointLight + color: "#E25822" + radius: 1.1 + energy: 1.0 + - type: Projectile + damage: + types: + Heat: 10 + soundHit: + path: /Audio/Weapons/Guns/Hits/energy_metal1.ogg + - type: Sprite + sprite: _CP14/Effects/Magic/firebolt.rsi + layers: + - state: firebolt + shader: unshaded + +- type: entity + parent: CP14BaseSpellScrollFire + id: CP14SpellScrollFirebolt + name: firebolt spell scroll + components: + - type: CP14SpellStorage + spells: + - CP14ActionSpellFirebolt + diff --git a/Resources/Prototypes/_CP14/Skill/pyrokinetic.yml b/Resources/Prototypes/_CP14/Skill/pyrokinetic.yml index 2aa5256173..c1a5dc55df 100644 --- a/Resources/Prototypes/_CP14/Skill/pyrokinetic.yml +++ b/Resources/Prototypes/_CP14/Skill/pyrokinetic.yml @@ -102,6 +102,20 @@ - !type:NeedPrerequisite prerequisite: PyrokineticT2 +- type: cp14Skill + id: CP14ActionSpellFirebolt + skillUiPosition: 6, 6 + tree: Pyrokinetic + icon: + sprite: _CP14/Actions/Spells/fire.rsi + state: firebolt + effects: + - !type:AddAction + action: CP14ActionSpellFirebolt + restrictions: + - !type:NeedPrerequisite + prerequisite: PyrokineticT2 + # T3 - type: cp14Skill diff --git a/Resources/Textures/_CP14/Actions/Spells/fire.rsi/firebolt.png b/Resources/Textures/_CP14/Actions/Spells/fire.rsi/firebolt.png new file mode 100644 index 0000000000000000000000000000000000000000..ac658353bc073ac170ac7c430315b63ab638d84f GIT binary patch literal 474 zcmV<00VV#4P)pGj7da6R9Hu2U>F6XAu!TIfRUU4_#ej5fUJ*k6)K+;Gg(Mc3{v}l zGQ)plJs*!qlru2AAk`SSdXho_-SQ7dB>M$dJ})BMcA!S09RRcZ$x)pap8s#TDYY2p zXp$TNvRuacN)1Z<=MwJ;Y$3%&Oz?qxkIiyW6cD2ypBkbPA-d&^a9=+sXg@s1*fP|k zC_c>42+BPKqu_CbPBU__BP_>lH%?1ITKqF18aGa70GWl?0mN7ivJB)Cyq3b;3bP!_ zXOx?c+X3&xCHn+yo)^OOl9J`95(3!ryuknGtw7(tB^dEY3dl+W=)S*u)S_Pa|3d+g zxzx)4FgIe&1;{}UQV6mfCU%F>;)AmFiAIn(EE`hdD2#FdvR^X=gFaAt<>36x87InZhcT*!Uk+HyQ$?Api;i0BB&PVa4vR Qp#T5?07*qoM6N<$g4Te_x*DLql_w!zVToKY}HKP!y3&OpP>dcjV$3B(SZEC42L^DM5kW2{(rPp?Ko5}^W5f_vLm%$iN}8;< zYc++1N70x9Dazne=s|<0ps$ayPWD=hkULYvuvP+E0DSSaIRNJNS*Hr144TP_(-}Kc zG$QScun&pk2^0bZK#;o}6pUb}JXQcMmJbRN#8$=)@D&mSpN60*;M?yb2;d@8A6o_P z5~-uSovld0swGXq&RAj`0-;<1KHvSb-&(w-HO{dxFRS5?D^e%{+$U1U<(<@q)QCE> z(h?RIMvONSxpPH*wX@vB-OT|4{sN36njI-XD7g0(^uGsD>=Z@~@E8#2hQ$oz7Do!e zx8GAhV9@$Wj}*W~_{A4+aYyzUdRG++cozM(J9VZC zGxUW*T)lGk^ly9tQLC8dWrL#Yy6OG#YQLfUCmlMjQUyE_y1kBkQ7$f@fo*6~5kFXk zps2ZjA>~!G2Qdo>wpWtBj