Simple-Station / Einstein-Engines

A Space Station 14 upstream repository, inspired by Baystation12.
GNU Affero General Public License v3.0
46 stars 123 forks source link

Mirror: Fixes store purchase events and adds support to raise a directed event #364

Closed SimpleStation14 closed 4 months ago

SimpleStation14 commented 5 months ago

Mirror of PR #26389: Fixes store purchase events and adds support to raise a directed event from space-wizards space-wizards/space-station-14

4dced51f0d8d008714a14675b48c8fa2b7fa0ace

PR opened by keronshb at 2024-03-24 14:16:44 UTC


PR changed 2 files with 8 additions and 3 deletions.

The PR had the following labels:


Original Body

> > > > ## About the PR > > > When testing around some things with the magic PR I found that the purchase event wasn't being compared correctly. Also I added support to raise the purchase event directed at the buyer instead of just a broadcast event. > > ## Technical details > > The equals method will now check for purchase event type instead of comparing the references. To make this stronger we should talk about creating a base store purchase event class. > > For directing the event I added a bool to raise on user and we check if that's true. > > ## Media > > > - [x] I have added screenshots/videos to this PR showcasing its changes ingame, **or** this PR does not require an ingame showcase