mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Sends transaction info to PDAs as alert to user with banking app (#31801)
* Sends transaction info to PDAs with banking app * Typo * More fixes * More fixes * Better approach * Associates these vars properly * Cargo stuff * ATMs * Fix * PDAs * Nicer this way actually * Some misc stuff * Near last of these * And last one * Confirmed working in game, now for a slight optimisation * Fixing runtime * Some comments * Removing unused code Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -167,14 +167,7 @@
|
||||
to_chat(M, "[bicon(my_artifact)]<span class='notice'>Remaining balance ([using_account]): [D.money]$</span>")
|
||||
|
||||
//create an entry on the buy's account's transaction log
|
||||
var/datum/transaction/T = new()
|
||||
T.target_name = "[my_artifact.artifact_id]"
|
||||
T.purpose = "Purchase of [dosh * 2] seconds of activation."
|
||||
T.amount = "-[transaction_amount]"
|
||||
T.source_terminal = my_artifact.artifact_id
|
||||
T.date = current_date_string
|
||||
T.time = worldtime2text()
|
||||
D.transaction_log.Add(T)
|
||||
new /datum/transaction(D, "Purchase of [dosh * 2] seconds of activation.", "-[transaction_amount]", my_artifact.artifact_id, "[my_artifact.artifact_id]")
|
||||
|
||||
// Vend the item
|
||||
time_left += bought_time
|
||||
|
||||
Reference in New Issue
Block a user