forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wizard Mind Swap Spell (space-wizards#33416)
* working mind swap spell * Removing unncessary spacing Co-authored-by: Thomas <[email protected]> * Changing mind swap speech Co-authored-by: keronshb <[email protected]> * All requested changes in review * Stores owned by mind instead of body * Requested changes, traitor uplink fixed * Revert "Requested changes, traitor uplink fixed" This reverts commit 2ceac67. * Revert "Stores owned by mind instead of body" This reverts commit dfb72ab. * Separate target and performer stun duration --------- Co-authored-by: Thomas <[email protected]> Co-authored-by: keronshb <[email protected]>
- Loading branch information
1 parent
612f8be
commit cd23805
Showing
6 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Content.Shared.Actions; | ||
|
||
namespace Content.Shared.Magic.Events; | ||
|
||
public sealed partial class MindSwapSpellEvent : EntityTargetActionEvent, ISpeakSpell | ||
{ | ||
[DataField] | ||
public TimeSpan PerformerStunDuration = TimeSpan.FromSeconds(10); | ||
|
||
[DataField] | ||
public TimeSpan TargetStunDuration = TimeSpan.FromSeconds(10); | ||
|
||
[DataField] | ||
public string? Speech { get; private set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- type: entity | ||
id: ActionMindSwap | ||
name: Mind Swap | ||
description: Exchange bodies with another person! | ||
components: | ||
- type: EntityTargetAction | ||
useDelay: 300 | ||
itemIconStyle: BigAction | ||
whitelist: | ||
components: | ||
- Body | ||
canTargetSelf: false | ||
interactOnMiss: false | ||
sound: !type:SoundPathSpecifier | ||
path: /Audio/Magic/staff_animation.ogg | ||
icon: | ||
sprite: Mobs/Species/Human/organs.rsi | ||
state: brain | ||
event: !type:MindSwapSpellEvent | ||
speech: action-speech-spell-mind-swap |