Refactor magic speak system to be a component added to actions (#36328)

This commit is contained in:
J
2025-05-04 18:34:19 +01:00
committed by GitHub
parent 81cbb31425
commit 7b352643d5
28 changed files with 115 additions and 115 deletions

View File

@@ -74,5 +74,3 @@
- BlockMovement
- Item
- MeleeRequiresWield
speech: action-speech-spell-animate
doSpeech: false

View File

@@ -158,7 +158,8 @@
orGroup: Guns
- id: RevolverCapGunFake
orGroup: Guns
speech: action-speech-spell-summon-guns
- type: SpeakOnAction
sentence: action-speech-spell-summon-guns
- type: entity
id: ActionSummonMagic
@@ -205,4 +206,5 @@
orGroup: Magics
- id: RGBStaff
orGroup: Magics
speech: action-speech-spell-summon-magic
- type: SpeakOnAction
sentence: action-speech-spell-summon-magic

View File

@@ -14,4 +14,5 @@
event: !type:InstantSpawnSpellEvent
prototype: WallForce
posData: !type:TargetInFront
speech: action-speech-spell-forcewall
- type: SpeakOnAction
sentence: action-speech-spell-forcewall

View File

@@ -12,4 +12,5 @@
sprite: Objects/Magic/magicactions.rsi
state: knock
event: !type:KnockSpellEvent
speech: action-speech-spell-knock
- type: SpeakOnAction
sentence: action-speech-spell-knock

View File

@@ -18,4 +18,5 @@
sprite: Mobs/Species/Human/organs.rsi
state: brain
event: !type:MindSwapSpellEvent
speech: action-speech-spell-mind-swap
- type: SpeakOnAction
sentence: action-speech-spell-mind-swap

View File

@@ -17,7 +17,8 @@
state: fireball
event: !type:ProjectileSpellEvent
prototype: ProjectileFireball
speech: action-speech-spell-fireball
- type: SpeakOnAction
sentence: action-speech-spell-fireball
- type: ActionUpgrade
effectedLevels:
2: ActionFireballII
@@ -41,7 +42,8 @@
state: fireball
event: !type:ProjectileSpellEvent
prototype: ProjectileFireball
speech: action-speech-spell-fireball
- type: SpeakOnAction
sentence: action-speech-spell-fireball
- type: entity
id: ActionFireballIII
@@ -61,4 +63,5 @@
state: fireball
event: !type:ProjectileSpellEvent
prototype: ProjectileFireball
speech: action-speech-spell-fireball
- type: SpeakOnAction
sentence: action-speech-spell-fireball

View File

@@ -15,4 +15,5 @@
- id: MobCarpMagic
amount: 3
offset: 0, 1
speech: action-speech-spell-summon-magicarp
- type: SpeakOnAction
sentence: action-speech-spell-summon-magicarp

View File

@@ -17,7 +17,8 @@
sprite: Objects/Magic/magicactions.rsi
state: gib
event: !type:SmiteSpellEvent
speech: action-speech-spell-smite
- type: SpeakOnAction
sentence: action-speech-spell-smite
- type: Magic
requiresClothes: true
@@ -47,9 +48,10 @@
sprite: Clothing/Mask/cluwne.rsi
state: icon
event: !type:ChangeComponentsSpellEvent
speech: action-speech-spell-cluwne
toAdd:
- type: Cluwne
- type: SpeakOnAction
sentence: action-speech-spell-cluwne
- type: Magic
requiresClothes: true
@@ -72,10 +74,11 @@
sprite: Objects/Specific/Janitorial/soap.rsi
state: omega-4
event: !type:ChangeComponentsSpellEvent
speech: action-speech-spell-slip
toAdd:
- type: Slippery
- type: StepTrigger
requiredTriggeredSpeed: -1
- type: SpeakOnAction
sentence: action-speech-spell-slip
- type: Magic
requiresClothes: true

View File

@@ -11,4 +11,5 @@
state: nothing
event: !type:ChargeSpellEvent
charge: 1
speech: DI'RI CEL!
- type: SpeakOnAction
sentence: action-speech-spell-charge