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 #1629

Merged
merged 44 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a69c5e3
Document why tile ripping was disabled upstream (#22315)
Flareguy Dec 11, 2023
627bf30
Remove tasers from arsenal tech (#22361)
EmoGarbage404 Dec 11, 2023
27acbe4
Sell plasma canister at cargo (#22357)
Partmedia Dec 11, 2023
9de9613
Automatic changelog update
PJBot Dec 11, 2023
df28abb
Gemeanie hotfixes (#22355)
TsjipTsjip Dec 11, 2023
0433d3b
Don't apply toggleclothing in state handling (#22347)
metalgearsloth Dec 11, 2023
6e91346
artifact crusher (#22301)
EmoGarbage404 Dec 11, 2023
123d49a
Automatic changelog update
PJBot Dec 11, 2023
d430157
Remove plasma miners from maps (#22358)
Partmedia Dec 11, 2023
5143030
Automatic changelog update
PJBot Dec 11, 2023
d0085f9
Prevent pacified players from throwing dangerous stuff (#22268)
nok-ko Dec 11, 2023
5d8d668
Automatic changelog update
PJBot Dec 11, 2023
a2ed25a
Add atmos time compression (#21954)
Partmedia Dec 11, 2023
472f864
Automatic changelog update
PJBot Dec 12, 2023
53bd668
Temporarily disable round-end PVS overrides (#22365)
ElectroJr Dec 12, 2023
70d663c
Fix pvs override error (#22366)
ElectroJr Dec 12, 2023
66a1bb7
Remove senior roles (#22303)
EmoGarbage404 Dec 12, 2023
41d8a56
Automatic changelog update
PJBot Dec 12, 2023
7404137
Update cluster.yml (#22370)
OliverOtter Dec 12, 2023
bca2d07
Mothroach Cargo Crates (#21565)
BYONDFuckery Dec 12, 2023
89448d4
Automatic changelog update
PJBot Dec 12, 2023
048d6c0
Fix history about gas prices (#22373)
Partmedia Dec 12, 2023
223a258
Fix crucial game breaking bug. (#22376)
IProduceWidgets Dec 12, 2023
405e569
Split up atmos speedup from heat scaling (#22372)
Partmedia Dec 12, 2023
9de4c40
Miscellaneous inventory tweaks (#22371)
EmoGarbage404 Dec 12, 2023
2712e4d
fix a box probably (#22377)
IProduceWidgets Dec 12, 2023
0849127
Automatic changelog update
PJBot Dec 12, 2023
5e8a691
Makes pill canisters Tiny and puts 9 in the box chem gets. (#22378)
IProduceWidgets Dec 12, 2023
af62bd0
belt bigger (#22379)
IProduceWidgets Dec 12, 2023
cdccdea
guns and ammo (#22380)
IProduceWidgets Dec 12, 2023
e03875d
make square so it works. (#22381)
IProduceWidgets Dec 12, 2023
8922303
Cans (#22383)
IProduceWidgets Dec 12, 2023
9406007
Automatic changelog update
PJBot Dec 12, 2023
b279f5c
Jar now fills (#22384)
IProduceWidgets Dec 12, 2023
7773cbb
Donuts (#22385)
IProduceWidgets Dec 12, 2023
467f980
Nuggets (#22386)
IProduceWidgets Dec 12, 2023
cb223ad
Take the L (#22387)
IProduceWidgets Dec 12, 2023
321a869
Automatic changelog update
PJBot Dec 12, 2023
5be3e32
Adjust cig carton contents and size (#22388)
IProduceWidgets Dec 12, 2023
5a864e0
Cigar case spin and shape (#22389)
IProduceWidgets Dec 12, 2023
0981535
Pipe bigger (#22390)
IProduceWidgets Dec 12, 2023
f22b645
Merge remote-tracking branch 'upstream/master' into upstream-sync
Morb0 Dec 12, 2023
f4f2d8b
Update locale
Morb0 Dec 12, 2023
9cc7771
Fix upstream
Morb0 Dec 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,27 @@ protected override void OnAppearanceChange(EntityUid uid, EntityStorageVisualsCo
{
if (open)
{
args.Sprite.LayerSetVisible(StorageVisualLayers.Door, true);
if (comp.OpenDrawDepth != null)
args.Sprite.DrawDepth = comp.OpenDrawDepth.Value;

if (comp.StateDoorOpen != null)
{
args.Sprite.LayerSetState(StorageVisualLayers.Door, comp.StateDoorOpen);
args.Sprite.LayerSetVisible(StorageVisualLayers.Door, true);
}
else
{
args.Sprite.LayerSetVisible(StorageVisualLayers.Door, false);
}

if (comp.StateBaseOpen != null)
args.Sprite.LayerSetState(StorageVisualLayers.Base, comp.StateBaseOpen);
}
else
{
if (comp.ClosedDrawDepth != null)
args.Sprite.DrawDepth = comp.ClosedDrawDepth.Value;

if (comp.StateDoorClosed != null)
{
args.Sprite.LayerSetState(StorageVisualLayers.Door, comp.StateDoorClosed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ public sealed partial class EntityStorageVisualsComponent : Component
[DataField("stateUnlocked")]
[ViewVariables(VVAccess.ReadWrite)]
public string? StateUnlocked = "unlocked";

/// <summary>
/// The drawdepth the object has when it's open
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public int? OpenDrawDepth;

/// <summary>
/// The drawdepth the object has when it's closed
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public int? ClosedDrawDepth;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Robust.Client.Graphics;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.CustomControls;
using YamlDotNet.Core;

namespace Content.Client.UserInterface.Systems.Storage.Controls;

Expand Down Expand Up @@ -103,7 +102,7 @@ protected override void Draw(DrawingHandleScreen handle)
return;
}

if (_storageController.IsDragging && _storageController.CurrentlyDragging == this)
if (_storageController.IsDragging && _storageController.DraggingGhost?.Entity == Entity && _storageController.DraggingGhost != this)
return;

var adjustedShape = _entityManager.System<ItemSystem>().GetAdjustedItemShape((Entity, itemComponent), Location.Rotation, Vector2i.Zero);
Expand Down Expand Up @@ -177,7 +176,7 @@ protected override void Draw(DrawingHandleScreen handle)
handle.SetTransform(pos, iconRotation);
var box = new UIBox2(root, root + sprite.Size * scale);
handle.DrawTextureRect(sprite, box);
handle.SetTransform(Matrix3.Identity);
handle.SetTransform(GlobalPixelPosition, Angle.Zero);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ protected override void KeyBindDown(GUIBoundKeyEventArgs args)
_entity.GetNetEntity(handEntity),
_entity.GetNetEntity(StorageEntity.Value),
insertLocation));
_storageController.DraggingRotation = Angle.Zero;
args.Handle();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,29 +263,55 @@ private void OnPiecePressed(GUIBoundKeyEventArgs args, ItemGridPiece control)

private void OnPieceUnpressed(GUIBoundKeyEventArgs args, ItemGridPiece control)
{
if (_container?.StorageEntity is not { } storageEnt)
if (args.Function != ContentKeyFunctions.MoveStoredItem)
return;

if (args.Function == ContentKeyFunctions.MoveStoredItem)
if (_container?.StorageEntity is not { } storageEnt|| !_entity.TryGetComponent<StorageComponent>(storageEnt, out var storageComp))
return;

if (DraggingGhost is { } draggingGhost)
{
if (DraggingGhost is { } draggingGhost)
var dragEnt = draggingGhost.Entity;
var dragLoc = draggingGhost.Location;
var itemSys = _entity.System<SharedItemSystem>();

var position = _container.GetMouseGridPieceLocation(dragEnt, dragLoc);
var itemBounding = itemSys.GetAdjustedItemShape(dragEnt, dragLoc).GetBoundingBox();
var gridBounding = storageComp.Grid.GetBoundingBox();

// The extended bounding box for if this is out of the window is the grid bounding box dimensions combined
// with the item shape bounding box dimensions. Plus 1 on the left for the sidebar. This makes it so that.
// dropping an item on the floor requires dragging it all the way out of the window.
var left = gridBounding.Left - itemBounding.Width - 1;
var bottom = gridBounding.Bottom - itemBounding.Height;
var top = gridBounding.Top;
var right = gridBounding.Right;
var lenientBounding = new Box2i(left, bottom, right, top);

if (lenientBounding.Contains(position))
{
var position = _container.GetMouseGridPieceLocation(draggingGhost.Entity, draggingGhost.Location);
_entity.RaisePredictiveEvent(new StorageSetItemLocationEvent(
_entity.GetNetEntity(draggingGhost.Entity),
_entity.GetNetEntity(storageEnt),
new ItemStorageLocation(DraggingRotation, position)));
_container?.BuildItemPieces();
}
else //if we just clicked, then take it out of the bag.
else
{
_entity.RaisePredictiveEvent(new StorageInteractWithItemEvent(
_entity.GetNetEntity(control.Entity),
_entity.RaisePredictiveEvent(new StorageRemoveItemEvent(
_entity.GetNetEntity(draggingGhost.Entity),
_entity.GetNetEntity(storageEnt)));
}
_menuDragHelper.EndDrag();
args.Handle();

_container?.BuildItemPieces();
}
else //if we just clicked, then take it out of the bag.
{
_entity.RaisePredictiveEvent(new StorageInteractWithItemEvent(
_entity.GetNetEntity(control.Entity),
_entity.GetNetEntity(storageEnt)));
}
_menuDragHelper.EndDrag();
args.Handle();
}

private bool OnMenuBeginDrag()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Content.Shared.Xenoarchaeology.Equipment;

namespace Content.Client.Xenoarchaeology.Equipment;

/// <inheritdoc/>
public sealed class ArtifactCrusherSystem : SharedArtifactCrusherSystem
{

}
2 changes: 1 addition & 1 deletion Content.Server/Atmos/EntitySystems/AirFilterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void OnFilterUpdate(EntityUid uid, AirFilterComponent filter, AtmosDevic
if (!GetAir(uid, out var air))
return;

var ratio = MathF.Min(1f, args.dt * filter.TransferRate);
var ratio = MathF.Min(1f, args.dt * filter.TransferRate * _atmosphere.PumpSpeedup());
var removed = air.RemoveRatio(ratio);
// nothing left to remove from the volume
if (MathHelper.CloseToPercent(removed.TotalMoles, 0f))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public sealed partial class AtmosphereSystem
public bool ExcitedGroupsSpaceIsAllConsuming { get; private set; }
public float AtmosMaxProcessTime { get; private set; }
public float AtmosTickRate { get; private set; }
public float Speedup { get; private set; }
public float HeatScale { get; private set; }

/// <summary>
/// Time between each atmos sub-update. If you are writing an atmos device, use AtmosDeviceUpdateEvent.dt
Expand All @@ -49,6 +51,8 @@ private void InitializeCVars()
_cfg.OnValueChanged(CCVars.Superconduction, value => Superconduction = value, true);
_cfg.OnValueChanged(CCVars.AtmosMaxProcessTime, value => AtmosMaxProcessTime = value, true);
_cfg.OnValueChanged(CCVars.AtmosTickRate, value => AtmosTickRate = value, true);
_cfg.OnValueChanged(CCVars.AtmosSpeedup, value => Speedup = value, true);
_cfg.OnValueChanged(CCVars.AtmosHeatScale, value => HeatScale = value, true);
_cfg.OnValueChanged(CCVars.ExcitedGroups, value => ExcitedGroups = value, true);
_cfg.OnValueChanged(CCVars.ExcitedGroupsSpaceIsAllConsuming, value => ExcitedGroupsSpaceIsAllConsuming = value, true);
}
Expand Down
12 changes: 11 additions & 1 deletion Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ private float GetHeatCapacityCalculation(float[] moles, bool space)

Span<float> tmp = stackalloc float[moles.Length];
NumericsHelpers.Multiply(moles, GasSpecificHeats, tmp);
return MathF.Max(NumericsHelpers.HorizontalAdd(tmp), Atmospherics.MinimumHeatCapacity);
// Adjust heat capacity by speedup, because this is primarily what
// determines how quickly gases heat up/cool.
return MathF.Max(NumericsHelpers.HorizontalAdd(tmp), Atmospherics.MinimumHeatCapacity) / HeatScale;
}

/// <summary>
/// Return speedup factor for pumped or flow-based devices that depend on MaxTransferRate.
/// </summary>
public float PumpSpeedup()
{
return Speedup;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public float PassiveTransferVol(GasMixture inlet, GasMixture outlet)
return 0;
}
float overPressConst = 300; // pressure difference (in atm) to get 200 L/sec transfer rate
float alpha = Atmospherics.MaxTransferRate / (float)Math.Sqrt(overPressConst*Atmospherics.OneAtmosphere);
float alpha = Atmospherics.MaxTransferRate * _atmosphereSystem.PumpSpeedup() / (float)Math.Sqrt(overPressConst*Atmospherics.OneAtmosphere);
return alpha * (float)Math.Sqrt(inlet.Pressure - outlet.Pressure);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void OnVolumePumpUpdated(EntityUid uid, GasVolumePumpComponent pump, Atm
return;

// We multiply the transfer rate in L/s by the seconds passed since the last process to get the liters.
var removed = inlet.Air.RemoveVolume(pump.TransferRate * args.dt);
var removed = inlet.Air.RemoveVolume(pump.TransferRate * _atmosphereSystem.PumpSpeedup() * args.dt);

// Some of the gas from the mixture leaks when overclocked.
if (pump.Overclocked)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void OnFilterUpdated(EntityUid uid, GasFilterComponent filter, AtmosDevi
}

// We multiply the transfer rate in L/s by the seconds passed since the last process to get the liters.
var transferVol = filter.TransferRate * args.dt;
var transferVol = filter.TransferRate * _atmosphereSystem.PumpSpeedup() * args.dt;

if (transferVol <= 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void OnUpdate(EntityUid uid, PressureControlledValveComponent comp, Atmo
else
{
comp.Enabled = true;
transferRate = Math.Min(control * comp.Gain, comp.MaxTransferRate);
transferRate = Math.Min(control * comp.Gain, comp.MaxTransferRate * _atmosphereSystem.PumpSpeedup());
}
UpdateAppearance(uid, comp);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void OnOutletInjectorUpdated(EntityUid uid, GasOutletInjectorComponent i
var timeDelta = args.dt;

// TODO adjust ratio so that environment does not go above MaxPressure?
var ratio = MathF.Min(1f, timeDelta * injector.TransferRate / inlet.Air.Volume);
var ratio = MathF.Min(1f, timeDelta * injector.TransferRate * _atmosphereSystem.PumpSpeedup() / inlet.Air.Volume);
var removed = inlet.Air.RemoveRatio(ratio);

_atmosphereSystem.Merge(environment, removed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void OnVentScrubberEnterAtmosphere(EntityUid uid, GasVentScrubberCompone

private void Scrub(float timeDelta, GasVentScrubberComponent scrubber, GasMixture? tile, PipeNode outlet)
{
Scrub(timeDelta, scrubber.TransferRate, scrubber.PumpDirection, scrubber.FilterGases, tile, outlet.Air);
Scrub(timeDelta, scrubber.TransferRate*_atmosphereSystem.PumpSpeedup(), scrubber.PumpDirection, scrubber.FilterGases, tile, outlet.Air);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Atmos/Portable/PortableScrubberSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void OnDestroyed(EntityUid uid, PortableScrubberComponent component, Des

private bool Scrub(float timeDelta, PortableScrubberComponent scrubber, GasMixture? tile)
{
return _scrubberSystem.Scrub(timeDelta, scrubber.TransferRate, ScrubberPumpDirection.Scrubbing, scrubber.FilterGases, tile, scrubber.Air);
return _scrubberSystem.Scrub(timeDelta, scrubber.TransferRate * _atmosphereSystem.PumpSpeedup(), ScrubberPumpDirection.Scrubbing, scrubber.FilterGases, tile, scrubber.Air);
}

private void UpdateAppearance(EntityUid uid, bool isFull, bool isRunning)
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Atmos/Reactions/FrezonCoolantReaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, Atmos
energyReleased = burnRate * Atmospherics.FrezonCoolEnergyReleased * energyModifier;
}

energyReleased /= atmosphereSystem.HeatScale; // adjust energy to make sure speedup doesn't cause mega temperature rise
if (energyReleased >= 0f)
return ReactionResult.NoReaction;

Expand Down
1 change: 1 addition & 0 deletions Content.Server/Atmos/Reactions/PlasmaFireReaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, Atmos
mixture.AdjustMoles(Gas.CarbonDioxide, plasmaBurnRate * (1.0f - supersaturation));

energyReleased += Atmospherics.FirePlasmaEnergyReleased * plasmaBurnRate;
energyReleased /= atmosphereSystem.HeatScale; // adjust energy to make sure speedup doesn't cause mega temperature rise
mixture.ReactionResults[GasReaction.Fire] += plasmaBurnRate * (1 + oxygenBurnRate);
}
}
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Atmos/Reactions/TritiumFireReaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, Atmos
mixture.ReactionResults[GasReaction.Fire] += burnedFuel;
}

energyReleased /= atmosphereSystem.HeatScale; // adjust energy to make sure speedup doesn't cause mega temperature rise
if (energyReleased > 0)
{
var newHeatCapacity = atmosphereSystem.GetHeatCapacity(mixture);
Expand Down
14 changes: 14 additions & 0 deletions Content.Server/Damage/Systems/DamageOnLandSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Content.Server.Damage.Components;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Damage;
using Content.Shared.Throwing;

Expand All @@ -12,6 +13,19 @@ public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<DamageOnLandComponent, LandEvent>(DamageOnLand);
SubscribeLocalEvent<DamageOnLandComponent, AttemptPacifiedThrowEvent>(OnAttemptPacifiedThrow);
}

/// <summary>
/// Prevent Pacified entities from throwing damaging items.
/// </summary>
private void OnAttemptPacifiedThrow(Entity<DamageOnLandComponent> ent, ref AttemptPacifiedThrowEvent args)
{
// Allow healing projectiles, forbid any that do damage:
if (ent.Comp.Damage.Any())
{
args.Cancel("pacified-cannot-throw");
}
}

private void DamageOnLand(EntityUid uid, DamageOnLandComponent component, ref LandEvent args)
Expand Down
7 changes: 7 additions & 0 deletions Content.Server/Ensnaring/EnsnareableSystem.Ensnaring.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Server.Body.Systems;
using Content.Shared.Alert;
using Content.Shared.Body.Part;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Damage.Components;
using Content.Shared.Damage.Systems;
using Content.Shared.DoAfter;
Expand All @@ -26,6 +27,12 @@ public void InitializeEnsnaring()
SubscribeLocalEvent<EnsnaringComponent, StepTriggerAttemptEvent>(AttemptStepTrigger);
SubscribeLocalEvent<EnsnaringComponent, StepTriggeredEvent>(OnStepTrigger);
SubscribeLocalEvent<EnsnaringComponent, ThrowDoHitEvent>(OnThrowHit);
SubscribeLocalEvent<EnsnaringComponent, AttemptPacifiedThrowEvent>(OnAttemptPacifiedThrow);
}

private void OnAttemptPacifiedThrow(Entity<EnsnaringComponent> ent, ref AttemptPacifiedThrowEvent args)
{
args.Cancel("pacified-cannot-throw-snare");
}

private void OnComponentRemove(EntityUid uid, EnsnaringComponent component, ComponentRemove args)
Expand Down
18 changes: 18 additions & 0 deletions Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Content.Shared.Chemistry.Reaction;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.Clothing.Components;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Database;
using Content.Shared.DoAfter;
using Content.Shared.Examine;
Expand Down Expand Up @@ -36,6 +37,7 @@ private void InitializeSpillable()
SubscribeLocalEvent<SpillableComponent, GotEquippedEvent>(OnGotEquipped);
SubscribeLocalEvent<SpillableComponent, SolutionOverflowEvent>(OnOverflow);
SubscribeLocalEvent<SpillableComponent, SpillDoAfterEvent>(OnDoAfter);
SubscribeLocalEvent<SpillableComponent, AttemptPacifiedThrowEvent>(OnAttemptPacifiedThrow);
}

private void OnExamined(EntityUid uid, SpillableComponent component, ExaminedEvent args)
Expand Down Expand Up @@ -152,6 +154,22 @@ private void SpillOnLand(EntityUid uid, SpillableComponent component, ref LandEv
TrySplashSpillAt(uid, Transform(uid).Coordinates, drainedSolution, out _);
}

/// <summary>
/// Prevent Pacified entities from throwing items that can spill liquids.
/// </summary>
private void OnAttemptPacifiedThrow(Entity<SpillableComponent> ent, ref AttemptPacifiedThrowEvent args)
{
// Don’t care about closed containers.
if (_openable.IsClosed(ent))
return;

// Don’t care about empty containers.
if (!_solutionContainerSystem.TryGetSolution(ent, ent.Comp.SolutionName, out var solution))
return;

args.Cancel("pacified-cannot-throw-spill");
}

private void AddSpillVerb(EntityUid uid, SpillableComponent component, GetVerbsEvent<Verb> args)
{
if (!args.CanAccess || !args.CanInteract)
Expand Down
5 changes: 4 additions & 1 deletion Content.Server/GameTicking/GameTicker.RoundFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ public void ShowRoundEndScoreboard(string text = "")
playerIcName = icName;

if (TryGetEntity(mind.OriginalOwnedEntity, out var entity))
_pvsOverride.AddGlobalOverride(GetNetEntity(entity.Value), recursive: true);
{
// Temporarily disabled to test if this causes issues on live servers
// _pvsOverride.AddGlobalOverride(GetNetEntity(entity.Value), recursive: true);
}

var roles = _roles.MindGetAllRoles(mindId);

Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Hands/Systems/HandsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ hands.ActiveHandEntity is not { } throwEnt ||
// Let other systems change the thrown entity (useful for virtual items)
// or the throw strength.
var ev = new BeforeThrowEvent(throwEnt, direction, throwStrength, player);
RaiseLocalEvent(player, ev, false);
RaiseLocalEvent(player, ref ev);

if (ev.Handled)
if (ev.Cancelled)
return true;

// This can grief the above event so we raise it afterwards
Expand Down
Loading
Loading