Validate remaining ProtoId strings (#38747)
Validate remaining ProtoId strings
This commit is contained in:
@@ -8,12 +8,14 @@ using Content.Shared.Damage;
|
||||
using Content.Shared.Damage.Prototypes;
|
||||
using Content.Shared.Movement.Components;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Body.Systems;
|
||||
|
||||
public partial class SharedBodySystem
|
||||
{
|
||||
private static readonly ProtoId<DamageTypePrototype> BloodlossDamageType = "Bloodloss";
|
||||
private void InitializeParts()
|
||||
{
|
||||
// TODO: This doesn't handle comp removal on child ents.
|
||||
@@ -178,7 +180,7 @@ public partial class SharedBodySystem
|
||||
)
|
||||
{
|
||||
// TODO BODY SYSTEM KILL : remove this when wounding and required parts are implemented properly
|
||||
var damage = new DamageSpecifier(Prototypes.Index<DamageTypePrototype>("Bloodloss"), 300);
|
||||
var damage = new DamageSpecifier(Prototypes.Index(BloodlossDamageType), 300);
|
||||
Damageable.TryChangeDamage(bodyEnt, damage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user