-
Notifications
You must be signed in to change notification settings - Fork 43
Base Changeling Stuff #968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Ermucat
wants to merge
10
commits into
EphemeralSpace:master
Choose a base branch
from
Ermucat:Changeling
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1eaf90b
Base Changeling Stuff
Ermucat d6e1112
Whoops
Ermucat b132737
Update Content.Server/_ES/Radstorm/ESRadstormRoundEndRuleSystem.cs
Ermucat 32e233c
Correct changeling description grammar
Ermucat 2a85e72
Removes Morgue soul stuff since we dont use it anyway
Ermucat 4d35a79
Merge branch 'Changeling' of https://github.com/Ermucat/goon-space in…
Ermucat 2cb0fc6
RIP clothing
Ermucat a6456f8
Edits comment
Ermucat 2601b83
Merge branch 'master' into Changeling
Ermucat e841668
Merge branch 'master' into Changeling
Ermucat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,28 @@ | ||
| using Content.Server.Polymorph.Systems; | ||
| using Content.Shared.Changeling; | ||
| using Content.Shared.Mobs.Components; | ||
| using Content.Shared.Mobs.Systems; | ||
|
|
||
| namespace Content.Server._ES.Changeling; | ||
|
|
||
| public sealed class ESChangelingDevourSystem : EntitySystem | ||
| { | ||
| [Dependency] private readonly MobStateSystem _mobState = default!; | ||
| [Dependency] private readonly PolymorphSystem _polymorph = default!; | ||
|
|
||
| public override void Initialize() | ||
| { | ||
| base.Initialize(); | ||
|
|
||
| SubscribeLocalEvent<MobStateComponent, ESEntityDevouredEvent>(OnDevoured); | ||
| } | ||
|
|
||
| public void OnDevoured(EntityUid uid, MobStateComponent component, ref ESEntityDevouredEvent args) | ||
| { | ||
| if (_mobState.IsDead(uid)) | ||
| { | ||
| _polymorph.PolymorphEntity(uid, args.HuskProto); | ||
| } | ||
| } | ||
|
|
||
| } |
This file contains hidden or 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,7 @@ | ||
| namespace Content.Server._ES.Radstorm; | ||
|
|
||
| [RegisterComponent] | ||
| public sealed partial class ESRadstormObjectiveComponent : Component | ||
| { | ||
|
|
||
| } |
This file contains hidden or 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,7 @@ | ||
| namespace Content.Server._ES.Radstorm; | ||
|
|
||
| [RegisterComponent] | ||
| public sealed partial class ESRadstormImmuneComponent : Component | ||
| { | ||
|
|
||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
14 changes: 12 additions & 2 deletions
14
Content.Shared/Roles/Components/ChangelingRoleComponent.cs
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. didn't show the line I was trying to show, it's "ActionExistStasis" |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,9 +1,19 @@ | ||
| using Robust.Shared.GameStates; | ||
| using Content.Shared.Actions.Components; | ||
| using Robust.Shared.GameStates; | ||
|
|
||
| namespace Content.Shared.Roles.Components; | ||
|
|
||
| /// <summary> | ||
| /// Added to mind role entities to tag that they are a changeling. | ||
| /// </summary> | ||
| [RegisterComponent, NetworkedComponent] | ||
| public sealed partial class ChangelingRoleComponent : BaseMindRoleComponent; | ||
| public sealed partial class ChangelingRoleComponent : BaseMindRoleComponent | ||
| // ES Start | ||
| { | ||
| [DataField] | ||
| public string? StatisAction = "ActionExistStatis"; | ||
|
|
||
| [DataField] | ||
| public EntityUid? StatisActionEntity; | ||
| } | ||
|
|
13 changes: 13 additions & 0 deletions
13
Content.Shared/_ES/Actions/ESRandomActionGrantComponent.cs
This file contains hidden or 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,13 @@ | ||
| using Content.Shared.EntityTable.EntitySelectors; | ||
|
|
||
| namespace Content.Shared._ES.Actions; | ||
|
|
||
| [RegisterComponent] | ||
| public sealed partial class ESRandomActionGrantComponent : Component | ||
| { | ||
| /// <summary> | ||
| /// The objectives that this troupe gives to its members | ||
| /// </summary> | ||
| [DataField] | ||
| public EntityTableSelector Actions = new NoneSelector(); | ||
| } |
This file contains hidden or 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,27 @@ | ||
| using Content.Shared.Actions; | ||
| using Content.Shared.EntityTable; | ||
|
|
||
| namespace Content.Shared._ES.Actions; | ||
|
|
||
| public sealed class RandomActionGrantSystem : EntitySystem | ||
| { | ||
| [Dependency] private readonly SharedActionsSystem _actions = default!; | ||
| [Dependency] private readonly EntityTableSystem _entityTable = default!; | ||
|
|
||
| public override void Initialize() | ||
| { | ||
| base.Initialize(); | ||
| SubscribeLocalEvent<ESRandomActionGrantComponent, MapInitEvent>(OnMapInit); | ||
| } | ||
|
|
||
| private void OnMapInit(Entity<ESRandomActionGrantComponent> ent, ref MapInitEvent args) | ||
| { | ||
| var Actions = _entityTable.GetSpawns(ent.Comp.Actions); | ||
|
|
||
| foreach (var action in Actions) | ||
| { | ||
| EntityUid? actionEnt = null; | ||
| _actions.AddAction(ent.Owner, ref actionEnt, action); | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
Content.Shared/_ES/Masks/Changeling/ChemicalStingEvents.cs
This file contains hidden or 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,12 @@ | ||
| using Content.Shared.Actions; | ||
|
|
||
| namespace Content.Shared._ES.Changeling; | ||
|
|
||
| public sealed partial class ESChemicalStingEvent : EntityTargetActionEvent | ||
| { | ||
| /// <summary> | ||
| /// Name of the solution to draw the injection chems from (what will be injected) | ||
| /// </summary> | ||
| [DataField] | ||
| public string SolutionName = "Injector"; | ||
| } |
29 changes: 29 additions & 0 deletions
29
Content.Shared/_ES/Masks/Changeling/ChemicalStingSystem.cs
This file contains hidden or 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,29 @@ | ||
| using Content.Shared.Chemistry.EntitySystems; | ||
|
|
||
| namespace Content.Shared._ES.Changeling; | ||
|
|
||
| public sealed class ChemicalStingSystem : EntitySystem | ||
| { | ||
| [Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!; | ||
|
|
||
| public override void Initialize() | ||
| { | ||
| base.Initialize(); | ||
|
|
||
| SubscribeLocalEvent<ESChemicalStingEvent>(OnChemicalInjection); | ||
| } | ||
|
|
||
| private void OnChemicalInjection(ESChemicalStingEvent args) | ||
| { | ||
| if (args.Handled) | ||
| return; | ||
|
|
||
| if (!_solutionContainer.TryGetSolution(args.Action.Owner, args.SolutionName, out _, out var solution) || | ||
| !_solutionContainer.TryGetInjectableSolution(args.Target, out var targetSolution, out _)) | ||
| return; | ||
|
|
||
| _solutionContainer.AddSolution(targetSolution.Value, solution); | ||
|
|
||
| args.Handled = true; | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
Content.Shared/_ES/Masks/Changeling/ESChangelingStatisEvent.cs
This file contains hidden or 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,14 @@ | ||
| using Content.Shared.Actions; | ||
|
|
||
| namespace Content.Shared._ES.Changeling; | ||
|
|
||
| public sealed partial class ESChangelingStatisEvent : InstantActionEvent | ||
| { | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Raised on an entity when Its mind is attempting to ghost out. | ||
| /// </summary> | ||
| [ByRefEvent] | ||
| public record struct ESGhostAttemptEvent(EntityUid Mind, bool Cancelled = false); | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.