Skip to content
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

Merge wizden up to 18/02 #857

Merged
merged 198 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
db3ed7c
Paper is now bad food (#25065)
Tunguso4ka Feb 8, 2024
df7894c
allow building atmos devices on lattice or thindow tiles (#25057)
Ilya246 Feb 8, 2024
4785532
Remove tail wag emote text (#25054)
Krunklehorn Feb 8, 2024
6b225dd
Automatic changelog update
PJBot Feb 8, 2024
8a14ecf
Small t-ray scanner resprite (#25047)
UbaserB Feb 8, 2024
c3fd1a5
Automatic changelog update
PJBot Feb 8, 2024
5c93eca
Fix brig timer labels to displaying correctly. (#25033)
nikthechampiongr Feb 8, 2024
9a52060
fix follow comannd help locale (#25032)
crazybrain23 Feb 8, 2024
3872c7a
Automatic changelog update
PJBot Feb 8, 2024
6c559d9
Fixes indestructible mop buckets (#25001)
vero5123 Feb 8, 2024
98ce6da
Automatic changelog update
PJBot Feb 8, 2024
471f2ac
Straw hat. (#24997)
Adrian16199 Feb 8, 2024
78767f2
Automatic changelog update
PJBot Feb 8, 2024
510d06e
Alphabetically sorted guidebook entries (#24963)
Sk1tch Feb 8, 2024
a096be2
Automatic changelog update
PJBot Feb 8, 2024
dd5e666
Revert "Straw hat (#527)"
DebugOk Feb 18, 2024
15a31ff
Syndicate key grammar fix (#25085)
ARMOKS Feb 9, 2024
d1561c8
Fix hybridization seedless probability (#25084)
Partmedia Feb 10, 2024
aa482a5
Added Tourniquets to stop bleeds (#23198)
PoorMansDreams Feb 10, 2024
a626ecb
Automatic changelog update
PJBot Feb 10, 2024
8d7e6ec
Minor airlock assembly clean up (#25073)
lapatison Feb 10, 2024
1efd153
prevent opening debug menus without perms (#25091)
EmoGarbage404 Feb 10, 2024
321df5d
Laughin' Peas (#25089)
potato1234x Feb 10, 2024
d2fda03
Automatic changelog update
PJBot Feb 10, 2024
6ef8f01
QM drip DLC (#24477)
Hanzdegloker Feb 10, 2024
33a715c
EMT Belt Part 2 (#24289)
UbaserB Feb 10, 2024
c39df88
Flipped caps real (#24961)
themias Feb 10, 2024
fc32b7d
Automatic changelog update
PJBot Feb 10, 2024
6faa6f4
Nerf Beanbags (#24653)
Blackern5000 Feb 10, 2024
8e7b782
Automatic changelog update
PJBot Feb 10, 2024
464e4d4
Fix screenspace popups (#24987)
metalgearsloth Feb 10, 2024
244658a
Automatic changelog update
PJBot Feb 10, 2024
d899831
Fix crew manifest department bugs (#24975)
themias Feb 10, 2024
8a51130
Automatic changelog update
PJBot Feb 10, 2024
9d9d86d
Changed door remote to trigger based on vision occlusion(#25093)
Plykiya Feb 10, 2024
4e452bf
GPS In Paramed Locker (#25096)
PoorMansDreams Feb 10, 2024
a9dd7af
Remove 'travis scott day' from the game (#25106)
bhenrich Feb 10, 2024
7f905dc
Automatic changelog update
PJBot Feb 10, 2024
73b2b68
Remove erroneous changelog (#25107)
mirrorcult Feb 10, 2024
e3ed747
Glass box for antique laser pistol (#25104)
Nimfar11 Feb 10, 2024
6737912
Gibbing refactor (Per-part gibbing and giblet throwing!) (#24989)
Jezithyr Feb 10, 2024
81f26ef
Automatic changelog update
PJBot Feb 10, 2024
9c6a9e2
Gibbing contents hotfix (#25114)
Jezithyr Feb 11, 2024
9e366f3
Predict two-way levers (#25043)
metalgearsloth Feb 11, 2024
eb39705
Replace Romerol with Ambuzol in chemist guidebook (#25108)
FluffiestFloof Feb 11, 2024
c4b8f14
Fix borgs being able to emag themselves (#24748)
Zap527 Feb 11, 2024
2fe88b3
Ectoplasm is grindable into Necrosol (#25053)
UbaserB Feb 11, 2024
e5e465d
Automatic changelog update
PJBot Feb 11, 2024
6d5fcd4
Automatic changelog update
PJBot Feb 11, 2024
d364ed9
Roundstart Food Service research (#25046)
UbaserB Feb 11, 2024
8dff5e5
Automatic changelog update
PJBot Feb 11, 2024
6991618
Add option for character name colors in chat & move coloration to cli…
SlamBamActionman Feb 11, 2024
e73ba45
Automatic changelog update
PJBot Feb 11, 2024
ac5c8c0
Replace fixed drink glasses with metamorphic versions (#25134)
Tayrtahn Feb 11, 2024
f41262a
ambuzol beef (#25119)
Emisse Feb 11, 2024
550ce65
Automatic changelog update
PJBot Feb 11, 2024
21db631
Shuttle floor resprite (#25127)
Flareguy Feb 11, 2024
a33ea24
Adding a period to an object description (#25138)
forgotmyotheraccount Feb 11, 2024
c331fb6
Door Remote Changelog Entry (#25144)
Plykiya Feb 12, 2024
e847d0f
Automatic changelog update
PJBot Feb 12, 2024
aece8ba
Lowered Ion Storm Reoccurence Delay to 20 (#25135)
FungiFellow Feb 12, 2024
0a719ae
Re-added shivs to crafting menus (#25094)
SlamBamActionman Feb 12, 2024
9dacbb5
Automatic changelog update
PJBot Feb 12, 2024
cf9c396
Color Tipped Ammo (#25103)
PoorMansDreams Feb 12, 2024
b88c04f
Automatic changelog update
PJBot Feb 12, 2024
93bbb92
Add overlay decals for mini tiles and bricks (#24949)
Ko4ergaPunk Feb 12, 2024
df496a6
Buyable Jani Trolley (#25139)
PoorMansDreams Feb 12, 2024
4f434db
Added display for amount of hits left in stun batons/stun prods. (#25…
Plykiya Feb 12, 2024
27a1240
Automatic changelog update
PJBot Feb 12, 2024
1e1ff61
autolatheable air tanks (#25130)
Ilya246 Feb 12, 2024
aab05ae
Automatic changelog update
PJBot Feb 12, 2024
bb71b4f
Fix pointing arrow trajectory (#25061)
Krunklehorn Feb 12, 2024
76129f4
make linking logic gates 1000% better (#25041)
deltanedas Feb 12, 2024
723059c
Buff emergency toolbox fill (#24225)
UbaserB Feb 12, 2024
4b136b3
Void jetpack resprite (#25150)
UbaserB Feb 12, 2024
bbaff5e
Automatic changelog update
PJBot Feb 12, 2024
cefa3b4
Significantly nerf Deathnettles (#25068)
UltimateJester Feb 13, 2024
f248af5
Automatic changelog update
PJBot Feb 13, 2024
1881c1a
Fix spelling errors in mechs.yml (#25168)
deepdarkdepths Feb 13, 2024
1ec35dd
fix showhealthbars perms (#25157)
Genkail Feb 13, 2024
21f849e
Allow inspecting ID's and Health of people behind glass (#25163)
VasilisThePikachu Feb 13, 2024
4838680
Automatic changelog update
PJBot Feb 13, 2024
cb97e15
Fix decal error spam (#25172)
metalgearsloth Feb 13, 2024
09f2f70
Restore MonoOverlay (#25170)
metalgearsloth Feb 13, 2024
5a91851
Automatic changelog update
PJBot Feb 13, 2024
5fd80ac
Added "wink" and "tearfully smiles" emotes + more cry emote variation…
jamessimo Feb 13, 2024
0efbb51
Automatic changelog update
PJBot Feb 13, 2024
9dd4e05
Update submodule to 210.0.0 (#25175)
metalgearsloth Feb 13, 2024
46c281b
The medical beret is real (#25176)
icekot8 Feb 13, 2024
397504e
Automatic changelog update
PJBot Feb 13, 2024
9461cd2
Fixed Tipped ammo not being Spent (#25167)
PoorMansDreams Feb 13, 2024
e3d5102
Automatic changelog update
PJBot Feb 13, 2024
b8b554d
Hoods and some chaplain's hats now hides hair (#25142)
Agoichi Feb 13, 2024
5db2c41
Glassbox shatter resprite (#25136)
xKREKSx Feb 13, 2024
7b1eee2
Automatic changelog update
PJBot Feb 13, 2024
ccea851
Random spontaneous cleanup PR (#25131)
PJB3005 Feb 13, 2024
4b6362a
Decrease the chemical cost of regen mesh and sutures and move them to…
Blackern5000 Feb 13, 2024
aa2bf00
Split slime marking leg gradient (#24928)
lzk228 Feb 13, 2024
2482756
Automatic changelog update
PJBot Feb 13, 2024
78c9dc6
Require plants to be harvestable before sampling (#24851)
Partmedia Feb 13, 2024
b39407b
Add verbs to Open/Close Openable containers, and add optional seals (…
Tayrtahn Feb 13, 2024
dbc7719
Automatic changelog update
PJBot Feb 13, 2024
9dcdbea
Shadow anomaly returns (#24629)
TheShuEd Feb 13, 2024
ac6a80a
Automatic changelog update
PJBot Feb 13, 2024
1083aeb
Microwave UX enhancements (#24547)
jamessimo Feb 13, 2024
efd1bcd
Automatic changelog update
PJBot Feb 13, 2024
13fce52
Additional damage visualisers (#24618)
UbaserB Feb 13, 2024
b741468
Anomaly Synchronizer + Signallers tweaks (#24461)
TheShuEd Feb 13, 2024
e4dbdce
Automatic changelog update
PJBot Feb 13, 2024
2691de1
Allow players to run saveconfig command. (#25200)
PJB3005 Feb 14, 2024
88f4ca2
Fax machines can print from text file (#23262)
joshepvodka Feb 14, 2024
dc8c6ed
Automatic changelog update
PJBot Feb 14, 2024
77e5628
Revert "Felinid bubble speech. (#808)"
DebugOk Feb 18, 2024
61ad810
Vox names, species prototype cleanup, some cosmetic changes (#24994)
Errant-4 Feb 14, 2024
42f43e9
Balanced ChemVend Stock (#25207)
wafehling Feb 14, 2024
e6628cf
Ranged Holosigns (#25120)
Plykiya Feb 14, 2024
578522b
Automatic changelog update
PJBot Feb 14, 2024
2cf99bd
Minor test fixes (#25174)
metalgearsloth Feb 14, 2024
20829cd
Add pun to diagnostic hud description (#25209)
Interrobang01 Feb 14, 2024
c3f4208
Add events for TemperatureProtection and PressureProtection (#25165)
EmoGarbage404 Feb 14, 2024
2a3eba2
Update criminal-records.ftl (#25229)
k3yw Feb 14, 2024
81aaf8d
Adds always powered variants of colored lights (#25185)
IamVelcroboy Feb 14, 2024
f53bcf5
Fixes silver bars being whole stacks (#25239)
IamVelcroboy Feb 14, 2024
f5a0ac1
Makes clumsy not delete guns (#25243)
jessicamaybe Feb 14, 2024
1031a93
Predict Injector (syringes), cleanup (#25235)
PJB3005 Feb 14, 2024
cfc4701
Updated disabler to have suitStorage tag under slots. (#25238)
Zadeon Feb 14, 2024
400ca3a
Automatic changelog update
PJBot Feb 14, 2024
5a315ab
Fix spawn priority persistence on reconnect and restart (#25246)
Krunklehorn Feb 15, 2024
0b84803
Add French accent beret (#21430)
brainfood1183 Feb 15, 2024
7e6a8ef
Allow thermomachines to exchange with air instead of inlet (#25247)
Menshin Feb 15, 2024
15d22b8
Fix: Holosigns can be stored again (#25249)
Plykiya Feb 15, 2024
53bd523
Death acidifier fix (#25251)
Jezithyr Feb 15, 2024
f599c1d
Automatic changelog update
PJBot Feb 15, 2024
a37bd5b
Clarify stripping logs (#25190)
nikthechampiongr Feb 15, 2024
8cdd3d1
Fix disposals bins not automatically flushing after an object is inse…
PJB3005 Feb 15, 2024
e0ac627
Sec & greysec jumpskirt fix (#25269)
Flareguy Feb 15, 2024
6289574
Automatic changelog update
PJBot Feb 15, 2024
31f5351
Reduce eshield hp (#25258)
liltenhead Feb 15, 2024
971506c
Automatic changelog update
PJBot Feb 15, 2024
406fb71
Artifact hemoglobin trigger now accepts all sentient blood types (#25…
wafehling Feb 15, 2024
ca4645a
Update engine to v210.1.0 (#25288)
ElectroJr Feb 15, 2024
09393bc
Made ghost.role_time a server modifiable only cvar (#25292)
VasilisThePikachu Feb 15, 2024
e9975e2
Nuke fancification (#25297)
PJB3005 Feb 16, 2024
6c74ae6
Automatic changelog update
PJBot Feb 16, 2024
5169d91
Change copper blood from ferrous to metallic (#25217)
Daxxi3 Feb 16, 2024
3eccc61
Thindow glass dupe fix (#25304)
MACMAN2003 Feb 16, 2024
87728a6
Automatic changelog update
PJBot Feb 16, 2024
5273ce7
Kill Seperated Mindshield Icons (#25303)
Golinth Feb 16, 2024
379be3a
Automatic changelog update
PJBot Feb 16, 2024
c675652
MORE SUFFIXES (#25314)
IamVelcroboy Feb 16, 2024
dd92fe8
Fix spawning glass shard for each glass sheet in stack (#25308)
Lukasz825700516 Feb 16, 2024
faf26c5
Automatic changelog update
PJBot Feb 16, 2024
5060e06
Adds atmospherics access to the fire fighting door remote. Feels like…
Plykiya Feb 16, 2024
02fd28b
Automatic changelog update
PJBot Feb 16, 2024
0d85583
Re-organise main menu screen (#25173)
metalgearsloth Feb 16, 2024
3889a3a
Fix changelog
DebugOk Feb 18, 2024
c459072
Allow t-ray to penetrate carpets and puddles (#25276)
themias Feb 16, 2024
0af6ccb
Automatic changelog update
PJBot Feb 16, 2024
b1e1ec6
Add sfx for writing on paper (#25257)
Krunklehorn Feb 16, 2024
0d89493
Automatic changelog update
PJBot Feb 16, 2024
f4e2bef
New sprites for guidebooks (#25232)
PotentiallyTom Feb 16, 2024
d4a889d
Automatic changelog update
PJBot Feb 16, 2024
cb0fdb4
LockVisualizer (#25224)
MilenVolf Feb 16, 2024
589c55a
Solution precision fixes (#25199)
PJB3005 Feb 16, 2024
97b113c
Automatic changelog update
PJBot Feb 16, 2024
93503d9
WebP lobby images (#25184)
DebugOk Feb 18, 2024
2dc1db3
Automatic changelog update
PJBot Feb 17, 2024
e7d8f5e
Diona Nymphs & Splitting (#24630)
LankLTE Feb 17, 2024
7de81e7
Automatic changelog update
PJBot Feb 17, 2024
8515da4
reform cooldown 10 minutes (#25328)
LankLTE Feb 17, 2024
e44942d
Change plant clipping mechanics (#25326)
PolterTzi Feb 17, 2024
df73df4
Automatic changelog update
PJBot Feb 17, 2024
c9a6019
Fix nymphs being deleted immediatly after spawning (#25344)
Arendian Feb 17, 2024
33b647a
Automatic changelog update
PJBot Feb 17, 2024
afcae40
Fix: Grenades don't make trigger sound (#25321)
Plykiya Feb 17, 2024
194c9d7
fixed the specific if statement called when plant age is under 0 (#25…
PolterTzi Feb 17, 2024
df79ac4
Save round information into replay_final.yml (#23013)
VasilisThePikachu Feb 17, 2024
5b158b8
Adds a massban flag to the admin flags (#25327)
Geekyhobo Feb 17, 2024
712435b
Automatic changelog update
PJBot Feb 17, 2024
25bc39b
Fix missing line in nuke exploding sprite (#25351)
PJB3005 Feb 17, 2024
308675a
Added Evidence Markers for the Detective! (#25255)
Moomoobeef Feb 17, 2024
8449116
Add "tailed" hair (#25216)
UbaserB Feb 17, 2024
a3f01a1
Clean up scars.yml and add a new chest scar (#25215)
UbaserB Feb 17, 2024
df2fd41
Automatic changelog update
PJBot Feb 17, 2024
5da6086
Add new "OptionsVisualizer" (#25128)
PJB3005 Feb 17, 2024
e7a5ca8
Suffix spelling mistake on seed vendor (#25352)
Peptide90 Feb 17, 2024
094a94d
Update engine to v210.1.1 (#25354)
PJB3005 Feb 17, 2024
783284a
Stop wagging tails on crit (#25323)
ArchPigeon Feb 17, 2024
4c09d15
Automatic changelog update
PJBot Feb 17, 2024
2cc5b2b
EVA suit helmets now have (un)equip sounds (#25349)
Killerqu00 Feb 17, 2024
16a2283
Automatic changelog update
PJBot Feb 17, 2024
5eac70c
Newton Cradle Fix + Addition to Bureaucracy Crate (#25357)
musicmanvr Feb 17, 2024
9980b27
Automatic changelog update
PJBot Feb 17, 2024
074fea2
Shadow anomaly respects "reduced motion" (#25355)
PJB3005 Feb 18, 2024
3c1cad5
Fixed directional window durability (#25259)
VigersRay Feb 18, 2024
61083c2
Very little cleanup (#25364)
lzk228 Feb 18, 2024
89383ab
Fix felinid sprite shit
DebugOk Feb 18, 2024
438c71c
Merge branch 'master' into Wizmerge-18/02
DebugOk Feb 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions Content.Benchmarks/ColorInterpolateBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public static Color InterpolateSysVector4(Color a, Color b,
public static Color InterpolateSysVector4In(in Color endPoint1, in Color endPoint2,
float lambda)
{
ref var sva = ref Unsafe.As<Color, SysVector4>(ref Unsafe.AsRef(endPoint1));
ref var svb = ref Unsafe.As<Color, SysVector4>(ref Unsafe.AsRef(endPoint2));
ref var sva = ref Unsafe.As<Color, SysVector4>(ref Unsafe.AsRef(in endPoint1));
ref var svb = ref Unsafe.As<Color, SysVector4>(ref Unsafe.AsRef(in endPoint2));

var res = SysVector4.Lerp(svb, sva, lambda);

Expand All @@ -156,8 +156,8 @@ public static Color InterpolateSimd(Color a, Color b,
public static Color InterpolateSimdIn(in Color a, in Color b,
float lambda)
{
var vecA = Unsafe.As<Color, Vector128<float>>(ref Unsafe.AsRef(a));
var vecB = Unsafe.As<Color, Vector128<float>>(ref Unsafe.AsRef(b));
var vecA = Unsafe.As<Color, Vector128<float>>(ref Unsafe.AsRef(in a));
var vecB = Unsafe.As<Color, Vector128<float>>(ref Unsafe.AsRef(in b));

vecB = Fma.MultiplyAdd(Sse.Subtract(vecB, vecA), Vector128.Create(lambda), vecA);

Expand Down
2 changes: 1 addition & 1 deletion Content.Benchmarks/DeviceNetworkingBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using Content.IntegrationTests;
using Content.IntegrationTests.Pair;
using Content.IntegrationTests.Tests.DeviceNetwork;
using Content.Server.DeviceNetwork;
using Content.Server.DeviceNetwork.Systems;
using Content.Shared.DeviceNetwork;
using Robust.Shared;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
Expand Down
5 changes: 0 additions & 5 deletions Content.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ internal static class Program

public static void Main(string[] args)
{
MainAsync(args).GetAwaiter().GetResult();
}

public static async Task MainAsync(string[] args)
{
#if DEBUG
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\nWARNING: YOU ARE RUNNING A DEBUG BUILD, USE A RELEASE BUILD FOR AN ACCURATE BENCHMARK");
Expand Down
18 changes: 9 additions & 9 deletions Content.Client/Actions/ActionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void BaseHandleState<T>(EntityUid uid, BaseActionComponent component, Ba
component.ItemIconStyle = state.ItemIconStyle;
component.Sound = state.Sound;

if (_playerManager.LocalPlayer?.ControlledEntity == component.AttachedEntity)
if (_playerManager.LocalEntity == component.AttachedEntity)
ActionsUpdated?.Invoke();
}

Expand All @@ -111,7 +111,7 @@ protected override void UpdateAction(EntityUid? actionId, BaseActionComponent? a
return;

base.UpdateAction(actionId, action);
if (_playerManager.LocalPlayer?.ControlledEntity != action.AttachedEntity)
if (_playerManager.LocalEntity != action.AttachedEntity)
return;

ActionsUpdated?.Invoke();
Expand Down Expand Up @@ -144,7 +144,7 @@ private void HandleComponentState(EntityUid uid, ActionsComponent component, ref
_added.Add((actionId, action));
}

if (_playerManager.LocalPlayer?.ControlledEntity != uid)
if (_playerManager.LocalEntity != uid)
return;

foreach (var action in _removed)
Expand Down Expand Up @@ -177,23 +177,23 @@ public static int ActionComparer((EntityUid, BaseActionComponent?) a, (EntityUid
protected override void ActionAdded(EntityUid performer, EntityUid actionId, ActionsComponent comp,
BaseActionComponent action)
{
if (_playerManager.LocalPlayer?.ControlledEntity != performer)
if (_playerManager.LocalEntity != performer)
return;

OnActionAdded?.Invoke(actionId);
}

protected override void ActionRemoved(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action)
{
if (_playerManager.LocalPlayer?.ControlledEntity != performer)
if (_playerManager.LocalEntity != performer)
return;

OnActionRemoved?.Invoke(actionId);
}

public IEnumerable<(EntityUid Id, BaseActionComponent Comp)> GetClientActions()
{
if (_playerManager.LocalPlayer?.ControlledEntity is not { } user)
if (_playerManager.LocalEntity is not { } user)
return Enumerable.Empty<(EntityUid, BaseActionComponent)>();

return GetActions(user);
Expand All @@ -216,7 +216,7 @@ public void UnlinkAllActions()

public void LinkAllActions(ActionsComponent? actions = null)
{
if (_playerManager.LocalPlayer?.ControlledEntity is not { } user ||
if (_playerManager.LocalEntity is not { } user ||
!Resolve(user, ref actions, false))
{
return;
Expand All @@ -233,7 +233,7 @@ public override void Shutdown()

public void TriggerAction(EntityUid actionId, BaseActionComponent action)
{
if (_playerManager.LocalPlayer?.ControlledEntity is not { } user ||
if (_playerManager.LocalEntity is not { } user ||
!TryComp(user, out ActionsComponent? actions))
{
return;
Expand Down Expand Up @@ -261,7 +261,7 @@ public void TriggerAction(EntityUid actionId, BaseActionComponent action)
/// </summary>
public void LoadActionAssignments(string path, bool userData)
{
if (_playerManager.LocalPlayer?.ControlledEntity is not { } user)
if (_playerManager.LocalEntity is not { } user)
return;

var file = new ResPath(path).ToRootedPath();
Expand Down
17 changes: 9 additions & 8 deletions Content.Client/Administration/Managers/ClientAdminManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ public sealed class ClientAdminManager : IClientAdminManager, IClientConGroupImp
[Dependency] private readonly IClientNetManager _netMgr = default!;
[Dependency] private readonly IClientConGroupController _conGroup = default!;
[Dependency] private readonly IResourceManager _res = default!;
[Dependency] private readonly ILogManager _logManager = default!;

private AdminData? _adminData;
private readonly HashSet<string> _availableCommands = new();

private readonly AdminCommandPermissions _localCommandPermissions = new();
private ISawmill _sawmill = default!;

public event Action? AdminStatusUpdated;

Expand Down Expand Up @@ -92,17 +94,17 @@ private void UpdateMessageRx(MsgUpdateAdminStatus message)
}

_availableCommands.UnionWith(message.AvailableCommands);
Logger.DebugS("admin", $"Have {message.AvailableCommands.Length} commands available");
_sawmill.Debug($"Have {message.AvailableCommands.Length} commands available");

_adminData = message.Admin;
if (_adminData != null)
{
var flagsText = string.Join("|", AdminFlagsHelper.FlagsToNames(_adminData.Flags));
Logger.InfoS("admin", $"Updated admin status: {_adminData.Active}/{_adminData.Title}/{flagsText}");
_sawmill.Info($"Updated admin status: {_adminData.Active}/{_adminData.Title}/{flagsText}");
}
else
{
Logger.InfoS("admin", "Updated admin status: Not admin");
_sawmill.Info("Updated admin status: Not admin");
}

AdminStatusUpdated?.Invoke();
Expand All @@ -114,26 +116,25 @@ private void UpdateMessageRx(MsgUpdateAdminStatus message)
void IPostInjectInit.PostInject()
{
_conGroup.Implementation = this;
_sawmill = _logManager.GetSawmill("admin");
}

public AdminData? GetAdminData(EntityUid uid, bool includeDeAdmin = false)
{
return uid == _player.LocalPlayer?.ControlledEntity
? _adminData
: null;
return uid == _player.LocalEntity ? _adminData : null;
}

public AdminData? GetAdminData(ICommonSession session, bool includeDeAdmin = false)
{
if (_player.LocalPlayer?.UserId == session.UserId)
if (_player.LocalUser == session.UserId)
return _adminData;

return null;
}

public AdminData? GetAdminData(bool includeDeAdmin = false)
{
if (_player.LocalPlayer is { Session: { } session })
if (_player.LocalSession is { } session)
return GetAdminData(session, includeDeAdmin);

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void SetLocation()
{
UpdateMapOptions();

if (!_entMan.TryGetComponent(_playerManager.LocalPlayer?.ControlledEntity, out TransformComponent? transform))
if (!_entMan.TryGetComponent(_playerManager.LocalEntity, out TransformComponent? transform))
return;

_pausePreview = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private void Reset()
var entManager = IoCManager.Resolve<IEntityManager>();
var xformSystem = entManager.System<SharedTransformSystem>();
var playerManager = IoCManager.Resolve<IPlayerManager>();
var player = playerManager.LocalPlayer?.ControlledEntity;
var player = playerManager.LocalEntity;

var currentMap = MapId.Nullspace;
var position = Vector2.Zero;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected override void EnteredTree()
{
_data.Clear();

var player = _players.LocalPlayer?.ControlledEntity;
var player = _players.LocalEntity;
var playerGrid = _entities.GetComponentOrNull<TransformComponent>(player)?.GridUid;
var query = IoCManager.Resolve<IEntityManager>().AllEntityQueryEnumerator<MapGridComponent>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void EnteredTree()
while (gridQuery.MoveNext(out var uid, out _))
{
_gridData.Add(entManager.GetNetEntity(uid));
var player = playerManager.LocalPlayer?.ControlledEntity;
var player = playerManager.LocalEntity;
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override void EnteredTree()

while (gridQuery.MoveNext(out var uid, out _))
{
var player = playerManager.LocalPlayer?.ControlledEntity;
var player = playerManager.LocalEntity;
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
_gridData.Add(entManager.GetNetEntity(uid));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected override void EnteredTree()

while (gridQuery.MoveNext(out var uid, out _))
{
var player = playerManager.LocalPlayer?.ControlledEntity;
var player = playerManager.LocalEntity;
var playerGrid = entManager.GetComponentOrNull<TransformComponent>(player)?.GridUid;
GridOptions.AddItem($"{uid} {(playerGrid == uid ? " (Current)" : "")}");
_data.Add(entManager.GetNetEntity(uid));
Expand Down
12 changes: 6 additions & 6 deletions Content.Client/Alerts/ClientAlertsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public IReadOnlyDictionary<AlertKey, AlertState>? ActiveAlerts
{
get
{
var ent = _playerManager.LocalPlayer?.ControlledEntity;
var ent = _playerManager.LocalEntity;
return ent is not null
? GetActiveAlerts(ent.Value)
: null;
Expand All @@ -49,29 +49,29 @@ public IReadOnlyDictionary<AlertKey, AlertState>? ActiveAlerts

protected override void AfterShowAlert(Entity<AlertsComponent> alerts)
{
if (_playerManager.LocalPlayer?.ControlledEntity != alerts.Owner)
if (_playerManager.LocalEntity != alerts.Owner)
return;

SyncAlerts?.Invoke(this, alerts.Comp.Alerts);
}

protected override void AfterClearAlert(Entity<AlertsComponent> alertsComponent)
{
if (_playerManager.LocalPlayer?.ControlledEntity != alertsComponent.Owner)
if (_playerManager.LocalEntity != alertsComponent.Owner)
return;

SyncAlerts?.Invoke(this, alertsComponent.Comp.Alerts);
}

private void ClientAlertsHandleState(EntityUid uid, AlertsComponent component, ref AfterAutoHandleStateEvent args)
{
if (_playerManager.LocalPlayer?.ControlledEntity == uid)
if (_playerManager.LocalEntity == uid)
SyncAlerts?.Invoke(this, component.Alerts);
}

private void OnPlayerAttached(EntityUid uid, AlertsComponent component, LocalPlayerAttachedEvent args)
{
if (_playerManager.LocalPlayer?.ControlledEntity != uid)
if (_playerManager.LocalEntity != uid)
return;

SyncAlerts?.Invoke(this, component.Alerts);
Expand All @@ -81,7 +81,7 @@ protected override void HandleComponentShutdown(EntityUid uid, AlertsComponent c
{
base.HandleComponentShutdown(uid, component, args);

if (_playerManager.LocalPlayer?.ControlledEntity != uid)
if (_playerManager.LocalEntity != uid)
return;

ClearAlerts?.Invoke(this, EventArgs.Empty);
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Animations/EntityPickupAnimationSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void AnimateEntityPickup(EntityUid uid, EntityCoordinates initial, Vector
despawn.Lifetime = 0.25f;
_transform.SetLocalRotationNoLerp(animatableClone, initialAngle);

_animations.Play(animatableClone, animations, new Animation
_animations.Play(new Entity<AnimationPlayerComponent>(animatableClone, animations), new Animation
{
Length = TimeSpan.FromMilliseconds(125),
AnimationTracks =
Expand Down
1 change: 0 additions & 1 deletion Content.Client/Anomaly/Ui/AnomalyGeneratorWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace Content.Client.Anomaly.Ui;
[GenerateTypedNameReferences]
public sealed partial class AnomalyGeneratorWindow : FancyWindow
{
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IGameTiming _timing = default!;

private TimeSpan _cooldownEnd = TimeSpan.Zero;
Expand Down
1 change: 0 additions & 1 deletion Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public sealed partial class AirAlarmWindow : FancyWindow
public event Action<string, AtmosMonitorThresholdType, AtmosAlarmThreshold, Gas?>? AtmosAlarmThresholdChanged;
public event Action<AirAlarmMode>? AirAlarmModeChanged;
public event Action<bool>? AutoModeChanged;
public event Action<string>? ResyncDeviceRequested;
public event Action? ResyncAllRequested;
public event Action<AirAlarmTab>? AirAlarmTabChange;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
HorizontalExpand="True" Orientation="Vertical"
Margin = "20 0 0 0" MinSize="160 0" >
<Label Name="CBoundLabel" HorizontalAlignment="Center" />
<CheckBox Name="CBoundEnabled" HorizontalAlignment="Center" Text="{Loc 'Enable'}"/>
<CheckBox Name="CBoundEnabled" HorizontalAlignment="Center" Text="{Loc 'Enable'}" Pressed="True" />
<FloatSpinBox Name="CSpinner" />
</BoxContainer>
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public ThresholdBoundControl(string controlLabel, float value, float uiValueScal
CBoundLabel.Text = controlLabel;

CSpinner.Value = ScaledValue;
CBoundEnabled.Pressed = _value != null;

CSpinner.OnValueChanged += SpinnerValueChanged;
CBoundEnabled.OnToggled += CheckboxToggled;
Expand Down
13 changes: 4 additions & 9 deletions Content.Client/Audio/AmbientSoundSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public override void Initialize()
UpdatesOutsidePrediction = true;
UpdatesAfter.Add(typeof(AmbientSoundTreeSystem));

_cfg.OnValueChanged(CCVars.AmbientCooldown, SetCooldown, true);
_cfg.OnValueChanged(CCVars.MaxAmbientSources, SetAmbientCount, true);
_cfg.OnValueChanged(CCVars.AmbientRange, SetAmbientRange, true);
_cfg.OnValueChanged(CCVars.AmbienceVolume, SetAmbienceGain, true);
Subs.CVar(_cfg, CCVars.AmbientCooldown, SetCooldown, true);
Subs.CVar(_cfg, CCVars.MaxAmbientSources, SetAmbientCount, true);
Subs.CVar(_cfg, CCVars.AmbientRange, SetAmbientRange, true);
Subs.CVar(_cfg, CCVars.AmbienceVolume, SetAmbienceGain, true);
SubscribeLocalEvent<AmbientSoundComponent, ComponentShutdown>(OnShutdown);
}

Expand Down Expand Up @@ -138,11 +138,6 @@ public override void Shutdown()
{
base.Shutdown();
ClearSounds();

_cfg.UnsubValueChanged(CCVars.AmbientCooldown, SetCooldown);
_cfg.UnsubValueChanged(CCVars.MaxAmbientSources, SetAmbientCount);
_cfg.UnsubValueChanged(CCVars.AmbientRange, SetAmbientRange);
_cfg.UnsubValueChanged(CCVars.AmbienceVolume, SetAmbienceGain);
}

private int PlayingCount(string countSound)
Expand Down
7 changes: 2 additions & 5 deletions Content.Client/Audio/BackgroundAudioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public override void Initialize()
{
base.Initialize();

_configManager.OnValueChanged(CCVars.LobbyMusicEnabled, LobbyMusicCVarChanged);
_configManager.OnValueChanged(CCVars.LobbyMusicVolume, LobbyMusicVolumeCVarChanged);
Subs.CVar(_configManager, CCVars.LobbyMusicEnabled, LobbyMusicCVarChanged);
Subs.CVar(_configManager, CCVars.LobbyMusicVolume, LobbyMusicVolumeCVarChanged);

_stateManager.OnStateChanged += StateManagerOnStateChanged;

Expand All @@ -50,9 +50,6 @@ public override void Shutdown()
{
base.Shutdown();

_configManager.UnsubValueChanged(CCVars.LobbyMusicEnabled, LobbyMusicCVarChanged);
_configManager.UnsubValueChanged(CCVars.LobbyMusicVolume, LobbyMusicVolumeCVarChanged);

_stateManager.OnStateChanged -= StateManagerOnStateChanged;

_client.PlayerLeaveServer -= OnLeave;
Expand Down
4 changes: 2 additions & 2 deletions Content.Client/Audio/ClientGlobalSoundSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public override void Initialize()
base.Initialize();
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundRestart);
SubscribeNetworkEvent<AdminSoundEvent>(PlayAdminSound);
_cfg.OnValueChanged(CCVars.AdminSoundsEnabled, ToggleAdminSound, true);
Subs.CVar(_cfg, CCVars.AdminSoundsEnabled, ToggleAdminSound, true);

SubscribeNetworkEvent<StationEventMusicEvent>(PlayStationEventMusic);
SubscribeNetworkEvent<StopStationEventMusic>(StopStationEventMusic);
_cfg.OnValueChanged(CCVars.EventMusicEnabled, ToggleStationEventMusic, true);
Subs.CVar(_cfg, CCVars.EventMusicEnabled, ToggleStationEventMusic, true);

SubscribeNetworkEvent<GameGlobalSoundEvent>(PlayGameSound);
}
Expand Down
Loading
Loading