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

Atualiza o tucano #12

Merged
merged 212 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
4a0134e
predict egg cracking + refactor (#25028)
deltanedas Feb 8, 2024
c79fc31
Paper is now bad food (#25065)
Tunguso4ka Feb 8, 2024
9efea36
allow building atmos devices on lattice or thindow tiles (#25057)
Ilya246 Feb 8, 2024
cfcaa2c
Remove tail wag emote text (#25054)
Krunklehorn Feb 8, 2024
1727f54
Automatic changelog update
PJBot Feb 8, 2024
597e5f0
Small t-ray scanner resprite (#25047)
UbaserB Feb 8, 2024
0ec997d
Automatic changelog update
PJBot Feb 8, 2024
477df27
Fix brig timer labels to displaying correctly. (#25033)
nikthechampiongr Feb 8, 2024
7a5836c
fix follow comannd help locale (#25032)
crazybrain23 Feb 8, 2024
0d164f2
Automatic changelog update
PJBot Feb 8, 2024
a21bb2b
Fixes indestructible mop buckets (#25001)
vero5123 Feb 8, 2024
6469f9c
Automatic changelog update
PJBot Feb 8, 2024
cbd2274
Straw hat. (#24997)
Adrian16199 Feb 8, 2024
7b6107d
Automatic changelog update
PJBot Feb 8, 2024
8b5eef4
Alphabetically sorted guidebook entries (#24963)
Sk1tch Feb 8, 2024
a9f29a3
Automatic changelog update
PJBot Feb 8, 2024
9bb4ac4
atlas update (#25071)
deltanedas Feb 9, 2024
2bfb066
box update (#25074)
Emisse Feb 9, 2024
717a89d
fland update (#25075)
Emisse Feb 9, 2024
208aba5
marathon update (#25076)
Emisse Feb 9, 2024
828e6ae
meta update (#25077)
Emisse Feb 9, 2024
954ad28
Syndicate key grammar fix (#25085)
ARMOKS Feb 9, 2024
457c3a5
Fix hybridization seedless probability (#25084)
Partmedia Feb 10, 2024
229880f
Added Tourniquets to stop bleeds (#23198)
PoorMansDreams Feb 10, 2024
45a5d36
Update Skelly Vs The Rev lobby art (#25088)
FairlySadPanda Feb 10, 2024
8189d03
Automatic changelog update
PJBot Feb 10, 2024
47179bb
Minor airlock assembly clean up (#25073)
lapatison Feb 10, 2024
507afca
Update README.md (#25067)
BasedUser Feb 10, 2024
df35d29
prevent opening debug menus without perms (#25091)
EmoGarbage404 Feb 10, 2024
59d4e10
Remove battery from crew observation kit, fix description (#25000)
Varen Feb 10, 2024
06c2d3a
Laughin' Peas (#25089)
potato1234x Feb 10, 2024
2830c47
Automatic changelog update
PJBot Feb 10, 2024
3edb57f
QM drip DLC (#24477)
Hanzdegloker Feb 10, 2024
8185d3e
EMT Belt Part 2 (#24289)
UbaserB Feb 10, 2024
e1dc3d4
Flipped caps real (#24961)
themias Feb 10, 2024
da8f6ed
Automatic changelog update
PJBot Feb 10, 2024
46e4644
Nerf Beanbags (#24653)
Blackern5000 Feb 10, 2024
b3a328c
Automatic changelog update
PJBot Feb 10, 2024
57be95e
Fix screenspace popups (#24987)
metalgearsloth Feb 10, 2024
d21bb5b
Automatic changelog update
PJBot Feb 10, 2024
ceaae9f
Fix crew manifest department bugs (#24975)
themias Feb 10, 2024
e540500
Automatic changelog update
PJBot Feb 10, 2024
15808f3
Changed door remote to trigger based on vision occlusion(#25093)
Plykiya Feb 10, 2024
20fe45b
GPS In Paramed Locker (#25096)
PoorMansDreams Feb 10, 2024
0b33027
Remove 'travis scott day' from the game (#25106)
bhenrich Feb 10, 2024
250134f
Automatic changelog update
PJBot Feb 10, 2024
5742f4e
Remove erroneous changelog (#25107)
mirrorcult Feb 10, 2024
89c7ceb
fixed fland cargo shuttle not having tiny fans (sorry) (#25095)
Mangohydra Feb 10, 2024
726aca5
Glass box for antique laser pistol (#25104)
Nimfar11 Feb 10, 2024
be5a2ed
Gibbing refactor (Per-part gibbing and giblet throwing!) (#24989)
Jezithyr Feb 10, 2024
2b9b6b9
Automatic changelog update
PJBot Feb 10, 2024
74b27d8
Gibbing contents hotfix (#25114)
Jezithyr Feb 11, 2024
b9f702f
Predict two-way levers (#25043)
metalgearsloth Feb 11, 2024
3c235eb
Replace Romerol with Ambuzol in chemist guidebook (#25108)
FluffiestFloof Feb 11, 2024
cb85630
Fix borgs being able to emag themselves (#24748)
Zap527 Feb 11, 2024
88bc460
Ectoplasm is grindable into Necrosol (#25053)
UbaserB Feb 11, 2024
e2c561e
Automatic changelog update
PJBot Feb 11, 2024
1024f11
Automatic changelog update
PJBot Feb 11, 2024
5628f0c
Roundstart Food Service research (#25046)
UbaserB Feb 11, 2024
d240618
Automatic changelog update
PJBot Feb 11, 2024
3679431
Add option for character name colors in chat & move coloration to cli…
SlamBamActionman Feb 11, 2024
b4e57cd
Automatic changelog update
PJBot Feb 11, 2024
34e6c26
Update Credits (#25115)
github-actions[bot] Feb 11, 2024
725f088
Replace fixed drink glasses with metamorphic versions (#25134)
Tayrtahn Feb 11, 2024
71974b6
ambuzol beef (#25119)
Emisse Feb 11, 2024
ba4cc2d
Automatic changelog update
PJBot Feb 11, 2024
7e80e20
Shuttle floor resprite (#25127)
Flareguy Feb 11, 2024
7b35cf9
Adding a period to an object description (#25138)
forgotmyotheraccount Feb 11, 2024
dac2ac1
Door Remote Changelog Entry (#25144)
Plykiya Feb 12, 2024
65719b7
Automatic changelog update
PJBot Feb 12, 2024
e7b6a02
Lowered Ion Storm Reoccurence Delay to 20 (#25135)
FungiFellow Feb 12, 2024
933a569
Re-added shivs to crafting menus (#25094)
SlamBamActionman Feb 12, 2024
620226d
Automatic changelog update
PJBot Feb 12, 2024
83170ad
Color Tipped Ammo (#25103)
PoorMansDreams Feb 12, 2024
bc66ad3
Automatic changelog update
PJBot Feb 12, 2024
51a9742
Add overlay decals for mini tiles and bricks (#24949)
Ko4ergaPunk Feb 12, 2024
277fa2b
Update Core (#24862)
UbaserB Feb 12, 2024
08ca1ea
Buyable Jani Trolley (#25139)
PoorMansDreams Feb 12, 2024
0ccdc1a
Added display for amount of hits left in stun batons/stun prods. (#25…
Plykiya Feb 12, 2024
77e7d37
Automatic changelog update
PJBot Feb 12, 2024
bda9947
autolatheable air tanks (#25130)
Ilya246 Feb 12, 2024
5a016d7
Automatic changelog update
PJBot Feb 12, 2024
02ed8d8
Fix pointing arrow trajectory (#25061)
Krunklehorn Feb 12, 2024
0004538
make linking logic gates 1000% better (#25041)
deltanedas Feb 12, 2024
73f1571
Buff emergency toolbox fill (#24225)
UbaserB Feb 12, 2024
548481a
Void jetpack resprite (#25150)
UbaserB Feb 12, 2024
cdaf8ac
Automatic changelog update
PJBot Feb 12, 2024
ba62987
Allow configuring gen_build_info.py through environment variables (#2…
deepy Feb 12, 2024
0815586
Significantly nerf Deathnettles (#25068)
UltimateJester Feb 13, 2024
f5912db
Automatic changelog update
PJBot Feb 13, 2024
63b773a
Fix spelling errors in mechs.yml (#25168)
deepdarkdepths Feb 13, 2024
0dbdfa0
fix showhealthbars perms (#25157)
Genkail Feb 13, 2024
ffdafda
Allow inspecting ID's and Health of people behind glass (#25163)
VasilisThePikachu Feb 13, 2024
48c7ff9
Automatic changelog update
PJBot Feb 13, 2024
f15a0f1
Fix decal error spam (#25172)
metalgearsloth Feb 13, 2024
fbda4e1
Restore MonoOverlay (#25170)
metalgearsloth Feb 13, 2024
1bee48f
Automatic changelog update
PJBot Feb 13, 2024
abf045c
Added "wink" and "tearfully smiles" emotes + more cry emote variation…
jamessimo Feb 13, 2024
f0aa660
Automatic changelog update
PJBot Feb 13, 2024
8271286
Update submodule to 210.0.0 (#25175)
metalgearsloth Feb 13, 2024
c77ad7c
The medical beret is real (#25176)
icekot8 Feb 13, 2024
3a2897d
Automatic changelog update
PJBot Feb 13, 2024
f20f950
Fixed Tipped ammo not being Spent (#25167)
PoorMansDreams Feb 13, 2024
64c1747
Automatic changelog update
PJBot Feb 13, 2024
68526d7
Hoods and some chaplain's hats now hides hair (#25142)
Agoichi Feb 13, 2024
e024562
Glassbox shatter resprite (#25136)
xKREKSx Feb 13, 2024
0b64a41
Automatic changelog update
PJBot Feb 13, 2024
724f4cb
Random spontaneous cleanup PR (#25131)
PJB3005 Feb 13, 2024
f1eda84
Decrease the chemical cost of regen mesh and sutures and move them to…
Blackern5000 Feb 13, 2024
d909185
Split slime marking leg gradient (#24928)
lzk228 Feb 13, 2024
9306ad4
Automatic changelog update
PJBot Feb 13, 2024
d875a4f
Require plants to be harvestable before sampling (#24851)
Partmedia Feb 13, 2024
fdc3ef6
Add verbs to Open/Close Openable containers, and add optional seals (…
Tayrtahn Feb 13, 2024
2d9fb0e
Automatic changelog update
PJBot Feb 13, 2024
6c28cb7
Shadow anomaly returns (#24629)
TheShuEd Feb 13, 2024
b23c74a
Automatic changelog update
PJBot Feb 13, 2024
9a71d24
Microwave UX enhancements (#24547)
jamessimo Feb 13, 2024
a801649
Automatic changelog update
PJBot Feb 13, 2024
e1204eb
Additional damage visualisers (#24618)
UbaserB Feb 13, 2024
b23798b
Anomaly Synchronizer + Signallers tweaks (#24461)
TheShuEd Feb 13, 2024
d59515f
Automatic changelog update
PJBot Feb 13, 2024
daa9c27
saltern update (#25182)
deltanedas Feb 13, 2024
f3af0ae
Allow players to run saveconfig command. (#25200)
PJB3005 Feb 14, 2024
1cf9351
Revert "Allow configuring gen_build_info.py through environment varia…
PJB3005 Feb 14, 2024
a479f36
Fax machines can print from text file (#23262)
joshepvodka Feb 14, 2024
813bbaa
Automatic changelog update
PJBot Feb 14, 2024
3bb5ee6
Vox names, species prototype cleanup, some cosmetic changes (#24994)
Errant-4 Feb 14, 2024
b3962c2
Balanced ChemVend Stock (#25207)
wafehling Feb 14, 2024
1d8cd87
Ranged Holosigns (#25120)
Plykiya Feb 14, 2024
4ae997f
Automatic changelog update
PJBot Feb 14, 2024
0f83021
Minor test fixes (#25174)
metalgearsloth Feb 14, 2024
69910cc
Add pun to diagnostic hud description (#25209)
Interrobang01 Feb 14, 2024
84ea0e7
Add events for TemperatureProtection and PressureProtection (#25165)
EmoGarbage404 Feb 14, 2024
e586f1f
Update criminal-records.ftl (#25229)
k3yw Feb 14, 2024
96de368
Adds always powered variants of colored lights (#25185)
IamVelcroboy Feb 14, 2024
07b00e4
Fixes silver bars being whole stacks (#25239)
IamVelcroboy Feb 14, 2024
16f6a01
Makes clumsy not delete guns (#25243)
jessicamaybe Feb 14, 2024
06d9fa8
Predict Injector (syringes), cleanup (#25235)
PJB3005 Feb 14, 2024
5d2ccda
Updated disabler to have suitStorage tag under slots. (#25238)
Zadeon Feb 14, 2024
07f8a81
Automatic changelog update
PJBot Feb 14, 2024
edbef61
Updates to Origin (#24908)
Krunklehorn Feb 14, 2024
5594c80
Fix spawn priority persistence on reconnect and restart (#25246)
Krunklehorn Feb 15, 2024
1a7f9dd
Add French accent beret (#21430)
brainfood1183 Feb 15, 2024
6132c1b
Allow thermomachines to exchange with air instead of inlet (#25247)
Menshin Feb 15, 2024
a3fd914
Fix: Holosigns can be stored again (#25249)
Plykiya Feb 15, 2024
4a721dc
Death acidifier fix (#25251)
Jezithyr Feb 15, 2024
d9b6a48
Automatic changelog update
PJBot Feb 15, 2024
1d0cc18
Clarify stripping logs (#25190)
nikthechampiongr Feb 15, 2024
6ccf39f
Fix disposals bins not automatically flushing after an object is inse…
PJB3005 Feb 15, 2024
cae5386
Sec & greysec jumpskirt fix (#25269)
Flareguy Feb 15, 2024
c1f19a1
Automatic changelog update
PJBot Feb 15, 2024
02bcdde
Reduce eshield hp (#25258)
liltenhead Feb 15, 2024
df90412
Automatic changelog update
PJBot Feb 15, 2024
d72e8e4
Artifact hemoglobin trigger now accepts all sentient blood types (#25…
wafehling Feb 15, 2024
5011cc5
Update engine to v210.1.0 (#25288)
ElectroJr Feb 15, 2024
8b75141
Made ghost.role_time a server modifiable only cvar (#25292)
VasilisThePikachu Feb 15, 2024
78c1468
Nuke fancification (#25297)
PJB3005 Feb 16, 2024
c25dce6
Automatic changelog update
PJBot Feb 16, 2024
f866775
Change copper blood from ferrous to metallic (#25217)
Daxxi3 Feb 16, 2024
a0e8de8
Thindow glass dupe fix (#25304)
MACMAN2003 Feb 16, 2024
9a433ed
Automatic changelog update
PJBot Feb 16, 2024
d706f10
Kill Seperated Mindshield Icons (#25303)
Golinth Feb 16, 2024
aa5acb5
Automatic changelog update
PJBot Feb 16, 2024
29514e6
MORE SUFFIXES (#25314)
IamVelcroboy Feb 16, 2024
8e3a78d
Fix spawning glass shard for each glass sheet in stack (#25308)
Lukasz825700516 Feb 16, 2024
0c4ef5a
Automatic changelog update
PJBot Feb 16, 2024
1d9f07f
Adds atmospherics access to the fire fighting door remote. Feels like…
Plykiya Feb 16, 2024
a913a81
Automatic changelog update
PJBot Feb 16, 2024
581e888
Re-organise main menu screen (#25173)
metalgearsloth Feb 16, 2024
57cb117
Allow t-ray to penetrate carpets and puddles (#25276)
themias Feb 16, 2024
df8d6d9
Automatic changelog update
PJBot Feb 16, 2024
814ca1e
Add sfx for writing on paper (#25257)
Krunklehorn Feb 16, 2024
7b2caee
Automatic changelog update
PJBot Feb 16, 2024
29419b4
New sprites for guidebooks (#25232)
PotentiallyTom Feb 16, 2024
b9d3520
Automatic changelog update
PJBot Feb 16, 2024
45858af
LockVisualizer (#25224)
MilenVolf Feb 16, 2024
e4bb514
Solution precision fixes (#25199)
PJB3005 Feb 16, 2024
639ef0c
Automatic changelog update
PJBot Feb 16, 2024
d014552
WebP lobby images (#25184)
PJB3005 Feb 16, 2024
9fe71d0
New lobby art : Blueprint (#25179)
UbaserB Feb 17, 2024
0cbacab
Automatic changelog update
PJBot Feb 17, 2024
6ad1e12
Diona Nymphs & Splitting (#24630)
LankLTE Feb 17, 2024
ed3bb31
Automatic changelog update
PJBot Feb 17, 2024
6478a46
reform cooldown 10 minutes (#25328)
LankLTE Feb 17, 2024
845cff0
Change plant clipping mechanics (#25326)
PolterTzi Feb 17, 2024
a75e547
Automatic changelog update
PJBot Feb 17, 2024
8fb8284
Fix nymphs being deleted immediatly after spawning (#25344)
Arendian Feb 17, 2024
4ea051d
Automatic changelog update
PJBot Feb 17, 2024
4dc144a
Fix: Grenades don't make trigger sound (#25321)
Plykiya Feb 17, 2024
5e06b76
fixed the specific if statement called when plant age is under 0 (#25…
PolterTzi Feb 17, 2024
d5ed348
Save round information into replay_final.yml (#23013)
VasilisThePikachu Feb 17, 2024
355a33d
Adds a massban flag to the admin flags (#25327)
Geekyhobo Feb 17, 2024
ac33a60
Automatic changelog update
PJBot Feb 17, 2024
756132f
Fix missing line in nuke exploding sprite (#25351)
PJB3005 Feb 17, 2024
3dfd880
Added Evidence Markers for the Detective! (#25255)
Moomoobeef Feb 17, 2024
5fb2863
Add "tailed" hair (#25216)
UbaserB Feb 17, 2024
6cd368f
Clean up scars.yml and add a new chest scar (#25215)
UbaserB Feb 17, 2024
6b0b6d6
Automatic changelog update
PJBot Feb 17, 2024
f8e613f
Add new "OptionsVisualizer" (#25128)
PJB3005 Feb 17, 2024
72e9977
Suffix spelling mistake on seed vendor (#25352)
Peptide90 Feb 17, 2024
e269fb4
Update engine to v210.1.1 (#25354)
PJB3005 Feb 17, 2024
8235504
Stop wagging tails on crit (#25323)
ArchPigeon Feb 17, 2024
cd91282
Automatic changelog update
PJBot Feb 17, 2024
414faf0
EVA suit helmets now have (un)equip sounds (#25349)
Killerqu00 Feb 17, 2024
7283dc1
Automatic changelog update
PJBot Feb 17, 2024
ad97b19
Newton Cradle Fix + Addition to Bureaucracy Crate (#25357)
musicmanvr Feb 17, 2024
d6f7c2b
Automatic changelog update
PJBot Feb 17, 2024
84f352c
Shadow anomaly respects "reduced motion" (#25355)
PJB3005 Feb 18, 2024
a88b67d
Fixed directional window durability (#25259)
VigersRay Feb 18, 2024
4d16870
Very little cleanup (#25364)
lzk228 Feb 18, 2024
235c1cb
atualiza locale
joshepvodka Feb 18, 2024
2f6d0e0
arruma uns locales novos
joshepvodka 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