mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
[MIRROR] NT Pay app. Money send on distance, transaction log! [MDB IGNORE] (#16672)
* NT Pay app. Money send on distance, transaction log! (#70108) * base * reasons * GetToken proc, with a many remarks * Add a way to change reason in transfer_money proc. Add a reasons. * Reason to use the app. Commission. Standard application. * Apply suggestions from code review - Tralezab Co-authored-by: tralezab <40974010+tralezab@ users.noreply.github.com> * Tralezab & jlsnow301 advices. New format(everywhere) * Nanotrasen * Refactor TGUI(not me:( ). Fix useless capitalize * Update code/modules/economy/account.dm * Trans transforms in transaction * coMmission. little autodoc mistalke. Translation != Transaction * oops * Merge Conflict * ... * back feats * mistakes bye! * ну да Co-authored-by: tralezab <40974010+tralezab@ users.noreply.github.com> * NT Pay app. Money send on distance, transaction log! Co-authored-by: Yaroslav Nurkov <78199449+AnywayFarus@users.noreply.github.com> Co-authored-by: tralezab <40974010+tralezab@ users.noreply.github.com>
This commit is contained in:
co-authored by
tralezab
Yaroslav Nurkov
parent
13f2547742
commit
73ae6472a7
@@ -276,8 +276,8 @@
|
||||
var/datum/bank_account/credit_card_details = user.get_bank_account()
|
||||
if(user in gun_owners)
|
||||
if(multi_payment && credit_card_details)
|
||||
if(credit_card_details.adjust_money(-payment_amount))
|
||||
pin_owner.registered_account.adjust_money(payment_amount)
|
||||
if(credit_card_details.adjust_money(-payment_amount, "Firing Pin: Gun Rent"))
|
||||
pin_owner.registered_account.adjust_money(payment_amount, "Firing Pin: Payout For Gun Rent")
|
||||
return TRUE
|
||||
to_chat(user, span_warning("ERROR: User balance insufficent for successful transaction!"))
|
||||
return FALSE
|
||||
@@ -290,8 +290,8 @@
|
||||
return FALSE
|
||||
switch(license_request)
|
||||
if("Yes")
|
||||
if(credit_card_details.adjust_money(-payment_amount))
|
||||
pin_owner.registered_account.adjust_money(payment_amount)
|
||||
if(credit_card_details.adjust_money(-payment_amount, "Firing Pin: Gun License"))
|
||||
pin_owner.registered_account.adjust_money(payment_amount, "Firing Pin: Gun License Bought")
|
||||
gun_owners += user
|
||||
to_chat(user, span_notice("Gun license purchased, have a secure day!"))
|
||||
active_prompt = FALSE
|
||||
|
||||
Reference in New Issue
Block a user