polymorph popup fixes (#35796)

polymorph fixes
This commit is contained in:
slarticodefast
2025-03-12 19:48:45 +01:00
committed by GitHub
parent 45e5fbfcdf
commit d8ac1524ef
4 changed files with 24 additions and 5 deletions

View File

@@ -416,7 +416,7 @@ public abstract partial class SharedBuckleSystem
public bool TryUnbuckle(Entity<BuckleComponent?> buckle, EntityUid? user, bool popup)
{
if (!Resolve(buckle.Owner, ref buckle.Comp))
if (!Resolve(buckle.Owner, ref buckle.Comp, false))
return false;
if (!CanUnbuckle(buckle, user, popup, out var strap))

View File

@@ -128,6 +128,18 @@ public sealed partial record PolymorphConfiguration
/// </summary>
[DataField]
public SoundSpecifier? ExitPolymorphSound;
/// <summary>
/// If not null, this popup will be displayed when being polymorphed into something.
/// </summary>
[DataField]
public LocId? PolymorphPopup = "polymorph-popup-generic";
/// <summary>
/// If not null, this popup will be displayed when when being reverted from a polymorph.
/// </summary>
[DataField]
public LocId? ExitPolymorphPopup = "polymorph-revert-popup-generic";
}
public enum PolymorphInventoryChange : byte