Skip to content

Commit

Permalink
Cherry-picked commit 85f4b43 from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
SimpleStation14 authored and keronshb committed Mar 20, 2024
1 parent 3bf08c7 commit c8daf86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Content.Server/Store/Systems/StoreSystem.Ui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Content.Server.Stack;
using Content.Server.Store.Components;
using Content.Shared.Actions;
using Content.Shared.Administration.Logs;
using Content.Shared.Database;
using Content.Shared.FixedPoint;
using Content.Shared.Hands.EntitySystems;
Expand Down Expand Up @@ -323,7 +324,9 @@ private void OnRequestRefund(EntityUid uid, StoreComponent component, StoreReque
if (!component.RefundAllowed || component.BoughtEntities.Count == 0)
return;

for (var i = component.BoughtEntities.Count; i >= 0; i--)
_admin.Add(LogType.StoreRefund, LogImpact.Low, $"{ToPrettyString(buyer):player} has refunded their purchases from {ToPrettyString(uid):store}");

for (var i = component.BoughtEntities.Count - 1; i >= 0; i--)
{
var purchase = component.BoughtEntities[i];

Expand Down
2 changes: 2 additions & 0 deletions Content.Shared.Database/LogType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,6 @@ public enum LogType
/// </summary>
ChatRateLimited = 87,
AtmosTemperatureChanged = 88,
DeviceNetwork = 89,
StoreRefund = 90
}

0 comments on commit c8daf86

Please sign in to comment.