fix burning to ash not working on all mobs (#27158)

(cherry picked from commit c7bbaa48a4e70dc8e93385af2583843766b8d1dd)
This commit is contained in:
Whisper 2024-04-20 10:44:10 -04:00 committed by NullWanderer
parent ada6f1ea71
commit 5b64262401
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -1 +1 @@
bodyburn-text-others = {$name}'s body burns to ash!
bodyburn-text-others = {$name} burns to ash!