[DataDefinition]
public sealed partial class BurnBodyBehavior : IThresholdBehavior
{
+ /// <summary>
+ /// The popup displayed upon destruction.
+ /// </summary>
+ [DataField]
+ public LocId PopupMessage = "bodyburn-text-others";
public void Execute(EntityUid bodyId, DestructibleSystem system, EntityUid? cause = null)
{
}
var bodyIdentity = Identity.Entity(bodyId, system.EntityManager);
- sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyIdentity)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
+ sharedPopupSystem.PopupCoordinates(Loc.GetString(PopupMessage, ("name", bodyIdentity)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
system.EntityManager.QueueDeleteEntity(bodyId);
}
FoodMeatChickenFriedVox:
min: 3
max: 5
- - !type:BurnBodyBehavior { }
+ - !type:BurnBodyBehavior
+ popupMessage: bodyburn-vox-text-others
- !type:PlaySoundBehavior
sound:
collection: MeatLaserImpact