-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ethereal Jaunt Spell for Wizard & Jaunt ECS (#33201)
* Act * Adds Jaunt ECS and related prototypes * Adds jaunt sounds * Adds enter and exit sound support to polymorphs * Updates jaunt description * Adds jaunt action sprite and changes jaunt polymorph to use it * Adds Jaunt and upgrade to the wizard grimoire * Makes base mob jaunt parent off of incorporeal and basemob, adds blue ghost sprite for ethereal jaunt * Update Resources/Locale/en-US/store/spellbook-catalog.ftl Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Resources/Prototypes/Entities/Mobs/Player/jaunt_mobs.yml Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Resources/Prototypes/Entities/Mobs/Player/jaunt_mobs.yml Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Resources/Prototypes/Entities/Mobs/Player/jaunt_mobs.yml Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/Polymorph/PolymorphPrototype.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/Polymorph/PolymorphPrototype.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * removes meta changes * removes other meta changes * adds context menu and a description to basemobjaunt * comments for jaunt component and adds on component shutdown method * Update Content.Shared/Jaunt/JauntComponent.cs * Update Content.Shared/Jaunt/JauntComponent.cs * Update Content.Shared/Jaunt/JauntComponent.cs * Update Resources/Prototypes/Catalog/spellbook_catalog.yml --------- Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com> Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
- Loading branch information
1 parent
9643598
commit fa3a04a
Showing
14 changed files
with
223 additions
and
2 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
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,26 @@ | ||
using Robust.Shared.GameStates; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.Jaunt; | ||
|
||
/// <summary> | ||
/// Used to control various aspects of a Jaunt. | ||
/// Can be used in place of giving a jaunt-action directly. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class JauntComponent : Component | ||
{ | ||
/// <summary> | ||
/// Which Jaunt Action the component should grant. | ||
/// </summary> | ||
[DataField] | ||
public EntProtoId JauntAction = "ActionPolymorphJaunt"; | ||
|
||
/// <summary> | ||
/// The jaunt action itself. | ||
/// </summary> | ||
public EntityUid? Action; | ||
|
||
// TODO: Enter & Exit Times and Whitelist when Actions are reworked and can support it | ||
// TODO: Cooldown pausing when Actions can support it | ||
} |
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,26 @@ | ||
using Content.Shared.Actions; | ||
|
||
namespace Content.Shared.Jaunt; | ||
public sealed class JauntSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly SharedActionsSystem _actions = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<JauntComponent, MapInitEvent>(OnInit); | ||
SubscribeLocalEvent<JauntComponent, ComponentShutdown>(OnShutdown); | ||
} | ||
|
||
private void OnInit(Entity<JauntComponent> ent, ref MapInitEvent args) | ||
{ | ||
_actions.AddAction(ent.Owner, ref ent.Comp.Action, ent.Comp.JauntAction); | ||
} | ||
|
||
private void OnShutdown(Entity<JauntComponent> ent, ref ComponentShutdown args) | ||
{ | ||
_actions.RemoveAction(ent.Owner, ent.Comp.Action); | ||
} | ||
|
||
} | ||
|
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
Binary file not shown.
Binary file not shown.
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,40 @@ | ||
- type: entity | ||
name: jaunt | ||
parent: [Incorporeal, BaseMob] | ||
id: BaseMobJaunt | ||
description: Faint traces of a humanoid figure linger here | ||
suffix: Ethereal | ||
components: | ||
- type: ContentEye | ||
maxZoom: 1.44,1.44 | ||
- type: Eye | ||
drawFov: false | ||
- type: Input | ||
context: "ghost" | ||
- type: InputMover | ||
- type: MovementSpeedModifier | ||
baseSprintSpeed: 12 | ||
baseWalkSpeed: 8 | ||
- type: Visibility | ||
layer: 2 | ||
- type: Spectral | ||
|
||
# Should be slow, for balance | ||
- type: entity | ||
name: jaunt | ||
parent: BaseMobJaunt | ||
id: EtherealJaunt | ||
suffix: Wizard | ||
components: | ||
- type: Sprite | ||
sprite: Mobs/Ghosts/ghost_human.rsi | ||
color: "#60f7eb" | ||
layers: | ||
- state: animated | ||
shader: unshaded | ||
noRot: true | ||
overrideContainerOcclusion: true | ||
drawdepth: Ghosts | ||
- type: MovementSpeedModifier | ||
baseSprintSpeed: 6 | ||
baseWalkSpeed: 4 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -25,8 +25,11 @@ | |
{ | ||
"name": "magicmissile" | ||
}, | ||
{ | ||
"name": "jaunt" | ||
}, | ||
{ | ||
"name": "gib" | ||
} | ||
] | ||
} | ||
} |