]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Store Refund - Add more disable scenerios & time to disable refund. (#34671)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Sat, 15 Feb 2025 16:17:29 +0000 (11:17 -0500)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2025 16:17:29 +0000 (17:17 +0100)
commit0cb11241d79c8e51f5a1391c1fc49bc063144ccc
tree288a8cf427fa8ea37b219b0ff11279e60c0090ca
parent71b5133a5395b3ebe0d2af31055d6dcaa65a1b78
Store Refund - Add more disable scenerios & time to disable refund. (#34671)

* Puts disable refund logic into a helper method. Removes action check. Disables refund on action use.

* Adds check if refund is disabled for the store already

* Adds a way to disable refunds based on time

* Checks if the ent is on the starting map and the end time is below the current time before disabling refund

* Replaces instances of component.RefundAllowed = false with DisableRefund for more consistency and easier tracking

* Adds methods to handle inhand and shooting events

* Removes gamestates

---------

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Content.Server/Store/StoreRefundComponent.cs
Content.Server/Store/Systems/StoreSystem.Refund.cs
Content.Server/Store/Systems/StoreSystem.Ui.cs
Content.Server/Store/Systems/StoreSystem.cs