@@ -1,8 +1,11 @@
|
||||
namespace Content.Server.Atmos.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Component that can be used to add (or remove) fire stacks when used as a melee weapon.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class IgniteOnMeleeHitComponent : Component
|
||||
{
|
||||
[DataField("fireStacks")]
|
||||
[DataField]
|
||||
public float FireStacks { get; set; }
|
||||
}
|
||||
|
||||
@@ -85,7 +85,8 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
if (!TryComp<FlammableComponent>(entity, out var flammable))
|
||||
continue;
|
||||
|
||||
flammable.FireStacks += component.FireStacks;
|
||||
AdjustFireStacks(entity, component.FireStacks, flammable);
|
||||
if (component.FireStacks >= 0)
|
||||
Ignite(entity, args.Weapon, flammable, args.User);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
- type: Prying
|
||||
- type: UseDelay
|
||||
delay: 1
|
||||
- type: IgniteOnMeleeHit
|
||||
fireStacks: -4
|
||||
|
||||
- type: entity
|
||||
id: FireAxeFlaming
|
||||
|
||||
Reference in New Issue
Block a user