Wizard Touch Spells (Smite, Cluwne's Curse, Slippery Slope) (#34531)

* Renames Smite Spells yml to Touch Spells and Renames Smite Spells region to the same

* Adds wizard clothes requirement to Smite. Adds Cluwne spell. Adds EnsureCompOnTouchSpellEvent and implements it in the magicsystem

* Adds Smite and Cluwne to the grimore and loc for them

* Adds Slippery Slope spell and SlipOnCollide

* Adds handled for comp spell event

* Removes super slippery

* Removes EnsureCompOnTouchSpell it was redundant with ChangeComponentsSpellEvent

* Makes requirement-free action for smite

* checks if we should be slipping what we touch

* Removes SlipOnCollide, adds negative speed for steptrigger

* Removes slip on collide adds negative speed for steptrigger
This commit is contained in:
keronshb
2025-02-02 14:23:41 -05:00
committed by GitHub
parent 2991f1ad40
commit c82f77ef07
9 changed files with 145 additions and 105 deletions

View File

@@ -1,20 +0,0 @@
- type: entity
id: ActionSmite
name: Smite
description: Instantly gibs a target.
components:
- type: EntityTargetAction
useDelay: 60
itemIconStyle: BigAction
whitelist:
components:
- Body
canTargetSelf: false
interactOnMiss: false
sound: !type:SoundPathSpecifier
path: /Audio/Magic/disintegrate.ogg
icon:
sprite: Objects/Magic/magicactions.rsi
state: gib
event: !type:SmiteSpellEvent
speech: action-speech-spell-smite

View File

@@ -0,0 +1,83 @@
- type: entity
id: ActionSmite
name: Smite
description: Instantly gibs a target.
components:
- type: EntityTargetAction
useDelay: 90
itemIconStyle: BigAction
whitelist:
components:
- Body
canTargetSelf: false
interactOnMiss: false
sound: !type:SoundPathSpecifier
path: /Audio/Magic/disintegrate.ogg
icon:
sprite: Objects/Magic/magicactions.rsi
state: gib
event: !type:SmiteSpellEvent
speech: action-speech-spell-smite
- type: Magic
requiresClothes: true
# For the Snail
- type: entity
id: ActionSmiteNoReq
parent: ActionSmite
name: Smite
description: Instantly gibs a target.
components:
- type: Magic
- type: entity
id: ActionCluwne
name: Cluwne's Curse
description: Turns someone into a Cluwne!
components:
- type: EntityTargetAction
useDelay: 120
itemIconStyle: BigAction
whitelist:
components:
- Body
canTargetSelf: false
interactOnMiss: false
sound: !type:SoundPathSpecifier
path: /Audio/Items/brokenbikehorn.ogg
icon:
sprite: Clothing/Mask/cluwne.rsi
state: icon
event: !type:ChangeComponentsSpellEvent
speech: action-speech-spell-cluwne
toAdd:
- type: Cluwne
- type: Magic
requiresClothes: true
- type: entity
id: ActionSlippery
name: Slippery Slope
description: Make someone slippery.
components:
- type: EntityTargetAction
useDelay: 60
itemIconStyle: BigAction
whitelist:
components:
- Body
canTargetSelf: false
interactOnMiss: false
sound: !type:SoundPathSpecifier
path: /Audio/Effects/slip.ogg
icon:
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: Magic
requiresClothes: true