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:
kane-f
2022-01-11 18:02:43 +00:00
committed by GitHub
parent 64966cbc4f
commit c4063b988e
11 changed files with 103 additions and 284 deletions

View File

@@ -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