Merge branch 'master' into ed-19-05-2024-upstream
This commit is contained in:
@@ -459,7 +459,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
_damageableSystem.TryChangeDamage(uid, flammable.Damage * flammable.FireStacks * ev.Multiplier, interruptsDoAfters: false);
|
||||
|
||||
AdjustFireStacks(uid, flammable.FirestackFade * (flammable.Resisting ? 10f : 1f), flammable);
|
||||
AdjustFireStacks(uid, flammable.FirestackFade * (flammable.Resisting ? 10f : 1f), flammable, flammable.OnFire);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.Stack;
|
||||
using Content.Shared._CP14.Temperature;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Stacks;
|
||||
using Content.Shared.Throwing;
|
||||
using Robust.Server.Audio;
|
||||
using Robust.Server.Containers;
|
||||
@@ -18,8 +20,7 @@ public sealed partial class CP14FireplaceSystem : EntitySystem
|
||||
[Dependency] private readonly AudioSystem _audio = default!;
|
||||
[Dependency] private readonly ContainerSystem _containerSystem = default!;
|
||||
[Dependency] private readonly IGameTiming _timing = default!;
|
||||
[Dependency] private readonly FlammableSystem _flammable = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly StackSystem _stackSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -67,7 +68,14 @@ public sealed partial class CP14FireplaceSystem : EntitySystem
|
||||
if (flammable.OnFire)
|
||||
_audio.PlayPvs(component.InsertFuelSound, uid);
|
||||
|
||||
QueueDel(fuel);
|
||||
if (TryComp<StackComponent>(fuel, out var stack))
|
||||
{
|
||||
_stackSystem.SetCount(fuel, stack.Count - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
QueueDel(fuel);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
Reference in New Issue
Block a user