fire troll fix (#28034)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -226,8 +226,8 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
? (-1f, 1f)
|
? (-1f, 1f)
|
||||||
: (1f, -1f);
|
: (1f, -1f);
|
||||||
// bring each entity to the same firestack mass, firestacks being scaled by the other's mass
|
// bring each entity to the same firestack mass, firestacks being scaled by the other's mass
|
||||||
AdjustFireStacks(uid, src * avg * mass2, flammable);
|
AdjustFireStacks(uid, src * avg * mass2, flammable, ignite: true);
|
||||||
AdjustFireStacks(otherUid, dest * avg * mass1, otherFlammable);
|
AdjustFireStacks(otherUid, dest * avg * mass1, otherFlammable, ignite: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnIsHot(EntityUid uid, FlammableComponent flammable, IsHotEvent args)
|
private void OnIsHot(EntityUid uid, FlammableComponent flammable, IsHotEvent args)
|
||||||
@@ -265,15 +265,15 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
_appearance.SetData(uid, ToggleableLightVisuals.Enabled, flammable.OnFire, appearance);
|
_appearance.SetData(uid, ToggleableLightVisuals.Enabled, flammable.OnFire, appearance);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AdjustFireStacks(EntityUid uid, float relativeFireStacks, FlammableComponent? flammable = null)
|
public void AdjustFireStacks(EntityUid uid, float relativeFireStacks, FlammableComponent? flammable = null, bool ignite = false)
|
||||||
{
|
{
|
||||||
if (!Resolve(uid, ref flammable))
|
if (!Resolve(uid, ref flammable))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetFireStacks(uid, flammable.FireStacks + relativeFireStacks, flammable);
|
SetFireStacks(uid, flammable.FireStacks + relativeFireStacks, flammable, ignite);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetFireStacks(EntityUid uid, float stacks, FlammableComponent? flammable = null)
|
public void SetFireStacks(EntityUid uid, float stacks, FlammableComponent? flammable = null, bool ignite = false)
|
||||||
{
|
{
|
||||||
if (!Resolve(uid, ref flammable))
|
if (!Resolve(uid, ref flammable))
|
||||||
return;
|
return;
|
||||||
@@ -286,7 +286,7 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
flammable.OnFire = true;
|
flammable.OnFire = ignite;
|
||||||
UpdateAppearance(uid, flammable);
|
UpdateAppearance(uid, flammable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user