* - fix: Ling fixes.

* - fix: Fix ghasp identity.

* - fix: Low temp slowdown fix.

* - fix: Crossbow fix.

* - fix: Fix gamerules.

* - fix: Fix shadow shackles.

* - fix: Cleanup refund.

* - fix: Can't pry runic door.

* - fix: Fix crash.

* - fix: Fix mood.

* - fix: Fix dictionary.
This commit is contained in:
Aviu00
2024-04-22 00:07:27 +09:00
committed by GitHub
parent bf0a124b05
commit 6272da2bb3
20 changed files with 115 additions and 47 deletions

View File

@@ -91,10 +91,6 @@ public sealed partial class StoreComponent : Component
[DataField]
public EntityUid? StartingMap;
// Miracle
[DataField]
public bool Refunds;
#region audio
/// <summary>
/// The sound played to the buyer when a purchase is succesfully made.

View File

@@ -173,7 +173,7 @@ public sealed partial class StoreSystem
}
}
if (!IsOnStartingMap(uid, component) || !component.Refunds) // Miracle edit
if (!IsOnStartingMap(uid, component))
component.RefundAllowed = false;
//subtract the cash
@@ -337,7 +337,7 @@ public sealed partial class StoreSystem
if (args.Session.AttachedEntity is not { Valid: true } buyer)
return;
if (!IsOnStartingMap(uid, component) || !component.Refunds) // Miracle edit
if (!IsOnStartingMap(uid, component))
{
component.RefundAllowed = false;
UpdateUserInterface(buyer, uid, component);
@@ -403,4 +403,4 @@ public sealed partial class StoreSystem
component.RefundAllowed = false;
}
}
}