Einstein-Engines icon indicating copy to clipboard operation
Einstein-Engines copied to clipboard

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

Open SimpleStation14 opened this issue 9 months ago • 0 comments

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:

  • Status: Needs Review

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

SimpleStation14 avatar May 03 '24 15:05 SimpleStation14