From dd35318a871eefce133bfe7a290a0b470ccfcadb Mon Sep 17 00:00:00 2001 From: Minemoder5000 Date: Fri, 18 Apr 2025 15:41:30 -0600 Subject: [PATCH 01/12] Fix slime hand gradient not showing on the opposite side of the body (#36543) fix gradient color not showing on other side of body --- .../slime_parts.rsi/gradient_l_hand.png | Bin 359 -> 693 bytes .../slime_parts.rsi/gradient_r_hand.png | Bin 371 -> 701 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Resources/Textures/Mobs/Customization/slime_parts.rsi/gradient_l_hand.png b/Resources/Textures/Mobs/Customization/slime_parts.rsi/gradient_l_hand.png index 3e947f387e5c9983e8d611d141c8b70f17322f4c..d33a4660b68df9f48e603663f8ab53d7d8b8e7a9 100644 GIT binary patch delta 670 zcmaFPw3T&&ay?^9rn7T^r?ay{K~a8MW=<*tgT}<#iMAex9b}Hi+izJKBKt<+(S(Io zH(gz2yhXbc7H$!ZDmB>og?pBXil$y)Q})4w{YO_dcW++Dx2{Ry2je3>3(Z{~o&UYL zbdzi>-W}gv-M_oMVS8wD*Ta71uB=xxQ=CqShqWHi{v+XH-&D`hdFDdU&7(3g$FJMk z)a>p4sPnzJzK?NdhQR@4f#Wlm%|0T1Wb^E0$13Mr9MW3kQ{!i|@-l0u{7yZ~KgV|F zY@VL(_9Z55o`sXnlNEwk#B zCzpD|KJnAPB-ojDJM7MkynlS!RXfI-^9QEh`g%S3z#a9MXV;0@GPP}M?0&sY?JeVU z>jNhytG!yJ`!l1;TlK-;o_#ABco=ojVo|547DS_>gN1d^n7&Gg zteL;0Pgtb&j;|TBj>`Y#ZhO`ASJuz!Vt@eOGi%O#j!{}PBQo=BSBFtwa`83w^^2K< zy)2h***|;pwA7QUeuafrx-h<*w|m{>(%7SSXK((sZ+hmePnWMLoY8qVjTK@Jh-|lf zE&u=ao@vre!S9&Y=_JfwzA7kt>VEMD@1~0teBHBqT`bSx1H6n33=HCR8yF=*qi(F4 RDBcUw>FMg{vd$@?2>@%@C6@pI delta 333 zcmdnW`kZNkayJuJ z;X}2IZT75XN~brye|%InmT!ZOx1inM(%8d=U)HQzC2@S?gJpW`7IK&SA78AUcf3CJ z+UmTYLVG?Xz2EiG_&*nho!FexaHRXLqKBNq8-bSZ8{F&-&VRoBT%BK_j3eoszubd6 yiZ{0PZp*#@PusS#A>a((!Tk&!Cy~5S$B>@xnZc2eWyQe2z~JfX=d#Wzp$P!K5|FY0 diff --git a/Resources/Textures/Mobs/Customization/slime_parts.rsi/gradient_r_hand.png b/Resources/Textures/Mobs/Customization/slime_parts.rsi/gradient_r_hand.png index f7a86f47887d409596642f5ea6757e1b03a536fd..743b1a6ad7fccd55ac6810b0c684077b615789f8 100644 GIT binary patch delta 678 zcmey&w3l^)ay?^9rn7T^r?ay{K~a8MW=<*tgT}<#iMAex9b}Hi+izJKBKt<+(S(Io zH(gz2yhXbc7H$!ZDmB>og?pBXil$y)Q})4w{YO_dcW++Dx2{Ry2je3>3(Z{~o&UYL zbdzi>-W}gv-M_oMVS8wD*Ta71uB=xxQ=CqShqWHi{v+XH-&D`hdFDdU&7(3g$FJMk z)a>p4sPnzJzK?NdhQR@4f#Wlm%|0T1Wb^E0$13Mr9MW3kQ{!i|@-l0u{7yZ~KgV|F zY@VL(_9Z55o`sXnlNEwk#B zCzpD|KJnAPB-ojDJM7MkynlS!RXfI-^9QEh`g%S3z#a9MXV;0@GPP}M?0&sY?JeVU z>jNhytG!yJ`!l1;TlK-;o_#ABco=ojVo|547B^Vfe(xxx@?3wvS<<;G3 z&)%mS%jcf9Ilp=K&Cj?09ly6oC4Sn`-}}lv?>RB5>{Kz|T;%nv<3z`aV|90*88L&+ z0ueiAF8=#{^LxABXWqTwe!c6LnSR07I|r`){-4e0rFomdX<|txW1jJ1c>^BizvT=J b3?}bbuj?fgd!%fv0%`Yj^>bP0l+XkKSyC+q delta 345 zcmdnX`k85haylwXdzt#ms$MFQG8UZhL{(-S4?V z8_vt{--u7M+sm=+)8YNQjW)k$g4u_|84%$ezZzGczdt|d?o)=_+d_X=HBPz4`{&uj z{Rj3jJS@KI@k)>V#qWP+Jcn)1e^!y7`~S-YR|B^P^FPEwbc6inXLo=-=dbIQm7gw! RGB7YOc)I$ztaD0e0swnwml*&6 From 14d9a35116ed5a7ddc17debc2985456aebe7439f Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Fri, 18 Apr 2025 23:01:52 +0100 Subject: [PATCH 02/12] ciggie sounds (#32426) * add sounds * change _active to BurningComponent * play sound when lighting and snuffing a cigar * network it * mono * attribution * doc --------- Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../Nutrition/EntitySystems/SmokingSystem.cs | 35 +++++++----------- .../Nutrition/Components/SmokableComponent.cs | 13 +++++++ Content.Shared/Smoking/BurningComponent.cs | 12 ++++++ Resources/Audio/Effects/attributions.yml | 5 +++ Resources/Audio/Effects/cig_light.ogg | Bin 0 -> 17354 bytes Resources/Audio/Effects/cig_snuff.ogg | Bin 0 -> 9397 bytes 6 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 Content.Shared/Smoking/BurningComponent.cs create mode 100644 Resources/Audio/Effects/cig_light.ogg create mode 100644 Resources/Audio/Effects/cig_snuff.ogg diff --git a/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs b/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs index d2074a3d82..b3ef8bff69 100644 --- a/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs @@ -15,6 +15,7 @@ using Content.Shared.Nutrition.Components; using Content.Shared.Smoking; using Content.Shared.Temperature; using Robust.Server.GameObjects; +using Robust.Shared.Audio.Systems; using Robust.Shared.Containers; using System.Linq; using Content.Shared.Atmos; @@ -30,6 +31,7 @@ namespace Content.Server.Nutrition.EntitySystems [Dependency] private readonly TransformSystem _transformSystem = default!; [Dependency] private readonly InventorySystem _inventorySystem = default!; [Dependency] private readonly ClothingSystem _clothing = default!; + [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly SharedItemSystem _items = default!; [Dependency] private readonly SharedContainerSystem _container = default!; [Dependency] private readonly SharedAppearanceSystem _appearance = default!; @@ -39,11 +41,6 @@ namespace Content.Server.Nutrition.EntitySystems private float _timer; - /// - /// We keep a list of active smokables, because iterating all existing smokables would be dumb. - /// - private readonly HashSet _active = new(); - public override void Initialize() { SubscribeLocalEvent(OnSmokableIsHotEvent); @@ -65,7 +62,7 @@ namespace Content.Server.Nutrition.EntitySystems public void SetSmokableState(EntityUid uid, SmokableState state, SmokableComponent? smokable = null, AppearanceComponent? appearance = null, ClothingComponent? clothing = null) { - if (!Resolve(uid, ref smokable, ref appearance, ref clothing)) + if (!Resolve(uid, ref smokable, ref appearance, ref clothing) || smokable.State == state) return; smokable.State = state; @@ -83,17 +80,17 @@ namespace Content.Server.Nutrition.EntitySystems if (state == SmokableState.Lit) { + EnsureComp(uid); + _audio.PlayPvs(smokable.LightSound, uid); var igniteEvent = new IgnitedEvent(); RaiseLocalEvent(uid, ref igniteEvent); - - _active.Add(uid); } else { - var igniteEvent = new ExtinguishedEvent(); - RaiseLocalEvent(uid, ref igniteEvent); - - _active.Remove(uid); + RemComp(uid); + _audio.PlayPvs(smokable.SnuffSound, uid); + var extinguishEvent = new ExtinguishedEvent(); + RaiseLocalEvent(uid, ref extinguishEvent); } } @@ -104,7 +101,7 @@ namespace Content.Server.Nutrition.EntitySystems private void OnSmokableShutdownEvent(Entity entity, ref ComponentShutdown args) { - _active.Remove(entity); + RemComp(entity); } private void OnSmokeableEquipEvent(Entity entity, ref GotEquippedEvent args) @@ -122,18 +119,12 @@ namespace Content.Server.Nutrition.EntitySystems if (_timer < UpdateTimer) return; - // TODO Use an "active smoke" component instead, EntityQuery over that. - foreach (var uid in _active.ToArray()) + var query = EntityQueryEnumerator(); + while (query.MoveNext(out var uid, out _, out var smokable)) { - if (!TryComp(uid, out SmokableComponent? smokable)) - { - _active.Remove(uid); - continue; - } - if (!_solutionContainerSystem.TryGetSolution(uid, smokable.Solution, out var soln, out var solution)) { - _active.Remove(uid); + SetSmokableState(uid, SmokableState.Unlit, smokable); continue; } diff --git a/Content.Shared/Nutrition/Components/SmokableComponent.cs b/Content.Shared/Nutrition/Components/SmokableComponent.cs index e5cbd27242..28e84dc190 100644 --- a/Content.Shared/Nutrition/Components/SmokableComponent.cs +++ b/Content.Shared/Nutrition/Components/SmokableComponent.cs @@ -1,5 +1,6 @@ using Content.Shared.FixedPoint; using Content.Shared.Smoking; +using Robust.Shared.Audio; using Robust.Shared.GameStates; namespace Content.Shared.Nutrition.Components @@ -32,5 +33,17 @@ namespace Content.Shared.Nutrition.Components public string LitPrefix = "lit"; [DataField("unlitPrefix")] public string UnlitPrefix = "unlit"; + + /// + /// Sound played when lighting this smokable. + /// + [DataField] + public SoundSpecifier? LightSound = new SoundPathSpecifier("/Audio/Effects/cig_light.ogg"); + + /// + /// Sound played when this smokable is extinguished or runs out. + /// + [DataField] + public SoundSpecifier? SnuffSound = new SoundPathSpecifier("/Audio/Effects/cig_snuff.ogg"); } } diff --git a/Content.Shared/Smoking/BurningComponent.cs b/Content.Shared/Smoking/BurningComponent.cs new file mode 100644 index 0000000000..bbb9765174 --- /dev/null +++ b/Content.Shared/Smoking/BurningComponent.cs @@ -0,0 +1,12 @@ +using Robust.Shared.GameStates; + +namespace Content.Shared.Smoking; + +/// +/// Marker component used to track active burning objects. +/// +/// +/// Right now only smoking uses this, but flammable could use it as well in the future. +/// +[RegisterComponent, NetworkedComponent] +public sealed partial class BurningComponent : Component; diff --git a/Resources/Audio/Effects/attributions.yml b/Resources/Audio/Effects/attributions.yml index add8884a7d..9cfaa54122 100644 --- a/Resources/Audio/Effects/attributions.yml +++ b/Resources/Audio/Effects/attributions.yml @@ -241,3 +241,8 @@ copyright: 'created by Vrymaa on Freesound and modified by Chaboricks' license: "CC0-1.0" source: https://freesound.org/people/Vrymaa/sounds/785128/ + +- files: ["cig_light.ogg", "cig_snuff.ogg"] + license: "CC-BY-SA-3.0" + copyright: "Created by mattroks101 for Bee Station. cig_snuff converted to mono" + source: "https://github.com/BeeStation/BeeStation-Hornet/pull/29" diff --git a/Resources/Audio/Effects/cig_light.ogg b/Resources/Audio/Effects/cig_light.ogg new file mode 100644 index 0000000000000000000000000000000000000000..48aef9c344a427bbf72127bc253ef6e2d0eb68c6 GIT binary patch literal 17354 zcmeZIPY-5bVt|65ZV(2iL*;KqImWX5qNL1XkPu_TZV<)5z);QzX6#@D>jbkw1V|@H zW`>U>w}9?{6mXImVvsBY14Be+L57}xQMy7-W>Of~cm+=dBLf3-12ZEdkU@;B5XG8K z&S8uU91IK$hCT{M8!k);Wnd6sU`SBWaNbWH_ z1|t+qQbZXTSQr{KIQteq^UOMDnJ%H;SG2$~)6ZhL0()2B153_BU)7THmTg&TS8FH|d<-!~<5sz{tP?at*_R%vsAYP+H`)RKmz1 zPC!oUQMb_NCqLz$z6GAA#p_y_4;E;0=-w!L2Ld%ZL^926q>aU(drurM$v&P|(^ z)xcpqArTxbpn#TG$l=Tbv5AF&p=03_g;^J7eLic+H|yzwl_Ik*AM6a7t-f>RjM?BA z%sD6dcuw&-%~LavE|_^?R`EGco>@yFtV*HT>}ywEnpJ#G^7$OTW0Hw;iqBqKAcm0uJhLH?46vkbBfRX zOquiUEGI||J^45=Ft8-vkT^ECNujonElEUinc`%*l77C)3k*+aE|Kf)bMso+91tX_ zzO~jSMh86*EDuxl@qzp;LOD1(`ozmER#^|&Th*)#@oYm_MhXtH@47XhJ(lNan zmfXAb*}UR)mLAzlw_c0VUOFYnOLHkW{6HB*A!ULin(D1U{$mylGx3|XLD7}BZ_Wt$Wc=0y$gaywz z3{D)1E#N#kC8@{o_?%`xCr(HN!*Wic$nl9XCnu_SZ&LBSq;vL@iT`Jli^8sfCceR< zu@^;4FN>uHo5fx>O}!kNdbKR|=C;)6?X{8HK)D5yXF%ljQm_{xIR}(Qlq~xmdrV>h zXA5x7S)kGP$f8f#bCOErB(=(E>7BDy&Ybshs|e5S&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E)OW` zxcqKj)Za3ry6P+Z@_lv5kGcNt*j{!w%QJrSAq8WL_re_4yN`Ty-jp9Y|KPK!*HeU+ z+gUan6+XRJWtnMs$L_!Fbd^ToZ&y$JySgnqjk9~zgkSbOhhFARoh$rr$+WHec3AS7 zGv;OPcGsNcbCW0cex=mg({h(?CLdj~ZJS`+7XJLNp(f3Rs%%`h;Cgn=iG7@#yXVHK^O-7M=n~6# zf5tOSNZ{I?t+V8Nw$4-!aVWodx72joUdhg-cEJ}LB1MHh$<|*#aPMtbiAlRos*unu z_NP08ABgSEo$ubs;W$mH@JaM_XQ76sD1Qv?z4xwK9_ebk6~Ya%H_f$`W(sLl18?Rf9+%0r*nwat@LnEc$Y-AR-a6TR_5lc((E{m)lVNXKQ!_%|As z@`#)%*>9iOVoxhSWI|xlkrs3qz5x>mK|NomGHAt=+e!f0yB@Z$W7Z5cc)n`BjWJP=W;tQ zTArV4U7q*iio>$bt_u!|H_l}isp@1({d=N!Fn`jLf9i9-3ER|Pn>njThTkng|Klrz zi8hm4C)ISUt#@CoZ@GM9Th_hoc`ZvPw|ZTVkiW$>zx!XFh2He Date: Fri, 18 Apr 2025 18:21:01 -0400 Subject: [PATCH 03/12] Cargo Funds Exception (#36694) --- Content.Shared/Cargo/SharedCargoSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Cargo/SharedCargoSystem.cs b/Content.Shared/Cargo/SharedCargoSystem.cs index 84633073b5..8925ce0de1 100644 --- a/Content.Shared/Cargo/SharedCargoSystem.cs +++ b/Content.Shared/Cargo/SharedCargoSystem.cs @@ -3,6 +3,7 @@ using Content.Shared.Cargo.Prototypes; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.Timing; +using Robust.Shared.Utility; namespace Content.Shared.Cargo; @@ -49,7 +50,8 @@ public abstract class SharedCargoSystem : EntitySystem foreach (var (account, percentage) in stationBank.Comp.RevenueDistribution) { - distribution.Add(account, remaining * percentage); + var existing = distribution.GetOrNew(account); + distribution[account] = existing + remaining * percentage; } return distribution; } From 3fc9bcbbbe9eead5cf0d65c9ab7ddc4c06916e71 Mon Sep 17 00:00:00 2001 From: Milon Date: Sat, 19 Apr 2025 00:23:01 +0200 Subject: [PATCH 04/12] remove Session from MindComponent (#34753) * yummy * fix tests --- .../Tests/Minds/MindTests.Helpers.cs | 5 +- .../Tests/Minds/MindTests.ReconnectTests.cs | 2 +- .../Administration/Commands/AGhostCommand.cs | 7 ++- .../Administration/Systems/AdminSystem.cs | 4 +- .../Anomaly/Effects/InnerBodyAnomalySystem.cs | 15 +++-- .../Antag/AntagSelectionSystem.API.cs | 4 +- Content.Server/Chat/Managers/ChatManager.cs | 8 ++- .../Cloning/CloningConsoleSystem.cs | 2 +- .../GameTicking/GameTicker.Player.cs | 8 +-- .../Rules/RevolutionaryRuleSystem.cs | 16 ++--- .../GameTicking/Rules/ZombieRuleSystem.cs | 12 ++-- Content.Server/Ghost/GhostSystem.cs | 12 ++-- Content.Server/Ghost/ReturnToBodyEui.cs | 14 +++-- Content.Server/Medical/DefibrillatorSystem.cs | 7 ++- Content.Server/Mind/MindSystem.cs | 59 ++++++++----------- .../PlayTimeTrackingSystem.cs | 2 +- Content.Server/Roles/Jobs/JobSystem.cs | 4 +- Content.Server/Roles/RoleSystem.cs | 4 +- Content.Server/Silicons/Borgs/BorgSystem.cs | 12 ++-- .../Traitor/Systems/AutoTraitorSystem.cs | 7 ++- .../Zombies/ZombieSystem.Transform.cs | 8 ++- .../Cryostorage/SharedCryostorageSystem.cs | 15 +++-- Content.Shared/Mind/MindComponent.cs | 8 --- Content.Shared/Mind/SharedMindSystem.cs | 25 ++++---- Content.Shared/Roles/SharedRoleSystem.cs | 23 +++++--- 25 files changed, 149 insertions(+), 134 deletions(-) diff --git a/Content.IntegrationTests/Tests/Minds/MindTests.Helpers.cs b/Content.IntegrationTests/Tests/Minds/MindTests.Helpers.cs index b12c90e16e..cebbed8ee8 100644 --- a/Content.IntegrationTests/Tests/Minds/MindTests.Helpers.cs +++ b/Content.IntegrationTests/Tests/Minds/MindTests.Helpers.cs @@ -130,14 +130,14 @@ public sealed partial class MindTests ActorComponent actor = default!; Assert.Multiple(() => { - Assert.That(player, Is.EqualTo(mind.Session), "Player session does not match mind session"); + Assert.That(player.UserId, Is.EqualTo(mind.UserId), "Player UserId does not match mind UserId"); Assert.That(entMan.System().GetMind(player.UserId), Is.EqualTo(mindId)); Assert.That(player.AttachedEntity, Is.EqualTo(mind.CurrentEntity), "Player is not attached to the mind's current entity."); Assert.That(entMan.EntityExists(mind.OwnedEntity), "The mind's current entity does not exist"); Assert.That(mind.VisitingEntity == null || entMan.EntityExists(mind.VisitingEntity), "The minds visited entity does not exist."); Assert.That(entMan.TryGetComponent(mind.CurrentEntity, out actor)); }); - Assert.That(actor.PlayerSession, Is.EqualTo(mind.Session)); + Assert.That(actor.PlayerSession.UserId, Is.EqualTo(mind.UserId)); return (mindId, mind); } @@ -161,7 +161,6 @@ public sealed partial class MindTests { Assert.That(player.Status, Is.EqualTo(SessionStatus.Disconnected)); Assert.That(mind.UserId, Is.Not.Null); - Assert.That(mind.Session, Is.Null); }); } diff --git a/Content.IntegrationTests/Tests/Minds/MindTests.ReconnectTests.cs b/Content.IntegrationTests/Tests/Minds/MindTests.ReconnectTests.cs index a1fccfb68d..db87797553 100644 --- a/Content.IntegrationTests/Tests/Minds/MindTests.ReconnectTests.cs +++ b/Content.IntegrationTests/Tests/Minds/MindTests.ReconnectTests.cs @@ -67,7 +67,7 @@ public sealed partial class MindTests Assert.Multiple(() => { Assert.That(entMan.Deleted(entity)); - Assert.That(mind.Comp.OwnedEntity, Is.Null); + Assert.That(mind.Comp.OwnedEntity, Is.Not.EqualTo(entity)); }); // Reconnect diff --git a/Content.Server/Administration/Commands/AGhostCommand.cs b/Content.Server/Administration/Commands/AGhostCommand.cs index 6acaadbf83..09c8d0eb50 100644 --- a/Content.Server/Administration/Commands/AGhostCommand.cs +++ b/Content.Server/Administration/Commands/AGhostCommand.cs @@ -8,6 +8,7 @@ using Content.Shared.Mind; using Robust.Server.GameObjects; using Robust.Server.Player; using Robust.Shared.Console; +using Robust.Shared.Player; namespace Content.Server.Administration.Commands; @@ -15,7 +16,7 @@ namespace Content.Server.Administration.Commands; public sealed class AGhostCommand : LocalizedCommands { [Dependency] private readonly IEntityManager _entities = default!; - [Dependency] private readonly IPlayerManager _playerManager = default!; + [Dependency] private readonly ISharedPlayerManager _playerManager = default!; public override string Command => "aghost"; public override string Help => "aghost"; @@ -104,8 +105,8 @@ public sealed class AGhostCommand : LocalizedCommands // TODO: Remove duplication between all this and "GamePreset.OnGhostAttempt()"... if (!string.IsNullOrWhiteSpace(mind.CharacterName)) metaDataSystem.SetEntityName(ghost, mind.CharacterName); - else if (!string.IsNullOrWhiteSpace(mind.Session?.Name)) - metaDataSystem.SetEntityName(ghost, mind.Session.Name); + else if (!string.IsNullOrWhiteSpace(player.Name)) + metaDataSystem.SetEntityName(ghost, player.Name); mindSystem.Visit(mindId, ghost, mind); } diff --git a/Content.Server/Administration/Systems/AdminSystem.cs b/Content.Server/Administration/Systems/AdminSystem.cs index 0868157f6e..b9916bc5b2 100644 --- a/Content.Server/Administration/Systems/AdminSystem.cs +++ b/Content.Server/Administration/Systems/AdminSystem.cs @@ -153,9 +153,7 @@ public sealed class AdminSystem : EntitySystem private void OnRoleEvent(RoleEvent ev) { - var session = _minds.GetSession(ev.Mind); - - if (!ev.RoleTypeUpdate || session == null) + if (!ev.RoleTypeUpdate || !_playerManager.TryGetSessionById(ev.Mind.UserId, out var session)) return; UpdatePlayerList(session); diff --git a/Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs b/Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs index b647e026e3..ff644ad3e0 100644 --- a/Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs +++ b/Content.Server/Anomaly/Effects/InnerBodyAnomalySystem.cs @@ -15,6 +15,7 @@ using Content.Shared.Popups; using Content.Shared.Whitelist; using Robust.Shared.Audio.Systems; using Robust.Shared.Physics.Events; +using Robust.Shared.Player; using Robust.Shared.Prototypes; namespace Content.Server.Anomaly.Effects; @@ -26,6 +27,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly BodySystem _body = default!; [Dependency] private readonly IChatManager _chat = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly EntityWhitelistSystem _whitelist = default!; [Dependency] private readonly JitteringSystem _jitter = default!; [Dependency] private readonly MindSystem _mind = default!; @@ -102,7 +104,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem if (ent.Comp.StartMessage is not null && _mind.TryGetMind(ent, out _, out var mindComponent) && - mindComponent.Session != null) + _player.TryGetSessionById(mindComponent.UserId, out var session)) { var message = Loc.GetString(ent.Comp.StartMessage); var wrappedMessage = Loc.GetString("chat-manager-server-wrap-message", ("message", message)); @@ -111,7 +113,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem wrappedMessage, default, false, - mindComponent.Session.Channel, + session.Channel, _messageColor); _popup.PopupEntity(message, ent, ent, PopupType.MediumCaution); @@ -137,7 +139,8 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem private void OnSeverityChanged(Entity ent, ref AnomalySeverityChangedEvent args) { - if (!_mind.TryGetMind(ent, out _, out var mindComponent) || mindComponent.Session == null) + if (!_mind.TryGetMind(ent, out _, out var mindComponent) || + !_player.TryGetSessionById(mindComponent.UserId, out var session)) return; var message = string.Empty; @@ -172,7 +175,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem wrappedMessage, default, false, - mindComponent.Session.Channel, + session.Channel, _messageColor); _popup.PopupEntity(message, ent, ent, PopupType.MediumCaution); @@ -214,7 +217,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem if (ent.Comp.EndMessage is not null && _mind.TryGetMind(ent, out _, out var mindComponent) && - mindComponent.Session != null) + _player.TryGetSessionById(mindComponent.UserId, out var session)) { var message = Loc.GetString(ent.Comp.EndMessage); var wrappedMessage = Loc.GetString("chat-manager-server-wrap-message", ("message", message)); @@ -223,7 +226,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem wrappedMessage, default, false, - mindComponent.Session.Channel, + session.Channel, _messageColor); diff --git a/Content.Server/Antag/AntagSelectionSystem.API.cs b/Content.Server/Antag/AntagSelectionSystem.API.cs index 93b5fa6136..975c802eed 100644 --- a/Content.Server/Antag/AntagSelectionSystem.API.cs +++ b/Content.Server/Antag/AntagSelectionSystem.API.cs @@ -264,10 +264,10 @@ public sealed partial class AntagSelectionSystem if (!_mind.TryGetMind(entity, out _, out var mindComponent)) return; - if (mindComponent.Session == null) + if (!_playerManager.TryGetSessionById(mindComponent.UserId, out var session)) return; - SendBriefing(mindComponent.Session, briefing, briefingColor, briefingSound); + SendBriefing(session, briefing, briefingColor, briefingSound); } /// diff --git a/Content.Server/Chat/Managers/ChatManager.cs b/Content.Server/Chat/Managers/ChatManager.cs index c86ff802ce..535ca8658d 100644 --- a/Content.Server/Chat/Managers/ChatManager.cs +++ b/Content.Server/Chat/Managers/ChatManager.cs @@ -44,6 +44,7 @@ internal sealed partial class ChatManager : IChatManager [Dependency] private readonly INetConfigurationManager _netConfigManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly PlayerRateLimitManager _rateLimitManager = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; /// /// The maximum length a player-sent message can be sent @@ -179,7 +180,12 @@ internal sealed partial class ChatManager : IChatManager var adminSystem = _entityManager.System(); var antag = mind.UserId != null && (adminSystem.GetCachedPlayerInfo(mind.UserId.Value)?.Antag ?? false); - SendAdminAlert($"{mind.Session?.Name}{(antag ? " (ANTAG)" : "")} {message}"); + // We shouldn't be repeating this but I don't want to touch any more chat code than necessary + var playerName = mind.UserId is { } userId && _player.TryGetSessionById(userId, out var session) + ? session.Name + : "Unknown"; + + SendAdminAlert($"{playerName}{(antag ? " (ANTAG)" : "")} {message}"); } public void SendHookOOC(string sender, string message) diff --git a/Content.Server/Cloning/CloningConsoleSystem.cs b/Content.Server/Cloning/CloningConsoleSystem.cs index 39eac842f0..b5cf2dbb8a 100644 --- a/Content.Server/Cloning/CloningConsoleSystem.cs +++ b/Content.Server/Cloning/CloningConsoleSystem.cs @@ -165,7 +165,7 @@ namespace Content.Server.Cloning if (!_mindSystem.TryGetMind(body.Value, out var mindId, out var mind)) return; - if (mind.UserId.HasValue == false || mind.Session == null) + if (mind.UserId.HasValue == false || !_playerManager.ValidSessionId(mind.UserId.Value)) return; if (_cloningPodSystem.TryCloning(cloningPodUid, body.Value, (mindId, mind), cloningPod, scannerComp.CloningFailChanceMultiplier)) diff --git a/Content.Server/GameTicking/GameTicker.Player.cs b/Content.Server/GameTicking/GameTicker.Player.cs index 2c3dcaba43..63821d9251 100644 --- a/Content.Server/GameTicking/GameTicker.Player.cs +++ b/Content.Server/GameTicking/GameTicker.Player.cs @@ -32,11 +32,8 @@ namespace Content.Server.GameTicking { if (args.NewStatus != SessionStatus.Disconnected) { - mind.Session = session; _pvsOverride.AddSessionOverride(mindId.Value, session); } - - DebugTools.Assert(mind.Session == session); } DebugTools.Assert(session.GetMind() == mindId); @@ -126,10 +123,9 @@ namespace Content.Server.GameTicking case SessionStatus.Disconnected: { _chatManager.SendAdminAnnouncement(Loc.GetString("player-leave-message", ("name", args.Session.Name))); - if (mind != null) + if (mindId != null) { - _pvsOverride.ClearOverride(GetNetEntity(mindId!.Value)); - mind.Session = null; + _pvsOverride.RemoveSessionOverride(mindId.Value, session); } _userDb.ClientDisconnected(session); diff --git a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs index 9ec932b06f..311e78d009 100644 --- a/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs @@ -28,6 +28,7 @@ using Content.Shared.Zombies; using Robust.Shared.Prototypes; using Robust.Shared.Timing; using Content.Shared.Cuffs.Components; +using Robust.Shared.Player; namespace Content.Server.GameTicking.Rules; @@ -36,19 +37,20 @@ namespace Content.Server.GameTicking.Rules; /// public sealed class RevolutionaryRuleSystem : GameRuleSystem { - [Dependency] private readonly IAdminLogManager _adminLogManager = default!; [Dependency] private readonly AntagSelectionSystem _antag = default!; [Dependency] private readonly EmergencyShuttleSystem _emergencyShuttle = default!; [Dependency] private readonly EuiManager _euiMan = default!; + [Dependency] private readonly IAdminLogManager _adminLogManager = default!; + [Dependency] private readonly IGameTiming _timing = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly MindSystem _mind = default!; [Dependency] private readonly MobStateSystem _mobState = default!; [Dependency] private readonly NpcFactionSystem _npcFaction = default!; [Dependency] private readonly PopupSystem _popup = default!; [Dependency] private readonly RoleSystem _role = default!; - [Dependency] private readonly SharedStunSystem _stun = default!; [Dependency] private readonly RoundEndSystem _roundEnd = default!; + [Dependency] private readonly SharedStunSystem _stun = default!; [Dependency] private readonly StationSystem _stationSystem = default!; - [Dependency] private readonly IGameTiming _timing = default!; //Used in OnPostFlash, no reference to the rule component is available public readonly ProtoId RevolutionaryNpcFaction = "Revolutionary"; @@ -165,8 +167,8 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem { [Dependency] private readonly AntagSelectionSystem _antag = default!; [Dependency] private readonly ChatSystem _chat = default!; - [Dependency] private readonly SharedMindSystem _mindSystem = default!; + [Dependency] private readonly IGameTiming _timing = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly MobStateSystem _mobState = default!; [Dependency] private readonly PopupSystem _popup = default!; - [Dependency] private readonly SharedRoleSystem _roles = default!; [Dependency] private readonly RoundEndSystem _roundEnd = default!; + [Dependency] private readonly SharedMindSystem _mindSystem = default!; + [Dependency] private readonly SharedRoleSystem _roles = default!; [Dependency] private readonly StationSystem _station = default!; - [Dependency] private readonly IGameTiming _timing = default!; [Dependency] private readonly ZombieSystem _zombie = default!; public override void Initialize() @@ -95,9 +96,10 @@ public sealed class ZombieRuleSystem : GameRuleSystem { var meta = MetaData(survivor); var username = string.Empty; - if (_mindSystem.TryGetMind(survivor, out _, out var mind) && mind.Session != null) + if (_mindSystem.TryGetMind(survivor, out _, out var mind) && + _player.TryGetSessionById(mind.UserId, out var session)) { - username = mind.Session.Name; + username = session.Name; } args.AddLine(Loc.GetString("zombie-round-end-user-was-survivor", diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index df4d998128..0cccab64b6 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -53,7 +53,7 @@ namespace Content.Server.Ghost [Dependency] private readonly MindSystem _minds = default!; [Dependency] private readonly MobStateSystem _mobState = default!; [Dependency] private readonly SharedPhysicsSystem _physics = default!; - [Dependency] private readonly IPlayerManager _playerManager = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly TransformSystem _transformSystem = default!; [Dependency] private readonly VisibilitySystem _visibilitySystem = default!; [Dependency] private readonly MetaDataSystem _metaData = default!; @@ -364,7 +364,7 @@ namespace Content.Server.Ghost private IEnumerable GetPlayerWarps(EntityUid except) { - foreach (var player in _playerManager.Sessions) + foreach (var player in _player.Sessions) { if (player.AttachedEntity is not {Valid: true} attached) continue; @@ -484,8 +484,8 @@ namespace Content.Server.Ghost // However, that should rarely happen. if (!string.IsNullOrWhiteSpace(mind.Comp.CharacterName)) _metaData.SetEntityName(ghost, mind.Comp.CharacterName); - else if (!string.IsNullOrWhiteSpace(mind.Comp.Session?.Name)) - _metaData.SetEntityName(ghost, mind.Comp.Session.Name); + else if (mind.Comp.UserId is { } userId && _player.TryGetSessionById(userId, out var session)) + _metaData.SetEntityName(ghost, session.Name); if (mind.Comp.TimeOfDeath.HasValue) { @@ -530,9 +530,9 @@ namespace Content.Server.Ghost if (mind.PreventGhosting && !forced) { - if (mind.Session != null) // Logging is suppressed to prevent spam from ghost attempts caused by movement attempts + if (_player.TryGetSessionById(mind.UserId, out var session)) // Logging is suppressed to prevent spam from ghost attempts caused by movement attempts { - _chatManager.DispatchServerMessage(mind.Session, Loc.GetString("comp-mind-ghosting-prevented"), + _chatManager.DispatchServerMessage(session, Loc.GetString("comp-mind-ghosting-prevented"), true); } diff --git a/Content.Server/Ghost/ReturnToBodyEui.cs b/Content.Server/Ghost/ReturnToBodyEui.cs index 77b143f7df..50664b30d1 100644 --- a/Content.Server/Ghost/ReturnToBodyEui.cs +++ b/Content.Server/Ghost/ReturnToBodyEui.cs @@ -2,19 +2,22 @@ using Content.Server.EUI; using Content.Shared.Eui; using Content.Shared.Ghost; using Content.Shared.Mind; +using Robust.Shared.Network; +using Robust.Shared.Player; namespace Content.Server.Ghost; public sealed class ReturnToBodyEui : BaseEui { private readonly SharedMindSystem _mindSystem; + private readonly ISharedPlayerManager _player; + private readonly NetUserId? _userId; - private readonly MindComponent _mind; - - public ReturnToBodyEui(MindComponent mind, SharedMindSystem mindSystem) + public ReturnToBodyEui(MindComponent mind, SharedMindSystem mindSystem, ISharedPlayerManager player) { - _mind = mind; _mindSystem = mindSystem; + _player = player; + _userId = mind.UserId; } public override void HandleMessage(EuiMessageBase msg) @@ -28,7 +31,8 @@ public sealed class ReturnToBodyEui : BaseEui return; } - _mindSystem.UnVisit(_mind.Session); + if (_userId is { } userId && _player.TryGetSessionById(userId, out var session)) + _mindSystem.UnVisit(session); Close(); } diff --git a/Content.Server/Medical/DefibrillatorSystem.cs b/Content.Server/Medical/DefibrillatorSystem.cs index ba272c92f5..94d62641ce 100644 --- a/Content.Server/Medical/DefibrillatorSystem.cs +++ b/Content.Server/Medical/DefibrillatorSystem.cs @@ -36,12 +36,13 @@ public sealed class DefibrillatorSystem : EntitySystem [Dependency] private readonly DoAfterSystem _doAfter = default!; [Dependency] private readonly ElectrocutionSystem _electrocution = default!; [Dependency] private readonly EuiManager _euiManager = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly ItemToggleSystem _toggle = default!; - [Dependency] private readonly RottingSystem _rotting = default!; [Dependency] private readonly MobStateSystem _mobState = default!; [Dependency] private readonly MobThresholdSystem _mobThreshold = default!; [Dependency] private readonly PopupSystem _popup = default!; [Dependency] private readonly PowerCellSystem _powerCell = default!; + [Dependency] private readonly RottingSystem _rotting = default!; [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly SharedMindSystem _mind = default!; [Dependency] private readonly UseDelaySystem _useDelay = default!; @@ -212,13 +213,13 @@ public sealed class DefibrillatorSystem : EntitySystem } if (_mind.TryGetMind(target, out _, out var mind) && - mind.Session is { } playerSession) + _player.TryGetSessionById(mind.UserId, out var playerSession)) { session = playerSession; // notify them they're being revived. if (mind.CurrentEntity != target) { - _euiManager.OpenEui(new ReturnToBodyEui(mind, _mind), session); + _euiManager.OpenEui(new ReturnToBodyEui(mind, _mind, _player), session); } } else diff --git a/Content.Server/Mind/MindSystem.cs b/Content.Server/Mind/MindSystem.cs index 0d3c0c750c..5601f19e58 100644 --- a/Content.Server/Mind/MindSystem.cs +++ b/Content.Server/Mind/MindSystem.cs @@ -69,7 +69,7 @@ public sealed class MindSystem : SharedMindSystem TransferTo(mindId, null, createGhost: false, mind: mind); DebugTools.AssertNull(mind.OwnedEntity); - if (!component.GhostOnShutdown || mind.Session == null || _gameTicker.RunLevel == GameRunLevel.PreRoundLobby) + if (!component.GhostOnShutdown || _gameTicker.RunLevel == GameRunLevel.PreRoundLobby) return; var ghost = _ghosts.SpawnGhost((mindId, mind), uid); @@ -93,16 +93,6 @@ public sealed class MindSystem : SharedMindSystem return false; } - public ICommonSession? GetSession(MindComponent mind) - { - return mind.Session; - } - - public bool TryGetSession(MindComponent mind, [NotNullWhen(true)] out ICommonSession? session) - { - return (session = GetSession(mind)) != null; - } - public override void WipeAllMinds() { base.WipeAllMinds(); @@ -144,10 +134,10 @@ public sealed class MindSystem : SharedMindSystem // Do this AFTER the entity changes above as this will fire off a player-detached event // which will run ghosting twice. - if (GetSession(mind) is { } session) + if (_players.TryGetSessionById(mind.UserId, out var session)) _players.SetAttachedEntity(session, entity); - Log.Info($"Session {mind.Session?.Name} visiting entity {entity}."); + Log.Info($"Session {session?.Name} visiting entity {entity}."); } public override void UnVisit(EntityUid mindId, MindComponent? mind = null) @@ -162,17 +152,19 @@ public sealed class MindSystem : SharedMindSystem RemoveVisitingEntity(mindId, mind); - if (mind.Session == null || mind.Session.AttachedEntity == mind.VisitingEntity) + if (mind.UserId == null || !_players.TryGetSessionById(mind.UserId.Value, out var session)) + return; + + if (session.AttachedEntity == mind.VisitingEntity) return; var owned = mind.OwnedEntity; - if (GetSession(mind) is { } session) - _players.SetAttachedEntity(session, owned); + _players.SetAttachedEntity(session, owned); if (owned.HasValue) { _adminLogger.Add(LogType.Mind, LogImpact.Low, - $"{mind.Session.Name} returned to {ToPrettyString(owned.Value)}"); + $"{session.Name} returned to {ToPrettyString(owned.Value)}"); } } @@ -199,7 +191,8 @@ public sealed class MindSystem : SharedMindSystem if (TryComp(entity.Value, out var actor)) { // Happens when transferring to your currently visited entity. - if (actor.PlayerSession != mind.Session) + if (!_players.TryGetSessionByEntity(entity.Value, out var session) || + mind.UserId == null || actor.PlayerSession != session ) { throw new ArgumentException("Visit target already has a session.", nameof(entity)); } @@ -253,12 +246,12 @@ public sealed class MindSystem : SharedMindSystem } // Player is CURRENTLY connected. - var session = GetSession(mind); - if (session != null && !alreadyAttached && mind.VisitingEntity == null) + if (mind.UserId != null && _players.TryGetSessionById(mind.UserId.Value, out var userSession) + && !alreadyAttached && mind.VisitingEntity == null) { - _players.SetAttachedEntity(session, entity, true); - DebugTools.Assert(session.AttachedEntity == entity, $"Failed to attach entity."); - Log.Info($"Session {session.Name} transferred to entity {entity}."); + _players.SetAttachedEntity(userSession, entity, true); + DebugTools.Assert(userSession.AttachedEntity == entity, "Failed to attach entity."); + Log.Info($"Session {userSession.Name} transferred to entity {entity}."); } if (entity != null) @@ -288,18 +281,18 @@ public sealed class MindSystem : SharedMindSystem return; Dirty(mindId, mind); - var netMind = GetNetEntity(mindId); - _pvsOverride.ClearOverride(netMind); + if (userId != null && !_players.TryGetPlayerData(userId.Value, out _)) { Log.Error($"Attempted to set mind user to invalid value {userId}"); return; } - if (mind.Session != null) + // Clear any existing entity attachment + if (_players.TryGetSessionById(mind.UserId, out var oldSession)) { - _players.SetAttachedEntity(GetSession(mind), null); - mind.Session = null; + _players.SetAttachedEntity(oldSession, null); + _pvsOverride.RemoveSessionOverride(mindId, oldSession); } if (mind.UserId != null) @@ -311,10 +304,7 @@ public sealed class MindSystem : SharedMindSystem } if (userId == null) - { - DebugTools.AssertNull(mind.Session); return; - } if (UserMinds.TryGetValue(userId.Value, out var oldMindId) && TryComp(oldMindId, out MindComponent? oldMind)) @@ -333,11 +323,10 @@ public sealed class MindSystem : SharedMindSystem if (_players.GetPlayerData(userId.Value).ContentData() is { } data) data.Mind = mindId; - if (_players.TryGetSessionById(userId.Value, out var ret)) + if (_players.TryGetSessionById(userId.Value, out var session)) { - mind.Session = ret; - _pvsOverride.AddSessionOverride(mindId, ret); - _players.SetAttachedEntity(ret, mind.CurrentEntity); + _pvsOverride.AddSessionOverride(mindId, session); + _players.SetAttachedEntity(session, mind.CurrentEntity); } } diff --git a/Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs b/Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs index b8c0d3f450..9f4b6599b8 100644 --- a/Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs +++ b/Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs @@ -123,7 +123,7 @@ public sealed class PlayTimeTrackingSystem : EntitySystem private void OnRoleEvent(RoleEvent ev) { - if (_minds.TryGetSession(ev.Mind, out var session)) + if (_playerManager.TryGetSessionById(ev.Mind.UserId, out var session)) _tracking.QueueRefreshTrackers(session); } diff --git a/Content.Server/Roles/Jobs/JobSystem.cs b/Content.Server/Roles/Jobs/JobSystem.cs index 28cfbe76b5..3603225dfb 100644 --- a/Content.Server/Roles/Jobs/JobSystem.cs +++ b/Content.Server/Roles/Jobs/JobSystem.cs @@ -4,6 +4,7 @@ using Content.Server.Mind; using Content.Shared.Mind; using Content.Shared.Roles; using Content.Shared.Roles.Jobs; +using Robust.Shared.Player; namespace Content.Server.Roles.Jobs; @@ -14,6 +15,7 @@ public sealed class JobSystem : SharedJobSystem { [Dependency] private readonly IChatManager _chat = default!; [Dependency] private readonly MindSystem _mind = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; [Dependency] private readonly RoleSystem _roles = default!; public override void Initialize() @@ -42,7 +44,7 @@ public sealed class JobSystem : SharedJobSystem if (args.Silent) return; - if (!_mind.TryGetSession(mindId, out var session)) + if (!_player.TryGetSessionById(component.UserId, out var session)) return; if (!MindTryGetJob(mindId, out var prototype)) diff --git a/Content.Server/Roles/RoleSystem.cs b/Content.Server/Roles/RoleSystem.cs index 278ac48579..6cbd039c73 100644 --- a/Content.Server/Roles/RoleSystem.cs +++ b/Content.Server/Roles/RoleSystem.cs @@ -46,7 +46,7 @@ public sealed class RoleSystem : SharedRoleSystem public void RoleUpdateMessage(MindComponent mind) { - if (mind.Session is null) + if (!Player.TryGetSessionById(mind.UserId, out var session)) return; if (!_proto.TryIndex(mind.RoleType, out var proto)) @@ -55,8 +55,6 @@ public sealed class RoleSystem : SharedRoleSystem var roleText = Loc.GetString(proto.Name); var color = proto.Color; - var session = mind.Session; - //TODO add audio? Would need to be optional so it does not play on role changes that already come with their own audio // _audio.PlayGlobal(Sound, session); diff --git a/Content.Server/Silicons/Borgs/BorgSystem.cs b/Content.Server/Silicons/Borgs/BorgSystem.cs index d8fa1f300b..82e247cb0b 100644 --- a/Content.Server/Silicons/Borgs/BorgSystem.cs +++ b/Content.Server/Silicons/Borgs/BorgSystem.cs @@ -54,7 +54,7 @@ public sealed partial class BorgSystem : SharedBorgSystem [Dependency] private readonly UserInterfaceSystem _ui = default!; [Dependency] private readonly SharedContainerSystem _container = default!; [Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!; - + [Dependency] private readonly ISharedPlayerManager _player = default!; [ValidatePrototypeId] public const string BorgJobId = "Borg"; @@ -110,9 +110,10 @@ public sealed partial class BorgSystem : SharedBorgSystem if (component.BrainEntity == null && brain != null && _whitelistSystem.IsWhitelistPassOrNull(component.BrainWhitelist, used)) { - if (_mind.TryGetMind(used, out _, out var mind) && mind.Session != null) + if (_mind.TryGetMind(used, out _, out var mind) && + _player.TryGetSessionById(mind.UserId, out var session)) { - if (!CanPlayerBeBorged(mind.Session)) + if (!CanPlayerBeBorged(session)) { Popup.PopupEntity(Loc.GetString("borg-player-not-allowed"), used, args.User); return; @@ -245,10 +246,11 @@ public sealed partial class BorgSystem : SharedBorgSystem container.ID != chassisComponent.BrainContainerId) return; - if (!_mind.TryGetMind(uid, out var mindId, out var mind) || mind.Session == null) + if (!_mind.TryGetMind(uid, out var mindId, out var mind) || + !_player.TryGetSessionById(mind.UserId, out var session)) return; - if (!CanPlayerBeBorged(mind.Session)) + if (!CanPlayerBeBorged(session)) { Popup.PopupEntity(Loc.GetString("borg-player-not-allowed-eject"), uid); Container.RemoveEntity(containerEnt, uid); diff --git a/Content.Server/Traitor/Systems/AutoTraitorSystem.cs b/Content.Server/Traitor/Systems/AutoTraitorSystem.cs index d5a4db591a..3343fec7ab 100644 --- a/Content.Server/Traitor/Systems/AutoTraitorSystem.cs +++ b/Content.Server/Traitor/Systems/AutoTraitorSystem.cs @@ -1,6 +1,7 @@ using Content.Server.Antag; using Content.Server.Traitor.Components; using Content.Shared.Mind.Components; +using Robust.Shared.Player; using Robust.Shared.Prototypes; namespace Content.Server.Traitor.Systems; @@ -11,6 +12,7 @@ namespace Content.Server.Traitor.Systems; public sealed class AutoTraitorSystem : EntitySystem { [Dependency] private readonly AntagSelectionSystem _antag = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; public override void Initialize() { @@ -21,6 +23,9 @@ public sealed class AutoTraitorSystem : EntitySystem private void OnMindAdded(EntityUid uid, AutoTraitorComponent comp, MindAddedMessage args) { - _antag.ForceMakeAntag(args.Mind.Comp.Session, comp.Profile); + if (!_player.TryGetSessionById(args.Mind.Comp.UserId, out var session)) + return; + + _antag.ForceMakeAntag(session, comp.Profile); } } diff --git a/Content.Server/Zombies/ZombieSystem.Transform.cs b/Content.Server/Zombies/ZombieSystem.Transform.cs index a7a22c4175..7be4570160 100644 --- a/Content.Server/Zombies/ZombieSystem.Transform.cs +++ b/Content.Server/Zombies/ZombieSystem.Transform.cs @@ -35,7 +35,9 @@ using Content.Shared.Prying.Components; using Content.Shared.Traits.Assorted; using Robust.Shared.Audio.Systems; using Content.Shared.Ghost.Roles.Components; +using Content.Shared.Roles; using Content.Shared.Tag; +using Robust.Shared.Player; using Robust.Shared.Prototypes; namespace Content.Server.Zombies; @@ -61,6 +63,8 @@ public sealed partial class ZombieSystem [Dependency] private readonly NPCSystem _npc = default!; [Dependency] private readonly TagSystem _tag = default!; [Dependency] private readonly NameModifierSystem _nameMod = default!; + [Dependency] private readonly SharedRoleSystem _roles = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; private static readonly ProtoId InvalidForGlobalSpawnSpellTag = "InvalidForGlobalSpawnSpell"; private static readonly ProtoId CannotSuicideTag = "CannotSuicide"; @@ -234,8 +238,8 @@ public sealed partial class ZombieSystem _npc.SleepNPC(target, htn); //He's gotta have a mind - var hasMind = _mind.TryGetMind(target, out var mindId, out _); - if (hasMind && _mind.TryGetSession(mindId, out var session)) + var hasMind = _mind.TryGetMind(target, out var mindId, out var mind); + if (hasMind && mind != null && _player.TryGetSessionById(mind.UserId, out var session)) { //Zombie role for player manifest _role.MindAddRole(mindId, "MindRoleZombie", mind: null, silent: true); diff --git a/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs b/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs index f6b7a34785..e17a0a9167 100644 --- a/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs +++ b/Content.Shared/Bed/Cryostorage/SharedCryostorageSystem.cs @@ -8,6 +8,7 @@ using Content.Shared.Mobs.Systems; using Robust.Shared.Configuration; using Robust.Shared.Containers; using Robust.Shared.Map; +using Robust.Shared.Player; using Robust.Shared.Timing; namespace Content.Shared.Bed.Cryostorage; @@ -17,13 +18,14 @@ namespace Content.Shared.Bed.Cryostorage; /// public abstract class SharedCryostorageSystem : EntitySystem { - [Dependency] protected readonly ISharedAdminLogManager AdminLog = default!; - [Dependency] private readonly IConfigurationManager _configuration = default!; + [Dependency] private readonly IConfigurationManager _configuration = default!; + [Dependency] private readonly IMapManager _mapManager = default!; + [Dependency] private readonly ISharedPlayerManager _player = default!; + [Dependency] private readonly MobStateSystem _mobState = default!; + [Dependency] private readonly SharedAppearanceSystem _appearance = default!; [Dependency] protected readonly IGameTiming Timing = default!; - [Dependency] private readonly IMapManager _mapManager = default!; - [Dependency] private readonly SharedAppearanceSystem _appearance = default!; + [Dependency] protected readonly ISharedAdminLogManager AdminLog = default!; [Dependency] protected readonly SharedMindSystem Mind = default!; - [Dependency] private readonly MobStateSystem _mobState = default!; protected EntityUid? PausedMap { get; private set; } @@ -123,7 +125,8 @@ public abstract class SharedCryostorageSystem : EntitySystem if (args.Dragged == args.User) return; - if (!Mind.TryGetMind(args.Dragged, out _, out var mindComp) || mindComp.Session?.AttachedEntity != args.Dragged) + if (!_player.TryGetSessionByEntity(args.Dragged, out var session) || + session.AttachedEntity != args.Dragged) return; args.CanDrop = false; diff --git a/Content.Shared/Mind/MindComponent.cs b/Content.Shared/Mind/MindComponent.cs index 3b2b934478..7864d61a8c 100644 --- a/Content.Shared/Mind/MindComponent.cs +++ b/Content.Shared/Mind/MindComponent.cs @@ -113,12 +113,4 @@ public sealed partial class MindComponent : Component /// [DataField] public LocId? Subtype; - - /// - /// The session of the player owning this mind. - /// Can be null, in which case the player is currently not logged in. - /// - [ViewVariables, Access(typeof(SharedMindSystem), typeof(SharedGameTicker))] - // TODO remove this after moving IPlayerManager functions to shared - public ICommonSession? Session { get; set; } } diff --git a/Content.Shared/Mind/SharedMindSystem.cs b/Content.Shared/Mind/SharedMindSystem.cs index 1b1fcabc98..ab17a4221e 100644 --- a/Content.Shared/Mind/SharedMindSystem.cs +++ b/Content.Shared/Mind/SharedMindSystem.cs @@ -26,6 +26,7 @@ public abstract partial class SharedMindSystem : EntitySystem [Dependency] private readonly MobStateSystem _mobState = default!; [Dependency] private readonly SharedObjectivesSystem _objectives = default!; [Dependency] private readonly SharedPlayerSystem _player = default!; + [Dependency] private readonly ISharedPlayerManager _playerManager = default!; [Dependency] private readonly MetaDataSystem _metadata = default!; [Dependency] private readonly EntityWhitelistSystem _whitelist = default!; @@ -153,23 +154,31 @@ public abstract partial class SharedMindSystem : EntitySystem if (!mindContainer.ShowExamineInfo || !args.IsInDetailsRange) return; - // TODO predict we can't right now because session stuff isnt networked + // TODO: Move this out of the SharedMindSystem into its own comp and predict it if (_net.IsClient) return; var dead = _mobState.IsDead(uid); - var hasUserId = CompOrNull(mindContainer.Mind)?.UserId; - var hasSession = CompOrNull(mindContainer.Mind)?.Session; + var mind = CompOrNull(mindContainer.Mind); + var hasUserId = mind?.UserId; + var hasActiveSession = hasUserId != null && _playerManager.ValidSessionId(hasUserId.Value); + + // Scenarios: + // 1. Dead + No User ID: Entity is permanently dead with no player ever attached + // 2. Dead + Has User ID + No Session: Player died and disconnected + // 3. Dead + Has Session: Player is dead but still connected + // 4. Alive + No User ID: Entity was never controlled by a player + // 5. Alive + No Session: Player disconnected while alive (SSD) if (dead && hasUserId == null) args.PushMarkup($"[color=mediumpurple]{Loc.GetString("comp-mind-examined-dead-and-irrecoverable", ("ent", uid))}[/color]"); - else if (dead && hasSession == null) + else if (dead && !hasActiveSession) args.PushMarkup($"[color=yellow]{Loc.GetString("comp-mind-examined-dead-and-ssd", ("ent", uid))}[/color]"); else if (dead) args.PushMarkup($"[color=red]{Loc.GetString("comp-mind-examined-dead", ("ent", uid))}[/color]"); else if (hasUserId == null) args.PushMarkup($"[color=mediumpurple]{Loc.GetString("comp-mind-examined-catatonic", ("ent", uid))}[/color]"); - else if (hasSession == null) + else if (!hasActiveSession) args.PushMarkup($"[color=yellow]{Loc.GetString("comp-mind-examined-ssd", ("ent", uid))}[/color]"); } @@ -460,12 +469,6 @@ public abstract partial class SharedMindSystem : EntitySystem return false; } - public bool TryGetSession(EntityUid? mindId, [NotNullWhen(true)] out ICommonSession? session) - { - session = null; - return TryComp(mindId, out MindComponent? mind) && (session = mind.Session) != null; - } - /// /// Gets a mind from uid and/or MindContainerComponent. Used for null checks. /// diff --git a/Content.Shared/Roles/SharedRoleSystem.cs b/Content.Shared/Roles/SharedRoleSystem.cs index 83ef6cbf23..0407251414 100644 --- a/Content.Shared/Roles/SharedRoleSystem.cs +++ b/Content.Shared/Roles/SharedRoleSystem.cs @@ -10,6 +10,7 @@ using Robust.Shared.Audio; using Robust.Shared.Audio.Systems; using Robust.Shared.Configuration; using Robust.Shared.Map; +using Robust.Shared.Player; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.Utility; @@ -18,12 +19,13 @@ namespace Content.Shared.Roles; public abstract class SharedRoleSystem : EntitySystem { - [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; - [Dependency] private readonly SharedAudioSystem _audio = default!; - [Dependency] private readonly IConfigurationManager _cfg = default!; - [Dependency] private readonly IEntityManager _entityManager = default!; - [Dependency] private readonly SharedMindSystem _minds = default!; - [Dependency] private readonly IPrototypeManager _prototypes = default!; + [Dependency] private readonly IConfigurationManager _cfg = default!; + [Dependency] private readonly IEntityManager _entityManager = default!; + [Dependency] private readonly IPrototypeManager _prototypes = default!; + [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; + [Dependency] protected readonly ISharedPlayerManager Player = default!; + [Dependency] private readonly SharedAudioSystem _audio = default!; + [Dependency] private readonly SharedMindSystem _minds = default!; private JobRequirementOverridePrototype? _requirementOverride; @@ -256,7 +258,7 @@ public abstract class SharedRoleSystem : EntitySystem Dirty(mind, comp); // Update player character window - if (_minds.TryGetSession(mind, out var session)) + if (Player.TryGetSessionById(comp.UserId, out var session)) RaiseNetworkEvent(new MindRoleTypeChangedEvent(), session.Channel); else { @@ -589,8 +591,11 @@ public abstract class SharedRoleSystem : EntitySystem /// public void MindPlaySound(EntityUid mindId, SoundSpecifier? sound, MindComponent? mind = null) { - if (Resolve(mindId, ref mind) && mind.Session != null) - _audio.PlayGlobal(sound, mind.Session); + if (!Resolve(mindId, ref mind)) + return; + + if (Player.TryGetSessionById(mind.UserId, out var session)) + _audio.PlayGlobal(sound, session); } // TODO ROLES Change to readonly. From 615584e7e4bc7498854552b9e78f7f4d17c1826f Mon Sep 17 00:00:00 2001 From: Ilya246 <57039557+Ilya246@users.noreply.github.com> Date: Sat, 19 Apr 2025 02:45:20 +0400 Subject: [PATCH 05/12] extend hotbar hotkeys to 20 keys via shift (#33872) shift+ keys in hotbar --- Content.Shared/Input/ContentKeyFunctions.cs | 13 +++++- .../en-US/escape-menu/ui/options-menu.ftl | 20 ++++++++++ Resources/keybinds.yml | 40 +++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Input/ContentKeyFunctions.cs b/Content.Shared/Input/ContentKeyFunctions.cs index 863d9da970..76f30646b0 100644 --- a/Content.Shared/Input/ContentKeyFunctions.cs +++ b/Content.Shared/Input/ContentKeyFunctions.cs @@ -87,11 +87,22 @@ namespace Content.Shared.Input public static readonly BoundKeyFunction Hotbar7 = "Hotbar7"; public static readonly BoundKeyFunction Hotbar8 = "Hotbar8"; public static readonly BoundKeyFunction Hotbar9 = "Hotbar9"; + public static readonly BoundKeyFunction HotbarShift0 = "HotbarShift0"; + public static readonly BoundKeyFunction HotbarShift1 = "HotbarShift1"; + public static readonly BoundKeyFunction HotbarShift2 = "HotbarShift2"; + public static readonly BoundKeyFunction HotbarShift3 = "HotbarShift3"; + public static readonly BoundKeyFunction HotbarShift4 = "HotbarShift4"; + public static readonly BoundKeyFunction HotbarShift5 = "HotbarShift5"; + public static readonly BoundKeyFunction HotbarShift6 = "HotbarShift6"; + public static readonly BoundKeyFunction HotbarShift7 = "HotbarShift7"; + public static readonly BoundKeyFunction HotbarShift8 = "HotbarShift8"; + public static readonly BoundKeyFunction HotbarShift9 = "HotbarShift9"; public static BoundKeyFunction[] GetHotbarBoundKeys() => new[] { - Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0 + Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0, + HotbarShift1, HotbarShift2, HotbarShift3, HotbarShift4, HotbarShift5, HotbarShift6, HotbarShift7, HotbarShift8, HotbarShift9, HotbarShift0 }; public static readonly BoundKeyFunction Vote0 = "Vote0"; diff --git a/Resources/Locale/en-US/escape-menu/ui/options-menu.ftl b/Resources/Locale/en-US/escape-menu/ui/options-menu.ftl index 95c002b745..357f551bc4 100644 --- a/Resources/Locale/en-US/escape-menu/ui/options-menu.ftl +++ b/Resources/Locale/en-US/escape-menu/ui/options-menu.ftl @@ -227,6 +227,16 @@ ui-options-function-hotbar7 = Hotbar slot 7 ui-options-function-hotbar8 = Hotbar slot 8 ui-options-function-hotbar9 = Hotbar slot 9 ui-options-function-hotbar0 = Hotbar slot 0 +ui-options-function-hotbarshift1 = Hotbar slot Shift+1 +ui-options-function-hotbarshift2 = Hotbar slot Shift+2 +ui-options-function-hotbarshift3 = Hotbar slot Shift+3 +ui-options-function-hotbarshift4 = Hotbar slot Shift+4 +ui-options-function-hotbarshift5 = Hotbar slot Shift+5 +ui-options-function-hotbarshift6 = Hotbar slot Shift+6 +ui-options-function-hotbarshift7 = Hotbar slot Shift+7 +ui-options-function-hotbarshift8 = Hotbar slot Shift+8 +ui-options-function-hotbarshift9 = Hotbar slot Shift+9 +ui-options-function-hotbarshift0 = Hotbar slot Shift+0 ui-options-function-loadout1 = Hotbar Loadout 1 ui-options-function-loadout2 = Hotbar Loadout 2 ui-options-function-loadout3 = Hotbar Loadout 3 @@ -237,6 +247,16 @@ ui-options-function-loadout7 = Hotbar Loadout 7 ui-options-function-loadout8 = Hotbar Loadout 8 ui-options-function-loadout9 = Hotbar Loadout 9 ui-options-function-loadout0 = Hotbar Loadout 0 +ui-options-function-loadoutshift1 = Hotbar Loadout Shift+1 +ui-options-function-loadoutshift2 = Hotbar Loadout Shift+2 +ui-options-function-loadoutshift3 = Hotbar Loadout Shift+3 +ui-options-function-loadoutshift4 = Hotbar Loadout Shift+4 +ui-options-function-loadoutshift5 = Hotbar Loadout Shift+5 +ui-options-function-loadoutshift6 = Hotbar Loadout Shift+6 +ui-options-function-loadoutshift7 = Hotbar Loadout Shift+7 +ui-options-function-loadoutshift8 = Hotbar Loadout Shift+8 +ui-options-function-loadoutshift9 = Hotbar Loadout Shift+9 +ui-options-function-loadoutshift0 = Hotbar Loadout Shift+0 ui-options-function-shuttle-strafe-up = Strafe up ui-options-function-shuttle-strafe-right = Strafe right diff --git a/Resources/keybinds.yml b/Resources/keybinds.yml index 3b8158b7c7..8d4df5b92f 100644 --- a/Resources/keybinds.yml +++ b/Resources/keybinds.yml @@ -554,6 +554,46 @@ binds: - function: Hotbar9 type: State key: Num9 +- function: HotbarShift0 + type: State + key: Num0 + mod1: Shift +- function: HotbarShift1 + type: State + key: Num1 + mod1: Shift +- function: HotbarShift2 + type: State + key: Num2 + mod1: Shift +- function: HotbarShift3 + type: State + key: Num3 + mod1: Shift +- function: HotbarShift4 + type: State + key: Num4 + mod1: Shift +- function: HotbarShift5 + type: State + key: Num5 + mod1: Shift +- function: HotbarShift6 + type: State + key: Num6 + mod1: Shift +- function: HotbarShift7 + type: State + key: Num7 + mod1: Shift +- function: HotbarShift8 + type: State + key: Num8 + mod1: Shift +- function: HotbarShift9 + type: State + key: Num9 + mod1: Shift - function: MappingUnselect type: State key: MouseRight From fbf7dd9fba6a17e11acfd75c6e729e9df98615d9 Mon Sep 17 00:00:00 2001 From: PJBot Date: Fri, 18 Apr 2025 22:46:29 +0000 Subject: [PATCH 06/12] Automatic changelog update --- Resources/Changelog/Changelog.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index 11beaaf23c..9724f962e7 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -1,12 +1,4 @@ Entries: -- author: Plykiya - changes: - - message: Cargo armor crate now correctly indicates that it contains bulletproof - vests. - type: Fix - id: 7736 - time: '2024-12-19T17:21:28.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/33414 - author: Piras314 changes: - message: Removed the nuke song "Clearly Nuclear" on request of the author. @@ -3906,3 +3898,11 @@ id: 8236 time: '2025-04-18T19:56:57.0000000+00:00' url: https://github.com/space-wizards/space-station-14/pull/34627 +- author: Ilya246 + changes: + - message: The actions hotbar now has up to 10 more hotkeys accessible through the + shift key. + type: Add + id: 8237 + time: '2025-04-18T22:45:20.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/33872 From b96fa3dcfafab6c5a722fc49f14919ad07c67f51 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Sat, 19 Apr 2025 00:52:09 +0200 Subject: [PATCH 07/12] Fix space wind layer removal (#33888) * Fix space wind layer removal * apply review * Update MovedByPressureComponent.cs * remove this --- .../AtmosphereSystem.HighPressureDelta.cs | 16 ++++++++++++---- .../Atmos/Components/MovedByPressureComponent.cs | 6 ++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs index 6a5b07bb17..cdf7018e23 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs @@ -56,11 +56,15 @@ namespace Content.Server.Atmos.EntitySystems _physics.SetBodyStatus(uid, body, BodyStatus.OnGround); } - if (TryComp(uid, out var fixtures)) + if (TryComp(uid, out var fixtures) + && TryComp(uid, out var component)) { foreach (var (id, fixture) in fixtures.Fixtures) { - _physics.AddCollisionMask(uid, id, fixture, (int) CollisionGroup.TableLayer, manager: fixtures); + if (component.TableLayerRemoved.Contains(id)) + { + _physics.AddCollisionMask(uid, id, fixture, (int)CollisionGroup.TableLayer, manager: fixtures); + } } } } @@ -80,9 +84,13 @@ namespace Content.Server.Atmos.EntitySystems foreach (var (id, fixture) in fixtures.Fixtures) { - _physics.RemoveCollisionMask(uid, id, fixture, (int) CollisionGroup.TableLayer, manager: fixtures); + // Mark fixtures that have TableLayer removed + if ((fixture.CollisionMask & (int)CollisionGroup.TableLayer) != 0) + { + component.TableLayerRemoved.Add(id); + _physics.RemoveCollisionMask(uid, id, fixture, (int)CollisionGroup.TableLayer, manager: fixtures); + } } - // TODO: Make them dynamic type? Ehh but they still want movement so uhh make it non-predicted like weightless? // idk it's hard. diff --git a/Content.Shared/Atmos/Components/MovedByPressureComponent.cs b/Content.Shared/Atmos/Components/MovedByPressureComponent.cs index 8a4e2c6d4c..67647daa80 100644 --- a/Content.Shared/Atmos/Components/MovedByPressureComponent.cs +++ b/Content.Shared/Atmos/Components/MovedByPressureComponent.cs @@ -27,5 +27,11 @@ public sealed partial class MovedByPressureComponent : Component [ViewVariables(VVAccess.ReadWrite)] public int LastHighPressureMovementAirCycle { get; set; } = 0; + + /// + /// Used to remember which fixtures we have to remove the table mask from and give it back accordingly + /// + [DataField] + public HashSet TableLayerRemoved = new(); } From 646baebea9fa1245960680728fee5bd4e1d1a335 Mon Sep 17 00:00:00 2001 From: PJBot Date: Fri, 18 Apr 2025 22:53:16 +0000 Subject: [PATCH 08/12] Automatic changelog update --- Resources/Changelog/Changelog.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index 9724f962e7..84b76acf91 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -1,11 +1,4 @@ Entries: -- author: Piras314 - changes: - - message: Removed the nuke song "Clearly Nuclear" on request of the author. - type: Remove - id: 7737 - time: '2024-12-20T14:35:55.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/33971 - author: VlaDOS1408 changes: - message: The Communication Console UI is now resizable. @@ -3906,3 +3899,11 @@ id: 8237 time: '2025-04-18T22:45:20.0000000+00:00' url: https://github.com/space-wizards/space-station-14/pull/33872 +- author: lzk228 + changes: + - message: Fixed breaking small mobs (e.g. mice) mask after getting into an air + flow. + type: Fix + id: 8238 + time: '2025-04-18T22:52:09.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/33888 From 44b8b3e5ce4614a2395b72a63e6a09b57a11ef36 Mon Sep 17 00:00:00 2001 From: YoungThug Date: Fri, 18 Apr 2025 16:19:04 -0700 Subject: [PATCH 09/12] New Speech Indicators for species that don't have any. (#36126) * DionaAndGingerbread * DionaSpeechTweaks * FixGingerbread * IfYourReadingThisYouMatter --- .../Entities/Mobs/Species/diona.yml | 2 + .../Entities/Mobs/Species/gingerbread.yml | 2 + Resources/Prototypes/typing_indicator.yml | 10 +++++ .../Textures/Effects/speech.rsi/diona0.png | Bin 0 -> 537 bytes .../Textures/Effects/speech.rsi/diona1.png | Bin 0 -> 297 bytes .../Textures/Effects/speech.rsi/diona2.png | Bin 0 -> 282 bytes .../Effects/speech.rsi/gingerbread0.png | Bin 0 -> 450 bytes .../Effects/speech.rsi/gingerbread1.png | Bin 0 -> 231 bytes .../Effects/speech.rsi/gingerbread2.png | Bin 0 -> 219 bytes .../Textures/Effects/speech.rsi/meta.json | 36 +++++++++++++++++- 10 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 Resources/Textures/Effects/speech.rsi/diona0.png create mode 100644 Resources/Textures/Effects/speech.rsi/diona1.png create mode 100644 Resources/Textures/Effects/speech.rsi/diona2.png create mode 100644 Resources/Textures/Effects/speech.rsi/gingerbread0.png create mode 100644 Resources/Textures/Effects/speech.rsi/gingerbread1.png create mode 100644 Resources/Textures/Effects/speech.rsi/gingerbread2.png diff --git a/Resources/Prototypes/Entities/Mobs/Species/diona.yml b/Resources/Prototypes/Entities/Mobs/Species/diona.yml index 5ae09c4d82..1e39eaec76 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/diona.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/diona.yml @@ -92,6 +92,8 @@ Male: UnisexDiona Female: UnisexDiona Unsexed: UnisexDiona + - type: TypingIndicator + proto: diona - type: BodyEmotes soundsId: DionaBodyEmotes - type: IgnoreKudzu diff --git a/Resources/Prototypes/Entities/Mobs/Species/gingerbread.yml b/Resources/Prototypes/Entities/Mobs/Species/gingerbread.yml index 003eeb8c50..cc4b506dc8 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/gingerbread.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/gingerbread.yml @@ -42,6 +42,8 @@ - MobMask layer: - MobLayer + - type: TypingIndicator + proto: gingerbread - type: Inventory femaleDisplacements: jumpsuit: diff --git a/Resources/Prototypes/typing_indicator.yml b/Resources/Prototypes/typing_indicator.yml index 7271770ef5..295af30d16 100644 --- a/Resources/Prototypes/typing_indicator.yml +++ b/Resources/Prototypes/typing_indicator.yml @@ -48,3 +48,13 @@ id: slime typingState: slime0 offset: 0, 0.125 + +- type: typingIndicator + id: gingerbread + typingState: gingerbread0 + offset: 0, 0.125 + +- type: typingIndicator + id: diona + typingState: diona0 + offset: 0, 0.125 diff --git a/Resources/Textures/Effects/speech.rsi/diona0.png b/Resources/Textures/Effects/speech.rsi/diona0.png new file mode 100644 index 0000000000000000000000000000000000000000..c833b9bbdd6a2ba91c54e135609da8dcf65a2599 GIT binary patch literal 537 zcmeAS@N?(olHy`uVBq!ia0y~yU~m9o4mJh`hEk44ofy`glX=O&zQ#_at$+9rjwKph+?r3y~^3cpXIDsw3RUzRMAIqi2KxV~gz&5 z!u2W#MCxy?WB|wgF92xr`f-E zFPY8Ed64t^E!(fZqkbqI5IGro;I*E?pS;`Ve;0PkIrs0@xXpO{pNY!TP$_-R2d(x( z0#p9}v@_jUec<<>Xw?;s`z!coOmkE|JiFoLMy+1?y;pS=H!n43{LCCLWFL8LnP#{Ab26w%kvPOX~NT z?R&q)pMCCv#w#gjKvH!&!}J j8_Nb?!;*dVub%A-c;qawkb!}L!PC{xWt~$(69WSP^&9*n literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/diona1.png b/Resources/Textures/Effects/speech.rsi/diona1.png new file mode 100644 index 0000000000000000000000000000000000000000..bcea111c491a831c55c11dab1d2c4f86c5e68761 GIT binary patch literal 297 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}jKx9jP7LeL$-HD>V0h%| z;usR)o}6-k=@GZi|K=8PKZ|o6zVl`!C2%{4C2i)3m6>kkCBstAaOSw-zgG$Om77(i z^NlVYDw-gx;mEV;NQ48&Vdv%N?k6UMi7fJ*azK{h)6SU-xo#9O{^w8lb=Zw@N3ug7 zLo18w!CqheF!lo?O)^ZyEO%uaax70c8n6dg>ptLNEMcGX_XD4d!Ig8f3fLQJzJ32^ z%@$$h(5D~8YHuU1z^+|n)?(TAjL*S;t^xbOBDTA-4KY?tGLGGE*gu5&!8 kZq5lNENBFq4GTlUl5)kS6;6f>3=9mOu6{1-oD!NC0OwR@d;kCd literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/diona2.png b/Resources/Textures/Effects/speech.rsi/diona2.png new file mode 100644 index 0000000000000000000000000000000000000000..dd40a2ea3a890bc789cca024cdc0c197182b4581 GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}jKx9jP7LeL$-HD>V7TJx z;usR)o}6-k=@GZi|K=8PKZ|o6zVl`!C2%{4C2i)3m6>kkCBstAaOSw-zgG$Om77(i z^NlVYDw-gx;mEV;NQ48&Vdv%N?k6UMi7fJ*azK{h)6SU-x$YD({^#eBH{&|+Q^CE# zscF)KW6R1vSTWq)xm5J3GS1z>xj8 WL{Tv9@@obL1_n=8KbLh*2~7YQ=5BKU literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/gingerbread0.png b/Resources/Textures/Effects/speech.rsi/gingerbread0.png new file mode 100644 index 0000000000000000000000000000000000000000..39be04648d3b1976e9f7c01d9226fed8f543950b GIT binary patch literal 450 zcmeAS@N?(olHy`uVBq!ia0y~yU~m9o4mJh`hEk44ofy`glX=O&z*yz! z;uum9_jcAs-a`%oEWSRRewoc&0;U3!Cj_!eavGW{Xf5Ckn(n}}=}2_Jw!$sj%acyt zJNUk`{LlXvbzw8(FPr%PUbF7?%-S}o>euyqBed&m-&Vihc1uo+Us&STT*l-_M|rn! z>eNaG2&Jhed=-BlU3y>VuAQ^shfLFC!KByUw{1V4yW$PU3)Ty>0*=Z3vj6_wsbx8% zvx~x4b$*MroO0<68=FO=>Mt=|>C`{9$4J3TXpNN%!|9(IyOc;}A5eREcYgZo*L4kV z&-K;LKJm_H^~qO$tF3c5HU9p*`#4DU`D;E7eWo>al8e8%9tbeMwvJijdwUtfd+(@S z@*iHiEc?y){;lVC=0!4h7)xL5XE<;rB)F>~q>!;ol#wAg*jJM&=qRg37z=}sujx__ z4^i<25rPZ`rdOvZDTKx}B)KAK_*=~s*OMm{aMH`;2m=EHgQu&X%Q~loCI$uoy1ljy literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/gingerbread1.png b/Resources/Textures/Effects/speech.rsi/gingerbread1.png new file mode 100644 index 0000000000000000000000000000000000000000..e4ab1a0aefb054fe5a4b88a951f1932076301519 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}jKx9jP7LeL$-HD>U|8Vk z;usR)o}A*q>_6Y`Z@-?JuI||mJvUvuu7e7vxBKZIHMniPd3Ix1UxPKn&7!HT?UH+( z>iOqMhiLx#NMB{DKJer zL-fCb^~Y!V5gj};m=i8Ktu|^%;0Rc~<#0OR*{+BrS^HNF7X>7E8!-q5hM5Mwif35L T^%)o#7(8A5T-G@yG%)}G8#7We literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/gingerbread2.png b/Resources/Textures/Effects/speech.rsi/gingerbread2.png new file mode 100644 index 0000000000000000000000000000000000000000..1bf41c4212fc1392f2acefb0275b221e35e9ccc2 GIT binary patch literal 219 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}jKx9jP7LeL$-HD>V3^|R z;usR)o}A*q>_6Y`Z@-?JuI||mJvUvuu7e7vxBKZIHMniPd3Ix1UxPKn-J+?j?UL_~ z+&(1htnJPd$G+e=^Id0!_pj61Jn!uL(#@=@G?38jq zhM`+5YAPd(b3@cpS-awlup>gRe+07kv>nLcz#teHrX_kRCdG;xGB7YOc)I$ztaD0e GVgLZ=7){;) literal 0 HcmV?d00001 diff --git a/Resources/Textures/Effects/speech.rsi/meta.json b/Resources/Textures/Effects/speech.rsi/meta.json index 98dd3b2060..17cf95079d 100644 --- a/Resources/Textures/Effects/speech.rsi/meta.json +++ b/Resources/Textures/Effects/speech.rsi/meta.json @@ -5,7 +5,7 @@ "y": 32 }, "license": "CC-BY-SA-3.0", - "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 | Moth sprites made by PuroSlavKing (Github) | Spider sprites made by PixelTheKermit (Github) | Lizard sprites made by AmalgoMyte (Github)", + "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 | Moth sprites made by PuroSlavKing (Github) | Spider sprites made by PixelTheKermit (Github) | Lizard sprites made by AmalgoMyte (Github) | Diona and Gingerbread sprites made by YoungThugSS14 (Github)", "states": [ { "name": "alien0", @@ -125,6 +125,40 @@ { "name": "default2" }, + { + "name": "diona0", + "delays": [ + [ + 0.3, + 0.3, + 0.3, + 0.4 + ] + ] + }, + { + "name": "diona1" + }, + { + "name": "diona2" + }, + { + "name": "gingerbread0", + "delays": [ + [ + 0.3, + 0.3, + 0.3, + 0.4 + ] + ] + }, + { + "name": "gingerbread1" + }, + { + "name": "gingerbread2" + }, { "name": "guardian0", "delays": [ From 280a21733ed5de52358db709a23dc08aa63bbc74 Mon Sep 17 00:00:00 2001 From: PJBot Date: Fri, 18 Apr 2025 23:20:11 +0000 Subject: [PATCH 10/12] Automatic changelog update --- Resources/Changelog/Changelog.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index 84b76acf91..268642a450 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -1,11 +1,4 @@ Entries: -- author: VlaDOS1408 - changes: - - message: The Communication Console UI is now resizable. - type: Fix - id: 7738 - time: '2024-12-20T16:17:13.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/33655 - author: RatIRL changes: - message: Added All-Hostile ballistic turret. @@ -3907,3 +3900,10 @@ id: 8238 time: '2025-04-18T22:52:09.0000000+00:00' url: https://github.com/space-wizards/space-station-14/pull/33888 +- author: YoungThugSS14 + changes: + - message: The Diona and Gingerbread species now get unique typing indicators + type: Add + id: 8239 + time: '2025-04-18T23:19:05.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/36126 From 5a1dd9de422684f1ef64a286bc52b6bd7e11bbdb Mon Sep 17 00:00:00 2001 From: Skye <57879983+Rainbeon@users.noreply.github.com> Date: Fri, 18 Apr 2025 19:26:44 -0400 Subject: [PATCH 11/12] Fix Speedloader Partial Reload (#32396) --- .../Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs index 2c0204d946..38f427429f 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Revolver.cs @@ -130,7 +130,7 @@ public partial class SharedGunSystem return false; } - for (var i = Math.Min(ev.Ammo.Count - 1, component.Capacity - 1); i >= 0; i--) + for (var i = 0; i < component.Capacity; i++) { var index = (component.CurrentIndex + i) % component.Capacity; From 4547da96605fe298a953f0d45652fb1000fb4fd3 Mon Sep 17 00:00:00 2001 From: PJBot Date: Fri, 18 Apr 2025 23:27:51 +0000 Subject: [PATCH 12/12] Automatic changelog update --- Resources/Changelog/Changelog.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index 268642a450..f491491794 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -1,11 +1,4 @@ Entries: -- author: RatIRL - changes: - - message: Added All-Hostile ballistic turret. - type: Add - id: 7739 - time: '2024-12-20T20:34:53.0000000+00:00' - url: https://github.com/space-wizards/space-station-14/pull/33970 - author: Beck Thompson changes: - message: Defibrillator cooldowns are now clearly visible. @@ -3907,3 +3900,15 @@ id: 8239 time: '2025-04-18T23:19:05.0000000+00:00' url: https://github.com/space-wizards/space-station-14/pull/36126 +- author: Rainbeon + changes: + - message: Fixed Revolvers not correctly reloading from Speedloaders when the Revolver + is partially loaded. + type: Fix + - message: Speedloaders will now prioritize loading the active and upcoming chambers + in a Revolver when the Speedloader is only partially filled, rather than the + ones farthest away. + type: Fix + id: 8240 + time: '2025-04-18T23:26:44.0000000+00:00' + url: https://github.com/space-wizards/space-station-14/pull/32396