mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 11:42:27 +00:00
[MIRROR] Fixes SSEconomy not tracking free vending machine purchases [MDB IGNORE] (#16221)
* Fixes SSEconomy not tracking free vending machine purchases (#69876) * Fixes SSEconomy not tracking free vending machine purchases Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
@@ -220,7 +220,7 @@ SUBSYSTEM_DEF(economy)
|
|||||||
* * vendor: The object or structure medium that is charging the user. For Vending machines that's the machine, for payment component that's the parent, cargo that's the crate, etc.
|
* * vendor: The object or structure medium that is charging the user. For Vending machines that's the machine, for payment component that's the parent, cargo that's the crate, etc.
|
||||||
*/
|
*/
|
||||||
/datum/controller/subsystem/economy/proc/track_purchase(datum/bank_account/account, price_to_use, vendor)
|
/datum/controller/subsystem/economy/proc/track_purchase(datum/bank_account/account, price_to_use, vendor)
|
||||||
if(!account || !price_to_use || !vendor)
|
if(!account || isnull(price_to_use) || !vendor)
|
||||||
CRASH("Track purchases was missing an argument! (Account, Price, or Vendor.)")
|
CRASH("Track purchases was missing an argument! (Account, Price, or Vendor.)")
|
||||||
|
|
||||||
audit_log += list(list(
|
audit_log += list(list(
|
||||||
|
|||||||
Reference in New Issue
Block a user