Buff heat and flame damage (#23238)

This commit is contained in:
Nemanja
2023-12-30 18:28:00 -05:00
committed by GitHub
parent 83d51dbd77
commit cfb129c5a4
12 changed files with 23 additions and 30 deletions

View File

@@ -394,10 +394,9 @@ namespace Content.Server.Atmos.EntitySystems
EnsureComp<IgnitionSourceComponent>(uid);
_ignitionSourceSystem.SetIgnited(uid);
// TODO FLAMMABLE: further balancing
var damageScale = Math.Min((int)flammable.FireStacks, 5);
var damageScale = MathF.Min(flammable.FireStacks, 5);
if(TryComp(uid, out TemperatureComponent? temp))
if (TryComp(uid, out TemperatureComponent? temp))
_temperatureSystem.ChangeHeat(uid, 12500 * damageScale, false, temp);
_damageableSystem.TryChangeDamage(uid, flammable.Damage * damageScale);