As discussed on the Discord, xenos are not humans (#1840)
* As discussed on the Discord, xenos are not humans * Add living component for living beings without a defined body * Merge LivingDamageable and Damageable components * Fix ruinable and state manager inconsistencies * Fix ruinable exposedata * Fix new destructibles yamls * Fix healing not healing * Fix alive not being a valid state * Fix valid state checking
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.GameObjects.Components.Damage;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
@@ -11,15 +10,6 @@ namespace Content.Shared.GameObjects.Components.Body
|
||||
public override string Name => "BodyManager";
|
||||
|
||||
public override uint? NetID => ContentNetIDs.BODY_MANAGER;
|
||||
|
||||
public override List<DamageState> SupportedDamageStates => new List<DamageState> {DamageState.Alive, DamageState.Critical, DamageState.Dead};
|
||||
|
||||
public override DamageState CurrentDamageState =>
|
||||
CurrentDamageState = TotalDamage > 200
|
||||
? DamageState.Dead
|
||||
: TotalDamage > 100
|
||||
? DamageState.Critical
|
||||
: DamageState.Alive;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user