Void's Applause (#34591)

* Adds single clap emote

* Adds missing single clap loc

* Adds void blink effects, sound, and sprite

* Adds VoidApplauseEvent and implements it into the Magic System and Grimoire

* Removes commented Spawn code in Shared Magic System. Adds comments to replace pointlight with a negative light in the future.

* Makes spells Mono

* Changes to swap positions.

* Makes Void Applause target body only

* Update Content.Shared/Magic/Events/VoidApplauseSpellEvent.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update Content.Client/Magic/MagicSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update Resources/Audio/Effects/Emotes/attributions.yml

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update Resources/Prototypes/SoundCollections/emotes.yml

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Update Content.Shared/Magic/Events/VoidApplauseSpellEvent.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

* Removes duplicate effect spawning from server

* Puts Void Applause effect on server, lets lizards hear clap

* Adds single clap to diona

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
keronshb
2025-01-30 19:10:35 -05:00
committed by GitHub
parent abcd68273b
commit 6565ba52b2
18 changed files with 189 additions and 4 deletions

View File

@@ -64,6 +64,20 @@
- !type:ListingLimitedStockCondition
stock: 1
# Taking an Eldritch spell, good proof of concept and a way to celebrate everything magic.
- type: listing
id: SpellbookVoidApplause
name: spellbook-voidapplause-name
description: spellbook-voidapplause-desc
productAction: ActionVoidApplause
cost:
WizCoin: 1
categories:
- SpellbookUtility
conditions:
- !type:ListingLimitedStockCondition
stock: 1
- type: listing
id: SpellbookCharge
name: spellbook-charge-name

View File

@@ -0,0 +1,25 @@
- type: entity
id: EffectVoidBlink
name: void blink
categories: [ HideSpawnMenu ]
save: false
components:
# TODO: PointLight is temp until I can make a shader & overlay for negative light or until this can support it
- type: PointLight
radius: 3
energy: 1
softness: 10
color: "#301934"
- type: Transform
noRot: true
- type: Sprite
sprite: Objects/Magic/Eldritch/eldritch_actions.rsi
drawdepth: Effects
noRot: true
layers:
- state: "voidblink"
- type: TimedDespawn
lifetime: 1
- type: Tag
tags:
- HideContextMenu

View File

@@ -16,3 +16,28 @@
sprite: Objects/Magic/magicactions.rsi
state: blink
event: !type:TeleportSpellEvent
# TODO: Second level upgrade sometime that allows swapping with all objects
- type: entity
id: ActionVoidApplause
name: Void Applause
description: Clap your hands and swap places with the target.
components:
- type: EntityTargetAction
useDelay: 15
range: 16
sound: !type:SoundPathSpecifier
path: /Audio/Magic/Eldritch/voidblink.ogg
itemIconStyle: BigAction
whitelist:
components:
- Body
canTargetSelf: false
interactOnMiss: false
checkCanAccess: false
repeat: false
icon:
sprite: Objects/Magic/Eldritch/eldritch_actions.rsi
state: voidblink
event: !type:VoidApplauseSpellEvent
effect: EffectVoidBlink

View File

@@ -30,6 +30,11 @@
- /Audio/Effects/Emotes/clap3.ogg
- /Audio/Effects/Emotes/clap4.ogg
- type: soundCollection
id: ClapSingle
files:
- /Audio/Effects/Emotes/clap-single.ogg
- type: soundCollection
id: Snaps
files:

View File

@@ -438,6 +438,8 @@
sounds:
Clap:
collection: Claps
ClapSingle:
collection: ClapSingle
Snap:
collection: Snaps
params:
@@ -450,6 +452,9 @@
sounds:
Clap:
path: /Audio/Voice/Diona/diona_clap.ogg
# TODO: Replace this with a similar wood themed single clap
ClapSingle:
collection: ClapSingle
Snap:
path: /Audio/Voice/Diona/diona_snap.ogg
params:
@@ -468,6 +473,8 @@
variation: 0.125
Clap:
collection: Claps
ClapSingle:
collection: ClapSingle
Snap:
collection: Snaps
params:

View File

@@ -214,11 +214,26 @@
- BorgChassis
chatMessages: ["chat-emote-msg-clap"]
chatTriggers:
- clap
- claps
- clapping
- clapped
- type: emote
id: ClapSingle
name: chat-emote-name-clap-single
category: Hands
icon: Interface/Emotes/clap.png #TODO: Needs a sprite that distinguishes it better from clap
whitelist:
components:
- Hands
blacklist:
components:
- BorgChassis
chatMessages: [ "chat-emote-msg-clap-single" ]
chatTriggers:
- clap
- claps their hands together
- type: emote
id: Snap
name: chat-emote-name-snap