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

Upstream sync #543

Merged
merged 85 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
2e9c8f6
Fix guardian damage transfer (#26541)
arimah Mar 30, 2024
72c6a14
Automatic changelog update
PJBot Mar 30, 2024
3b79145
Refactor FTL time tracking code to fix a UI bug (#26538)
PJB3005 Mar 30, 2024
d215419
Revert "Fix scram implant's teleportation out of containers" (#25030)
metalgearsloth Mar 30, 2024
bb5ca72
Split GasTileOverlaySystem update over two ticks (#26542)
ElectroJr Mar 30, 2024
6ef592d
Industrial Reagent Grinder (#25020)
Boaz1111 Mar 30, 2024
ac12982
Automatic changelog update
PJBot Mar 30, 2024
52db14a
Zippable coats (#26494)
SonicHDC Mar 30, 2024
fc4389f
Fix itemslots swapping (#25634)
metalgearsloth Mar 30, 2024
3af54a2
Automatic changelog update
PJBot Mar 30, 2024
3975389
Stop items that are being pulled from spinning (#26504)
Zealith-Gamer Mar 30, 2024
3fc02ed
Automatic changelog update
PJBot Mar 30, 2024
f192d79
Hyposprays Draw from Jugs (#25544)
Plykiya Mar 30, 2024
431c3ad
Rebalance amatoxin so it is a slower killer (#25830)
UltimateJester Mar 30, 2024
2996257
Automatic changelog update
PJBot Mar 30, 2024
aa96bae
Automatic changelog update
PJBot Mar 30, 2024
888a3bd
Atmos device performance improvements (#26493)
ElectroJr Mar 30, 2024
9ddfe38
Adjust syndicate hardbomb damage (#26548)
liltenhead Mar 30, 2024
0f6c7c9
Automatic changelog update
PJBot Mar 30, 2024
97b390d
up stimulants (no sleep) (#25886)
takemysoult Mar 30, 2024
1e51feb
Automatic changelog update
PJBot Mar 30, 2024
1ffa5c2
Make BaseMedicalPDA abstract (#26567)
lzk228 Mar 30, 2024
7638252
Fix GasMixers/Filters not working (#26568)
Plykiya Mar 30, 2024
c9e1944
Industrial Reagent Grinder Hotfix (#26571)
Boaz1111 Mar 30, 2024
fde1dae
[MapUpdate] Avrite (#2006)
Syxapik Mar 30, 2024
b8363cd
Give stores the ability to check for owner only (#26573)
keronshb Mar 30, 2024
a23ff52
Fix round start crash (causing instant restart) (#26579)
wrexbe Mar 30, 2024
69cacf6
Update engine to v217.1.0 (#26588)
ElectroJr Mar 31, 2024
0edd0a7
Fix initial infected icon hiding (#26585)
wrexbe Mar 31, 2024
7130d1c
Fix Meta evac shuttle name (#26587)
wrexbe Mar 31, 2024
8676aad
Make timer ignore client predict setting (#26554)
wrexbe Mar 31, 2024
175f820
Make advertise system survive no map inits (#26553)
wrexbe Mar 31, 2024
602d30c
Update Credits (#26589)
github-actions[bot] Mar 31, 2024
e7af28d
Fix fox spawn on reach (#26584)
wrexbe Mar 31, 2024
1f3f1d7
Removes SCAF armor (#26566)
Flareguy Mar 31, 2024
7a4a0bc
Update Patrons.yml (#26578)
DrSmugleaf Mar 31, 2024
c1b5576
Automatic changelog update
PJBot Mar 31, 2024
87a56b2
Make aghost command work on other players using optional argument (#2…
Simyon264 Mar 31, 2024
ef8b16a
Automatic changelog update
PJBot Mar 31, 2024
daaa7c6
Add new component to Make sound on interact (#26523)
blueDev2 Mar 31, 2024
b38547d
Increase syndi duffelbag storage (#26565)
lzk228 Mar 31, 2024
9d1d5de
Automatic changelog update
PJBot Mar 31, 2024
48e5c3c
Adds construction/decon graphs for plastic flaps (#26341)
IamVelcroboy Mar 31, 2024
950a644
Automatic changelog update
PJBot Mar 31, 2024
a98d0cf
Makes secglasses roundstart (#26487)
Flareguy Mar 31, 2024
80c4d3e
Automatic changelog update
PJBot Mar 31, 2024
5f063d2
Toilet Upgrade (needs review) (#22133)
brainfood1183 Mar 31, 2024
ce71cde
Automatic changelog update
PJBot Mar 31, 2024
de62ec2
Uplink store interface searchable with a searchbar. (#24287)
DrMelon Mar 31, 2024
4d2aa1a
Automatic changelog update
PJBot Mar 31, 2024
02273ca
Improved RCDs (#22799)
chromiumboy Mar 31, 2024
93bda6f
Automatic changelog update
PJBot Mar 31, 2024
32bd663
Update submodule to 217.2.0 (#26592)
metalgearsloth Mar 31, 2024
6b7427e
Southern accent (#26543)
UBlueberry Mar 31, 2024
1b94e01
Prevent storing liquids in equipped buckets (#24412)
Tayrtahn Mar 31, 2024
1ad5091
Automatic changelog update
PJBot Mar 31, 2024
4e618e9
Fix 'Hypopen shouldn't display solution examine text' (#26453)
drteaspoon420 Mar 31, 2024
213c075
Automatic changelog update
PJBot Mar 31, 2024
c91ed96
Revert Paint (#26593)
metalgearsloth Mar 31, 2024
90a880a
Fix: Prevent single-use hyposprays from getting the toggle draw verb …
Plykiya Mar 31, 2024
ae8a68b
MeleeHitSoundSystem (#25005)
Bixkitts Mar 31, 2024
f5e5b6b
Remove physics comp from VendingMachineWallmount (#25632)
IamVelcroboy Mar 31, 2024
d505269
Remake hairflowers (#25475)
lzk228 Mar 31, 2024
7c7ff5a
Automatic changelog update
PJBot Mar 31, 2024
d71062a
Injector UI shows TransferAmount change, Spilling liquid changes Inje…
Plykiya Mar 31, 2024
d512bc1
Update submodule to 217.2.1 (#26599)
metalgearsloth Mar 31, 2024
1b69762
disallow unanchoring or opening panels on locked emitters/APEs (#26600)
EmoGarbage404 Mar 31, 2024
d1ad6d9
Automatic changelog update
PJBot Mar 31, 2024
8337493
Fix grave digging sound indefinitely playing if dug by aghost. (#26420)
nikthechampiongr Mar 31, 2024
ad438a7
Make the buttons on the map ui not squished (#26604)
wrexbe Mar 31, 2024
55c77af
Combine flower crown and wreath (#26605)
lzk228 Mar 31, 2024
241b153
Automatic changelog update
PJBot Mar 31, 2024
2a1903d
Add AP damage to throwing knives (#26380)
UbaserB Mar 31, 2024
7f2e6cc
Automatic changelog update
PJBot Mar 31, 2024
5eff7f1
cancelable brig timers (#26557)
graevy Mar 31, 2024
7e950ea
Fix orientation of roller skate sprites (#26627)
eoineoineoin Mar 31, 2024
3adf6c1
Automatic changelog update
PJBot Mar 31, 2024
d2bee7e
Fix GastTileOverlay sending redundant data (#26623)
ElectroJr Mar 31, 2024
6d15111
Auto DeAdmin sooner (#26551)
wrexbe Mar 31, 2024
0602e64
Add briefcase to curadrobe and lawdrobe, and some briefcases cleanup …
lzk228 Mar 31, 2024
c62e90a
Automatic changelog update
PJBot Mar 31, 2024
1488db8
Merge remote-tracking branch 'wizard/master' into upstream-sync
Rxup Mar 31, 2024
300da83
upd
Rxup Apr 1, 2024
eab8015
Merge remote-tracking branch 'upstream/master' into upstream-sync
Rxup Apr 1, 2024
d4aa243
upd
Rxup Apr 1, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Content.Client/Antag/AntagStatusIconSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public override void Initialize()
SubscribeLocalEvent<Shared.Backmen.Blob.Components.BlobCarrierComponent, GetStatusIconsEvent>(GetIcon);
SubscribeLocalEvent<Shared.Backmen.Blob.Components.ZombieBlobComponent, GetStatusIconsEvent>(GetIcon);
SubscribeLocalEvent<Shared.Backmen.Vampiric.BkmVampireComponent, GetStatusIconsEvent>(GetIcon);
SubscribeLocalEvent<Shared.Backmen.ShipVsShip.SVSTeamMemberComponent, GetStatusIconsEvent>(GetIcon);
//end-backmen: antag
SubscribeLocalEvent<InitialInfectedComponent, GetStatusIconsEvent>(GetIcon);
}
Expand Down
16 changes: 0 additions & 16 deletions Content.Client/Chemistry/Components/HyposprayComponent.cs

This file was deleted.

15 changes: 15 additions & 0 deletions Content.Client/Chemistry/EntitySystems/HypospraySystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Content.Client.Chemistry.UI;
using Content.Client.Items;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.EntitySystems;

namespace Content.Client.Chemistry.EntitySystems;

public sealed class HypospraySystem : SharedHypospraySystem
{
public override void Initialize()
{
base.Initialize();
Subs.ItemStatus<HyposprayComponent>(ent => new HyposprayStatusControl(ent, _solutionContainers));
}
}
13 changes: 0 additions & 13 deletions Content.Client/Chemistry/EntitySystems/InjectorSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Content.Client.Chemistry.Components;
using Content.Client.Chemistry.UI;
using Content.Client.Items;
using Content.Shared.Chemistry.Components;
Expand All @@ -13,17 +12,5 @@ public override void Initialize()
{
base.Initialize();
Subs.ItemStatus<InjectorComponent>(ent => new InjectorStatusControl(ent, SolutionContainers));
SubscribeLocalEvent<HyposprayComponent, ComponentHandleState>(OnHandleHyposprayState);
Subs.ItemStatus<HyposprayComponent>(ent => new HyposprayStatusControl(ent));
}

private void OnHandleHyposprayState(EntityUid uid, HyposprayComponent component, ref ComponentHandleState args)
{
if (args.Current is not HyposprayComponentState cState)
return;

component.CurrentVolume = cState.CurVolume;
component.TotalVolume = cState.MaxVolume;
component.UiUpdateNeeded = true;
}
}
48 changes: 32 additions & 16 deletions Content.Client/Chemistry/UI/HyposprayStatusControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Content.Client.Chemistry.Components;
using Content.Client.Message;
using Content.Client.Stylesheets;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.FixedPoint;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Timing;
Expand All @@ -9,34 +11,48 @@ namespace Content.Client.Chemistry.UI;

public sealed class HyposprayStatusControl : Control
{
private readonly HyposprayComponent _parent;
private readonly Entity<HyposprayComponent> _parent;
private readonly RichTextLabel _label;
private readonly SharedSolutionContainerSystem _solutionContainers;

public HyposprayStatusControl(HyposprayComponent parent)
private FixedPoint2 PrevVolume;
private FixedPoint2 PrevMaxVolume;
private bool PrevOnlyAffectsMobs;

public HyposprayStatusControl(Entity<HyposprayComponent> parent, SharedSolutionContainerSystem solutionContainers)
{
_parent = parent;
_label = new RichTextLabel {StyleClasses = {StyleNano.StyleClassItemStatus}};
_solutionContainers = solutionContainers;
_label = new RichTextLabel { StyleClasses = { StyleNano.StyleClassItemStatus } };
AddChild(_label);

Update();
}

protected override void FrameUpdate(FrameEventArgs args)
{
base.FrameUpdate(args);
if (!_parent.UiUpdateNeeded)

if (!_solutionContainers.TryGetSolution(_parent.Owner, _parent.Comp.SolutionName, out _, out var solution))
return;
Update();
}

public void Update()
{
// only updates the UI if any of the details are different than they previously were
if (PrevVolume == solution.Volume
&& PrevMaxVolume == solution.MaxVolume
&& PrevOnlyAffectsMobs == _parent.Comp.OnlyAffectsMobs)
return;

PrevVolume = solution.Volume;
PrevMaxVolume = solution.MaxVolume;
PrevOnlyAffectsMobs = _parent.Comp.OnlyAffectsMobs;

_parent.UiUpdateNeeded = false;
var modeStringLocalized = Loc.GetString(_parent.Comp.OnlyAffectsMobs switch
{
false => "hypospray-all-mode-text",
true => "hypospray-mobs-only-mode-text",
});

_label.SetMarkup(Loc.GetString(
"hypospray-volume-text",
("currentVolume", _parent.CurrentVolume),
("totalVolume", _parent.TotalVolume)));
_label.SetMarkup(Loc.GetString("hypospray-volume-label",
("currentVolume", solution.Volume),
("totalVolume", solution.MaxVolume),
("modeString", modeStringLocalized)));
}
}
3 changes: 3 additions & 0 deletions Content.Client/Chemistry/UI/InjectorStatusControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public sealed class InjectorStatusControl : Control

private FixedPoint2 PrevVolume;
private FixedPoint2 PrevMaxVolume;
private FixedPoint2 PrevTransferAmount;
private InjectorToggleMode PrevToggleState;

public InjectorStatusControl(Entity<InjectorComponent> parent, SharedSolutionContainerSystem solutionContainers)
Expand All @@ -37,11 +38,13 @@ protected override void FrameUpdate(FrameEventArgs args)
// only updates the UI if any of the details are different than they previously were
if (PrevVolume == solution.Volume
&& PrevMaxVolume == solution.MaxVolume
&& PrevTransferAmount == _parent.Comp.TransferAmount
&& PrevToggleState == _parent.Comp.ToggleState)
return;

PrevVolume = solution.Volume;
PrevMaxVolume = solution.MaxVolume;
PrevTransferAmount = _parent.Comp.TransferAmount;
PrevToggleState = _parent.Comp.ToggleState;

// Update current volume and injector state
Expand Down
24 changes: 7 additions & 17 deletions Content.Client/Disposal/Systems/DisposalUnitSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,22 @@ private void OnAppearanceChange(EntityUid uid, SharedDisposalUnitComponent unit,
private void UpdateState(EntityUid uid, SharedDisposalUnitComponent unit, SpriteComponent sprite, AppearanceComponent appearance)
{
if (!_appearanceSystem.TryGetData<VisualState>(uid, Visuals.VisualState, out var state, appearance))
{
return;
}

sprite.LayerSetVisible(DisposalUnitVisualLayers.Unanchored, state == VisualState.UnAnchored);
sprite.LayerSetVisible(DisposalUnitVisualLayers.Base, state == VisualState.Anchored);
sprite.LayerSetVisible(DisposalUnitVisualLayers.BaseFlush, state is VisualState.Flushing or VisualState.Charging);
sprite.LayerSetVisible(DisposalUnitVisualLayers.OverlayFlush, state is VisualState.OverlayFlushing or VisualState.OverlayCharging);

var chargingState = sprite.LayerMapTryGet(DisposalUnitVisualLayers.BaseCharging, out var chargingLayer)
? sprite.LayerGetState(chargingLayer)
: new RSI.StateId(DefaultChargeState);

// This is a transient state so not too worried about replaying in range.
if (state == VisualState.Flushing)
if (state == VisualState.OverlayFlushing)
{
if (!_animationSystem.HasRunningAnimation(uid, AnimationKey))
{
var flushState = sprite.LayerMapTryGet(DisposalUnitVisualLayers.BaseFlush, out var flushLayer)
var flushState = sprite.LayerMapTryGet(DisposalUnitVisualLayers.OverlayFlush, out var flushLayer)
? sprite.LayerGetState(flushLayer)
: new RSI.StateId(DefaultFlushState);

Expand All @@ -125,7 +123,7 @@ private void UpdateState(EntityUid uid, SharedDisposalUnitComponent unit, Sprite
{
new AnimationTrackSpriteFlick
{
LayerKey = DisposalUnitVisualLayers.BaseFlush,
LayerKey = DisposalUnitVisualLayers.OverlayFlush,
KeyFrames =
{
// Play the flush animation
Expand Down Expand Up @@ -154,26 +152,18 @@ private void UpdateState(EntityUid uid, SharedDisposalUnitComponent unit, Sprite
_animationSystem.Play(uid, anim, AnimationKey);
}
}
else if (state == VisualState.Charging)
{
sprite.LayerSetState(DisposalUnitVisualLayers.BaseFlush, chargingState);
}
else if (state == VisualState.OverlayCharging)
sprite.LayerSetState(DisposalUnitVisualLayers.OverlayFlush, new RSI.StateId("disposal-charging"));
else
{
_animationSystem.Stop(uid, AnimationKey);
}

if (!_appearanceSystem.TryGetData<HandleState>(uid, Visuals.Handle, out var handleState, appearance))
{
handleState = HandleState.Normal;
}

sprite.LayerSetVisible(DisposalUnitVisualLayers.OverlayEngaged, handleState != HandleState.Normal);

if (!_appearanceSystem.TryGetData<LightStates>(uid, Visuals.Light, out var lightState, appearance))
{
lightState = LightStates.Off;
}

sprite.LayerSetVisible(DisposalUnitVisualLayers.OverlayCharging,
(lightState & LightStates.Charging) != 0);
Expand All @@ -189,7 +179,7 @@ public enum DisposalUnitVisualLayers : byte
Unanchored,
Base,
BaseCharging,
BaseFlush,
OverlayFlush,
OverlayCharging,
OverlayReady,
OverlayFull,
Expand Down
3 changes: 3 additions & 0 deletions Content.Client/Input/ContentContexts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public static void SetupContexts(IInputContextContainer contexts)
// Not in engine because the engine doesn't understand what a flipped object is
common.AddFunction(ContentKeyFunctions.EditorFlipObject);

// Not in engine so that the RCD can rotate objects
common.AddFunction(EngineKeyFunctions.EditorRotateObject);

var human = contexts.GetContext("human");
human.AddFunction(EngineKeyFunctions.MoveUp);
human.AddFunction(EngineKeyFunctions.MoveDown);
Expand Down
116 changes: 0 additions & 116 deletions Content.Client/Paint/PaintVisualizerSystem.cs

This file was deleted.

13 changes: 10 additions & 3 deletions Content.Client/Pinpointer/UI/NavMapControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,16 @@ public NavMapControl() : base(MinDisplayedRange, MaxDisplayedRange, DefaultDispl
VerticalExpand = false,
Children =
{
_zoom,
_beacons,
_recenter,
new BoxContainer()
{
Orientation = BoxContainer.LayoutOrientation.Horizontal,
Children =
{
_zoom,
_beacons,
_recenter
}
}
}
};

Expand Down
7 changes: 5 additions & 2 deletions Content.Client/Popups/PopupSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,13 @@ public override void PopupEntity(string? message, EntityUid uid, Filter filter,
PopupEntity(message, uid, type);
}

public override void PopupClient(string? message, EntityUid uid, EntityUid recipient, PopupType type = PopupType.Small)
public override void PopupClient(string? message, EntityUid uid, EntityUid? recipient, PopupType type = PopupType.Small)
{
if (recipient == null)
return;

if (_timing.IsFirstTimePredicted)
PopupEntity(message, uid, recipient, type);
PopupEntity(message, uid, recipient.Value, type);
}

public override void PopupEntity(string? message, EntityUid uid, PopupType type = PopupType.Small)
Expand Down
Loading
Loading