fix burning to ash not working on all mobs (#27158)
(cherry picked from commit c7bbaa48a4e70dc8e93385af2583843766b8d1dd)
This commit is contained in:
parent
ada6f1ea71
commit
5b64262401
|
|
@ -17,12 +17,12 @@ public sealed partial class BurnBodyBehavior : IThresholdBehavior
|
|||
var inventorySystem = system.EntityManager.System<InventorySystem>();
|
||||
var sharedPopupSystem = system.EntityManager.System<SharedPopupSystem>();
|
||||
|
||||
if (!system.EntityManager.TryGetComponent<InventoryComponent>(bodyId, out var comp))
|
||||
return;
|
||||
|
||||
foreach (var item in inventorySystem.GetHandOrInventoryEntities(bodyId))
|
||||
if (system.EntityManager.TryGetComponent<InventoryComponent>(bodyId, out var comp))
|
||||
{
|
||||
transformSystem.DropNextTo(item, bodyId);
|
||||
foreach (var item in inventorySystem.GetHandOrInventoryEntities(bodyId))
|
||||
{
|
||||
transformSystem.DropNextTo(item, bodyId);
|
||||
}
|
||||
}
|
||||
|
||||
sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyId)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
bodyburn-text-others = {$name}'s body burns to ash!
|
||||
bodyburn-text-others = {$name} burns to ash!
|
||||
|
|
|
|||
Loading…
Reference in New Issue