mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
Standerdizing currency symbols Part 2 (#94259)
## About The Pull Request Converts almost all non-constant, non-tgui usages of all variantions of "credit" and "cr" Everything seems in order, tested most the currencies. <img width="905" height="119" alt="image" src="https://github.com/user-attachments/assets/3fa005a7-a114-426c-9646-b81f68bc2dec" /> <img width="255" height="128" alt="image" src="https://github.com/user-attachments/assets/14c83b54-4fd9-4bee-838f-5b1c03939d9a" /> ## Why It's Good For The Game Same justification as https://github.com/tgstation/tgstation/pull/94128 Just easier to mantain/adjust the grammer/names of our money ## Changelog 🆑 spellcheck: minor cleanup on some usecases of "credits" /🆑
This commit is contained in:
@@ -234,7 +234,7 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet)
|
||||
//they only made their money back, don't tell them they won anything.
|
||||
if((money_won - text2num(winner[2])) == 0)
|
||||
continue
|
||||
winner_account.bank_card_talk("You won [money_won]cr from having a correct guess on [name]!")
|
||||
winner_account.bank_card_talk("You won [money_won][MONEY_SYMBOL] from having a correct guess on [name]!")
|
||||
|
||||
///Puts a bank account's money bet on a given option.
|
||||
/datum/active_bet/proc/bet_money(datum/bank_account/better, money_betting, option_betting)
|
||||
@@ -255,7 +255,7 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet)
|
||||
if(!better.adjust_money(-money_adding_in, "Gambling on [name]."))
|
||||
return
|
||||
total_amount_bet += money_adding_in
|
||||
better.bank_card_talk("Additional [money_adding_in]cr deducted for your bet on [name].")
|
||||
better.bank_card_talk("Additional [money_adding_in][MONEY_SYMBOL] deducted for your bet on [name].")
|
||||
existing_bets[2] = "[money_betting]"
|
||||
return
|
||||
//taking it all out, we remove them from the list so they aren't a winner with bets of 0.
|
||||
@@ -269,7 +269,7 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet)
|
||||
if(text2num(existing_bets[2]) > money_betting)
|
||||
var/money_taking_out = text2num(existing_bets[2]) - money_betting
|
||||
total_amount_bet -= money_taking_out
|
||||
better.bank_card_talk("Refunded [money_taking_out]cr for taking money out of your bet on [name].")
|
||||
better.bank_card_talk("Refunded [money_taking_out][MONEY_SYMBOL] for taking money out of your bet on [name].")
|
||||
better.adjust_money(money_taking_out, "Refund from gambling on [name].")
|
||||
existing_bets[2] = "[money_betting]"
|
||||
return
|
||||
@@ -278,7 +278,7 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet)
|
||||
return
|
||||
total_amount_bet += money_betting
|
||||
options[option_betting] += list(list(better, "[money_betting]"))
|
||||
better.bank_card_talk("Deducted [money_betting]cr for your bet on [name].")
|
||||
better.bank_card_talk("Deducted [money_betting][MONEY_SYMBOL] for your bet on [name].")
|
||||
|
||||
///Cancels your bet, removing your bet and refunding your money.
|
||||
/datum/active_bet/proc/cancel_bet(datum/bank_account/better)
|
||||
@@ -287,7 +287,7 @@ GLOBAL_LIST_EMPTY_TYPED(active_bets, /datum/active_bet)
|
||||
if(existing_bets[1] == better)
|
||||
var/money_refunding = text2num(existing_bets[2])
|
||||
total_amount_bet -= money_refunding
|
||||
better.bank_card_talk("Refunded [money_refunding]cr for cancelling your bet on [name].")
|
||||
better.bank_card_talk("Refunded [money_refunding][MONEY_SYMBOL] for cancelling your bet on [name].")
|
||||
better.adjust_money(money_refunding, "Refunded: changed bet for [name].")
|
||||
options[option] -= list(existing_bets)
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
playsound(computer, 'sound/machines/buzz/buzz-sigh.ogg', 30, TRUE)
|
||||
return
|
||||
request_target.transfer_money(current_user, active_request.value, "Bounties: Request Completed")
|
||||
computer.say("Paid out [active_request.value] credits.")
|
||||
computer.say("Paid out [active_request.value] [MONEY_NAME].")
|
||||
GLOB.request_list.Remove(active_request)
|
||||
return TRUE
|
||||
if("clear")
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
return NT_PAY_STATUS_INVALID_MONEY
|
||||
if(token == current_user.pay_token)
|
||||
if(user)
|
||||
to_chat(user, span_notice("You can't send credits to yourself."))
|
||||
to_chat(user, span_notice("You can't send [MONEY_NAME] to yourself."))
|
||||
return NT_PAY_SATUS_SENDER_IS_RECEIVER
|
||||
|
||||
for(var/account in SSeconomy.bank_accounts_by_id)
|
||||
@@ -100,12 +100,12 @@
|
||||
current_user.bank_card_talk("You cannot afford it.")
|
||||
return NT_PAY_STATUS_INVALID_MONEY
|
||||
|
||||
recipient.bank_card_talk("You received [money_to_send] credit(s). Reason: transfer from [current_user.account_holder]")
|
||||
recipient.bank_card_talk("You received [money_to_send] [MONEY_NAME](s). Reason: transfer from [current_user.account_holder]")
|
||||
recipient.transfer_money(current_user, money_to_send)
|
||||
for(var/obj/item/card/id/id_card as anything in recipient.bank_cards)
|
||||
SEND_SIGNAL(id_card, COMSIG_ID_CARD_NTPAY_MONEY_RECEIVED, computer, money_to_send)
|
||||
|
||||
current_user.bank_card_talk("You send [money_to_send] credit(s) to [recipient.account_holder]. Now you have [current_user.account_balance] credit(s)")
|
||||
current_user.bank_card_talk("You send [money_to_send] [MONEY_NAME](s) to [recipient.account_holder]. Now you have [current_user.account_balance] [MONEY_NAME](s)")
|
||||
|
||||
return NT_PAY_STATUS_SUCCESS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user