]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Adds a refund button & action upgrades for stores (#24518)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Sun, 4 Feb 2024 00:48:51 +0000 (19:48 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 00:48:51 +0000 (11:48 +1100)
commit257909fd97c05bfde837a76afe5c5c612afc9f28
tree9c09c7c018a2306f6c105ed2c4d9b193d354e0b8
parentc15b0691ec452e543a3cc6894a28bb409dbc65f8
Adds a refund button & action upgrades for stores (#24518)

* adds refunds to stores

* Adds method to check for starting map

* comments, datafields, some requested changes

* turns event into ref event

* Adds datafields

* Switches to entity terminating event

* Changes store entity to be nullable and checks if store is terminating to remove reference.

* Tryadd instead of containskey

* Adds a refund disable method, disables refund on bought ent container changes if not an action

* Removes datafield specification

* Readds missing using statement

* Removes unused using statements

* What the heck is listing data

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Content.Client/Store/Ui/StoreBoundUserInterface.cs
Content.Client/Store/Ui/StoreMenu.xaml
Content.Client/Store/Ui/StoreMenu.xaml.cs
Content.Server/Store/Components/StoreComponent.cs
Content.Server/Store/StoreRefundComponent.cs [new file with mode: 0644]
Content.Server/Store/Systems/StoreSystem.Refund.cs [new file with mode: 0644]
Content.Server/Store/Systems/StoreSystem.Ui.cs
Content.Server/Store/Systems/StoreSystem.cs
Content.Shared/Store/ListingPrototype.cs
Content.Shared/Store/StoreUi.cs