@@ -5,6 +5,7 @@ using Content.Server.PDA.Ringer;
|
|||||||
using Content.Server.Stack;
|
using Content.Server.Stack;
|
||||||
using Content.Server.Store.Components;
|
using Content.Server.Store.Components;
|
||||||
using Content.Shared.Actions;
|
using Content.Shared.Actions;
|
||||||
|
using Content.Shared.Administration.Logs;
|
||||||
using Content.Shared.Database;
|
using Content.Shared.Database;
|
||||||
using Content.Shared.FixedPoint;
|
using Content.Shared.FixedPoint;
|
||||||
using Content.Shared.Hands.EntitySystems;
|
using Content.Shared.Hands.EntitySystems;
|
||||||
@@ -321,6 +322,8 @@ public sealed partial class StoreSystem
|
|||||||
if (!component.RefundAllowed || component.BoughtEntities.Count == 0)
|
if (!component.RefundAllowed || component.BoughtEntities.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_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--)
|
for (var i = component.BoughtEntities.Count - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
var purchase = component.BoughtEntities[i];
|
var purchase = component.BoughtEntities[i];
|
||||||
|
|||||||
@@ -96,4 +96,5 @@ public enum LogType
|
|||||||
ChatRateLimited = 87,
|
ChatRateLimited = 87,
|
||||||
AtmosTemperatureChanged = 88,
|
AtmosTemperatureChanged = 88,
|
||||||
DeviceNetwork = 89,
|
DeviceNetwork = 89,
|
||||||
|
StoreRefund = 90
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user