Adds FlammableComponent, humans can now catch on fire. (#2115)
This commit is contained in:
committed by
GitHub
parent
4c34a12c67
commit
31e0dfc10c
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Atmos
|
||||
{
|
||||
public class SharedFlammableComponent : Component
|
||||
{
|
||||
public override string Name => "Flammable";
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum FireVisuals
|
||||
{
|
||||
OnFire,
|
||||
FireStacks,
|
||||
}
|
||||
}
|
||||
@@ -57,6 +57,8 @@ namespace Content.Shared.GameObjects.Components.Mobs
|
||||
Hunger,
|
||||
Thirst,
|
||||
Pressure,
|
||||
Fire,
|
||||
Temperature,
|
||||
Stun,
|
||||
Cuffed,
|
||||
Buckled,
|
||||
|
||||
@@ -112,6 +112,7 @@ namespace Content.Shared.GameObjects.Components.Movement
|
||||
{
|
||||
if (!uid.IsValid() || !_entityManager.EntityExists(uid))
|
||||
{
|
||||
_slipped.Remove(uid);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user