Validate remaining ProtoId strings (#38747)
Validate remaining ProtoId strings
This commit is contained in:
@@ -74,6 +74,7 @@ namespace Content.Server.Ghost
|
||||
private EntityQuery<PhysicsComponent> _physicsQuery;
|
||||
|
||||
private static readonly ProtoId<TagPrototype> AllowGhostShownByEventTag = "AllowGhostShownByEvent";
|
||||
private static readonly ProtoId<DamageTypePrototype> AsphyxiationDamageType = "Asphyxiation";
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -585,7 +586,7 @@ namespace Content.Server.Ghost
|
||||
dealtDamage = playerDeadThreshold - damageable.TotalDamage;
|
||||
}
|
||||
|
||||
DamageSpecifier damage = new(_prototypeManager.Index<DamageTypePrototype>("Asphyxiation"), dealtDamage);
|
||||
DamageSpecifier damage = new(_prototypeManager.Index(AsphyxiationDamageType), dealtDamage);
|
||||
|
||||
_damageable.TryChangeDamage(playerEntity, damage, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user