-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Changeling devour and transform #34002
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
Merged
slarticodefast
merged 129 commits into
space-wizards:master
from
poklj:Changeling-Devour-Transform
Aug 6, 2025
Merged
Changes from 51 commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
775f8c3
Initial:
poklj 200f2f2
I have genuinely no idea what i'm doing
poklj db32831
Holey moley, Transform, better devour, oh my!
poklj f9e0d6a
Proper tail stealing and Damage modifier attempt
poklj f0bbf9a
MAJOR CLEANUP AND FIXES AUGH 3 DAYS!!!
poklj f042f6b
Examine stuff, more cleanup, Jumpsuit ripping
poklj bdfad0a
Doing things properly, UI sorta kinda works.
poklj ff7a364
Got an entity for the Frontend transform
poklj a9129ff
Stick a camera into a fake mobs forehead
poklj 8482230
Raaaaadiallllllls also fix protection coefficents
poklj 058d1e2
absolutely massive cleanup, no more camera in mobs
poklj 71f96e8
Fix "Ui elements" dying on the screen
poklj e789000
ftl, cleanup, and fixing missing transform details
poklj 0c4aae9
Some extra cleanup
poklj 0c10c13
Fix some false assumptions about TypingIndicator
poklj 6bd3e33
Oooprs, forgot to add a Husked Corpse Loc
poklj 4bb6123
Missing period in the husked corpse loc
poklj 92b54ae
bad devour windup placeholder
poklj 27f31ee
Husking and WIP Lungs
poklj 0e4759b
Merge branch 'master' into Changeling-Devour-Transform
poklj c0c37ff
Add finalized Sprites for actions and final meta
poklj 58c246e
Remove ling lungs, Entity<> everything
poklj 5f87a3c
cleanup, admin logging, WIP Roles
poklj 59883bc
Admin verb, Roundstart, gamerule stuff
poklj ebcf385
Armor Coefficent Check
poklj 09e9071
move to UnrevivableComponent instead of husked
poklj 5236eb7
aaaaaaa CopyComp
poklj 5db5403
Cleanup, Moving more things to CopyComp
poklj 0e54f61
WIP
poklj 7f11247
Merge branch 'master' into Changeling-Devour-Transform
poklj 8417a04
Devour Windup noise, ForensicsSystem cleanup
poklj 3bd2522
Merge branch 'master' into Changeling-Devour-Transform
poklj 66b4cfb
Merge branch 'master' into Changeling-Devour-Transform
poklj 0277f4d
Revert VocalSystem Changes
poklj 0d99839
cleanup unneeded comments
poklj 210594b
Merge branch 'master' into Changeling-Devour-Transform
poklj be68925
Merge branch 'master' into Changeling-Devour-Transform
poklj e7a8bd8
revert an accidental line removal
poklj 511a9dc
Remove duplicate SharedHumanoidAppearanceSystem
poklj df05283
Cleanup Typo's and import Forensics components for Dna
poklj 4c260b7
Some more forensics calls
poklj 72355ae
cleanup use CopyComp for now until CopyComps
poklj 93915fe
CR cleanup
poklj 640c908
Merge branch 'master' into Changeling-Devour-Transform
poklj 142d53f
Undo some SharedHumanoidAppearanceSystem changes
poklj e597af4
Confound these spaces
poklj b541bce
Some Copycomp stuff and fixing some PVS override
poklj 2d490ea
Merge branch 'master' into Changeling-Devour-Transform
poklj 4c71a45
use the proper TryCopyComps that are merged
poklj c233d7d
Change TransformMenu with RadialWithSector
poklj 7a29710
Merge branch 'master' into Changeling-Devour-Transform
poklj 44bbacd
Merge branch 'master' into Changeling-Devour-Transform
poklj 9cbe58a
All sounds done, Fix lack of typing indicator issue
poklj 5bd8ca9
Merge branch 'master' into Changeling-Devour-Transform
poklj 96513df
Updated attributions to include used sound authors
poklj 487ba79
Merge branch 'master' into Changeling-Devour-Transform
poklj b6d10fd
some ftl typos and mind_role text issue
poklj 0d33c75
Merge branch 'master' into Changeling-Devour-Transform
poklj 58a8c0b
DNA, Screaming, appearance, grammar, wagging
poklj ab30efb
Fix UI stuff, partials, entprotoid, good practices
poklj 12da769
More CR stuff and documentation
poklj 6fd5b23
Predicted sounds and fix the comp clone list
poklj c9b71f9
Damage cap check, Identity Shutdown cleanup, cleanup
poklj 1f9b987
Sound stuff (but actually this time)
poklj a5ed8f9
Missed documentation
poklj e9f0069
Missed Documentation and a EntProtoId
poklj a403caa
Remove unused dependency
poklj fe77f24
Remove a nullcheck
poklj 301cfa4
Some dummy minplayers
poklj 2074b24
CR - Husked now uses a rem/ensure
poklj 82c5e1a
Merge branch 'master' into Changeling-Devour-Transform
poklj 864e30b
Update Actions in the Prototype
poklj fd2d7c1
Fixup mindswap handover
poklj 9719c81
Merge branch 'master' into Changeling-Devour-Transform
poklj acd0b9c
Fixup Missing meta from accidental "Take-theirs"
poklj 4b1e248
Add the Armblade to the roundstart-role
poklj 46953d4
Cleanup, CR (everything but the UI and renames)
poklj ae3c4d7
missed a spot
poklj 1dd0e36
missed some more whitespace
poklj 90025f7
Renames
poklj 8cd9fbe
Primary constructor and a space in these trying times
poklj 4e29a9d
User interface stuff for Slime transformation
poklj 0f720ee
popup prediction
ScarKy0 689cb4c
Ling devour no longer makes duplicate identities
poklj 3266e70
Merge branch 'Changeling-Devour-Transform' of https://github.com/pokl…
poklj c2d4558
add guard statements to OnClones
poklj ded7645
Merge branch 'master' into Changeling-Devour-Transform
poklj 39db153
SentOnlyToOwner additions
poklj 9690098
fix for sound stoppage error
poklj 6169c7d
Move Organ deleter into soon to be atomized husk
poklj dd199f7
clone event inventory
ScarKy0 6bc3aa1
mono sounds
ScarKy0 70f79c6
lower sound volume
ScarKy0 9f6fe75
Merge branch 'master' of https://github.com/space-wizards/space-stati…
ScarKy0 54618a0
Fix networked sound warning
poklj 2f0215b
Clone comps thing
poklj d86f86e
review
ScarKy0 1505837
attributions
ScarKy0 6c334e1
Merge remote-tracking branch 'upstream/master' into pr/34002
ScarKy0 089ec37
Fix clobbered changes
poklj ca8c477
I'm gonna weh out
poklj ecb4039
fix some very buggy git
poklj 15f09d0
okay its fixed
poklj 6afa29b
address most review points
slarticodefast 35da351
Merge branch 'master' into pr/34002
slarticodefast d263e2d
fix inventory
slarticodefast 3207a0e
we hate entityuids
ScarKy0 8527113
Merge branch 'Changeling-Devour-Transform' of https://github.com/pokl…
ScarKy0 2045a8a
fix test and more cleanup
slarticodefast 7b882fa
move this
slarticodefast 57bef54
fix more stuff
slarticodefast d54aac9
fix validation and rootable
slarticodefast ffaa536
Remove Quickswitch due to some UI quirks
poklj 49f2075
oops left out some better explanation
poklj aaec9c9
remove dangling LastConsumed component fields
poklj 533856e
fix test fail
slarticodefast 86993c1
try this
slarticodefast 81e932d
cleanup cloning subscriptions, add movement speed modifier
slarticodefast d50d899
fix slime storage
slarticodefast b65a1a1
fix cloning setting inheritance
slarticodefast e3f9fbd
Add session information to transform admin logs
poklj 531f9c8
slay the integration test hydra
slarticodefast 9b9b9ed
Merge branch 'master' into pr/34002
slarticodefast b7cd20c
dwarf size
slarticodefast 052e762
Merge branch 'master' into pr/34002
slarticodefast 3e3ef4f
more volume tweaks
ScarKy0 6b89299
comments
ScarKy0 39330ff
improve comments and unpredict deletion due to errors when shutting d…
slarticodefast 84724da
fix displancement cloning
slarticodefast 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using Content.Shared.Changeling; | ||
|
|
||
| namespace Content.Client.Changeling; | ||
|
|
||
| public sealed class ChangelingIdentitySystem : SharedChangelingIdentitySystem; | ||
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,5 @@ | ||
| using Content.Shared.Changeling.Devour; | ||
|
|
||
| namespace Content.Client.Changeling.Devour; | ||
|
|
||
| public sealed class ChangelingDevourSystem : SharedChangelingDevourSystem; |
37 changes: 37 additions & 0 deletions
37
Content.Client/Changeling/Transform/ChangelingTransformBoundUserInterface.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,37 @@ | ||
| using Content.Shared.Changeling.Transform; | ||
| using JetBrains.Annotations; | ||
| using Robust.Client.UserInterface; | ||
|
|
||
| namespace Content.Client.Changeling.Transform; | ||
|
|
||
| [UsedImplicitly] | ||
| public sealed class ChangelingTransformBoundUserInterface : BoundUserInterface | ||
| { | ||
| private ChangelingTransformMenu? _window; | ||
|
|
||
| public ChangelingTransformBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| protected override void Open() | ||
| { | ||
| base.Open(); | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| _window = this.CreateWindow<ChangelingTransformMenu>(); | ||
|
|
||
| _window.OnIdentitySelect += SendIdentitySelect; | ||
| } | ||
| protected override void UpdateState(BoundUserInterfaceState state) | ||
slarticodefast marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| base.UpdateState(state); | ||
|
|
||
| if (state is not ChangelingTransformBoundUserInterfaceState current) | ||
| return; | ||
|
|
||
| _window?.UpdateState(current); | ||
| } | ||
|
|
||
| public void SendIdentitySelect(NetEntity identityId) | ||
| { | ||
| SendMessage(new ChangelingTransformIdentitySelectMessage(identityId)); | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
|
|
||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
8 changes: 8 additions & 0 deletions
8
Content.Client/Changeling/Transform/ChangelingTransformMenu.xaml
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,8 @@ | ||
| <ui:RadialMenu | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls" | ||
| CloseButtonStyleClass="RadialMenuCloseButton" | ||
| VerticalExpand="True" | ||
| HorizontalExpand="True"> | ||
| <ui:RadialContainer Name="Main"> | ||
| </ui:RadialContainer> | ||
| </ui:RadialMenu> | ||
55 changes: 55 additions & 0 deletions
55
Content.Client/Changeling/Transform/ChangelingTransformMenu.xaml.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,55 @@ | ||
| using System.Numerics; | ||
| using Content.Client.UserInterface.Controls; | ||
| using Content.Shared.Changeling.Transform; | ||
| using Robust.Client.AutoGenerated; | ||
| using Robust.Client.UserInterface.Controls; | ||
| using Robust.Client.UserInterface.XAML; | ||
|
|
||
| namespace Content.Client.Changeling.Transform; | ||
|
|
||
| [GenerateTypedNameReferences] | ||
| public sealed partial class ChangelingTransformMenu : RadialMenu | ||
| { | ||
| [Dependency] private readonly IEntityManager _entity = default!; | ||
| public event Action<NetEntity>? OnIdentitySelect; | ||
|
|
||
| public ChangelingTransformMenu() | ||
| { | ||
| RobustXamlLoader.Load(this); | ||
| IoCManager.InjectDependencies(this); | ||
| } | ||
|
|
||
| public void UpdateState(ChangelingTransformBoundUserInterfaceState state) | ||
| { | ||
| Main.DisposeAllChildren(); | ||
| foreach (var identity in state.Identites) | ||
slarticodefast marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| var button = new ChangelingTransformMenuButton() | ||
| { | ||
| StyleClasses = { "RadialMenuButton" }, | ||
| SetSize = new Vector2(64, 64), | ||
| ToolTip = identity.Name | ||
| }; | ||
|
|
||
| var entView = new SpriteView() | ||
| { | ||
| SetSize = new Vector2(48, 48), | ||
| VerticalAlignment = VAlignment.Center, | ||
| HorizontalAlignment = HAlignment.Center, | ||
| Stretch = SpriteView.StretchMode.Fill, | ||
| }; | ||
| entView.SetEntity(_entity.GetEntity(identity.Identity)); | ||
| button.OnButtonUp += _ => | ||
| { | ||
| OnIdentitySelect?.Invoke(identity.Identity); | ||
| Close(); | ||
| }; | ||
| button.AddChild(entView); | ||
| Main.AddChild(button); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| public sealed class ChangelingTransformMenuButton : RadialMenuTextureButtonWithSector | ||
| { | ||
| } | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
5 changes: 5 additions & 0 deletions
5
Content.Client/Changeling/Transform/ChangelingTransformSystem.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,5 @@ | ||
| using Content.Shared.Changeling.Transform; | ||
|
|
||
| namespace Content.Client.Changeling.Transform; | ||
|
|
||
| public sealed class ChangelingTransformSystem : SharedChangelingTransformSystem; |
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,5 @@ | ||
| using Content.Shared.Changeling; | ||
|
|
||
| namespace Content.Server.Changeling; | ||
|
|
||
| public sealed class ChangelingIdentitySystem : SharedChangelingIdentitySystem; |
43 changes: 43 additions & 0 deletions
43
Content.Server/Changeling/Devour/ChangelingDevourSystem.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,43 @@ | ||
| using Content.Shared.Changeling.Devour; | ||
| using Content.Shared.Nutrition.Components; | ||
| using Content.Shared.Storage; | ||
| using Robust.Server.GameObjects; | ||
| using Robust.Shared.Audio; | ||
| using Robust.Shared.Audio.Systems; | ||
| using Robust.Shared.Random; | ||
|
|
||
| namespace Content.Server.Changeling.Devour; | ||
|
|
||
| public sealed class ChangelingDevourSystem : SharedChangelingDevourSystem | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| [Dependency] private readonly SharedAudioSystem _audioSystem = default!; | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [Dependency] private readonly TransformSystem _transform = default!; | ||
| [Dependency] private readonly IRobustRandom _robustRandom = default!; | ||
|
|
||
| protected override void StartSound(Entity<ChangelingDevourComponent> ent, SoundSpecifier? sound) | ||
| { | ||
| if (sound is not null) | ||
| ent.Comp.CurrentDevourSound = _audioSystem.PlayPvs(sound, ent)!.Value.Entity; | ||
| } | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| protected override void StopSound(Entity<ChangelingDevourComponent> ent) | ||
| { | ||
| if (ent.Comp.CurrentDevourSound is not null) | ||
| _audioSystem.Stop(ent.Comp.CurrentDevourSound); | ||
|
|
||
| ent.Comp.CurrentDevourSound = null; | ||
| } | ||
|
|
||
| protected override void RipClothing(EntityUid uid, EntityUid item, ButcherableComponent butcher) | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| var spawnEntities = EntitySpawnCollection.GetSpawns(butcher.SpawnedEntities, _robustRandom); | ||
| var coords = _transform.GetMapCoordinates(uid); | ||
|
|
||
| foreach (var proto in spawnEntities) | ||
| { | ||
| Spawn(proto, coords.Offset(_robustRandom.NextVector2(0.25f))); | ||
| } | ||
|
|
||
| QueueDel(item); | ||
| } | ||
| } | ||
61 changes: 61 additions & 0 deletions
61
Content.Server/Changeling/Transform/ChangelingTransformSystem.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,61 @@ | ||
| using Content.Server.Emoting.Components; | ||
| using Content.Server.IdentityManagement; | ||
| using Content.Shared.Changeling.Transform; | ||
| using Content.Shared.IdentityManagement.Components; | ||
| using Robust.Shared.Audio; | ||
| using Robust.Shared.Audio.Systems; | ||
| using Robust.Shared.Enums; | ||
| using Robust.Shared.GameObjects.Components.Localization; | ||
|
|
||
| namespace Content.Server.Changeling.Transform; | ||
|
|
||
| public sealed class ChangelingTransformSystem : SharedChangelingTransformSystem | ||
| { | ||
| [Dependency] private readonly GrammarSystem _grammarSystem = default!; | ||
| [Dependency] private readonly IdentitySystem _identitySystem = default!; | ||
| [Dependency] private readonly SharedAudioSystem _audioSystem = default!; | ||
|
|
||
| public override void TransformGrammarSet(EntityUid uid, Gender gender) | ||
| { | ||
| //How to stop quantum gender, a bug where the Examine pronoun will mispredict 100% of the time. Need to SPECIFICALLY | ||
| // also modify the Identities grammar component, before Queuing the identityUpdate | ||
| if(!TryComp<GrammarComponent>(uid, out var currentGrammar) | ||
| || !TryComp<IdentityComponent>(uid, out var currentIdentity)) | ||
| return; | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| var identityContainedUid = currentIdentity!.IdentityEntitySlot.ContainedEntities[0]; // get the IdentityComponent so we can modify that too | ||
|
|
||
| if(!TryComp<GrammarComponent>(identityContainedUid, out var identityGrammar)) | ||
| return; | ||
|
|
||
| var grammar = new Entity<GrammarComponent>(uid, currentGrammar); | ||
| var identityGrammarEntity = new Entity<GrammarComponent>(identityContainedUid, identityGrammar!); | ||
|
|
||
| _grammarSystem.SetGender(grammar, gender); | ||
| _grammarSystem.SetGender(identityGrammarEntity, gender); | ||
| _identitySystem.QueueIdentityUpdate(uid); | ||
| } | ||
poklj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| protected override void TransformBodyEmotes(EntityUid uid, EntityUid target) | ||
| { | ||
| if (!TryComp<BodyEmotesComponent>(target, out var targetBodyEmotes)) | ||
| return; | ||
|
|
||
| TryCopyComponent(target, uid, ref targetBodyEmotes, out _); | ||
| } | ||
|
|
||
| protected override void StartSound(Entity<ChangelingTransformComponent> ent, SoundSpecifier? sound) | ||
| { | ||
| if(sound is not null) | ||
| ent.Comp.CurrentTransformSound = _audioSystem.PlayPvs(sound, ent)!.Value.Entity; | ||
| } | ||
|
|
||
| protected override void StopSound(Entity<ChangelingTransformComponent> ent) | ||
| { | ||
| if (ent.Comp.CurrentTransformSound is not null) | ||
| _audioSystem.Stop(ent.Comp.CurrentTransformSound); | ||
|
|
||
| ent.Comp.CurrentTransformSound = null; | ||
| } | ||
| } | ||
|
|
||
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,20 @@ | ||
| using Content.Server.GameTicking.Rules.Components; | ||
| using Content.Server.Roles; | ||
| using Content.Shared.Changeling; | ||
|
|
||
| namespace Content.Server.GameTicking.Rules; | ||
|
|
||
| public sealed class ChangelingRuleSystem : GameRuleSystem<ChangelingRuleComponent> | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| public override void Initialize() | ||
| { | ||
| base.Initialize(); | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| SubscribeLocalEvent<ChangelingRoleComponent, GetBriefingEvent>(OnGetBriefing); | ||
| } | ||
|
|
||
| private void OnGetBriefing(Entity<ChangelingRoleComponent> ent, ref GetBriefingEvent args) | ||
| { | ||
| args.Append(Loc.GetString("changeling-briefing")); | ||
| } | ||
|
|
||
| } | ||
ScarKy0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
4 changes: 4 additions & 0 deletions
4
Content.Server/GameTicking/Rules/Components/ChangelingRuleComponent.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,4 @@ | ||
| namespace Content.Server.GameTicking.Rules.Components; | ||
|
|
||
| [RegisterComponent] | ||
| public sealed partial class ChangelingRuleComponent : Component; | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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,15 @@ | ||
| using Content.Shared.Roles; | ||
| using Robust.Shared.GameStates; | ||
|
|
||
| namespace Content.Shared.Changeling; | ||
|
|
||
| [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] | ||
| public sealed partial class ChangelingIdentityComponent : Component | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| [DataField, AutoNetworkedField] | ||
| public List<EntityUid> ConsumedIdentities = []; | ||
|
|
||
| [DataField, AutoNetworkedField] | ||
| public EntityUid? LastConsumedEntityUid; | ||
|
|
||
| } | ||
ScarKy0 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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,6 @@ | ||
| using Content.Shared.Roles; | ||
|
|
||
| namespace Content.Shared.Changeling; | ||
|
|
||
| [RegisterComponent] | ||
| public sealed partial class ChangelingRoleComponent : BaseMindRoleComponent; | ||
poklj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.