Fixes (#289)
* - 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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user