mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Fixes journals, quik-pay and credit symbol use (#21844)
Three for one. - The ability to write in journals held in ones hand was restored. - The quik-pay quick-input now works properly. - The credit symbol use was standardised to use 5电 and inserted into a few places where it used credit instead.
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
return
|
||||
I = user.GetIdCard()
|
||||
if(istype(I) && (ACCESS_CARGO in I.access))
|
||||
var/price_guess = text2num(sanitizeSafe( tgui_input_text(user, "How much do you wish to withdraw? Remaining cash: [credit]", "QuikPay", 0, 10), 10))
|
||||
var/price_guess = text2num(sanitizeSafe( tgui_input_text(user, "How much do you wish to withdraw? Remaining credits: [credit]电", "QuikPay", 0, 10), 10))
|
||||
if(isnull(price_guess) || price_guess == 0)
|
||||
return
|
||||
price_guess = max(0, round(price_guess, 0.01))
|
||||
@@ -375,10 +375,10 @@
|
||||
var/item_amount = bought_item["amount"]
|
||||
var/item_price = items_to_price[item_name]
|
||||
|
||||
receipt += "<li><b>[item_name]</b>: [item_amount] x [item_price]cr: [item_amount * item_price]cr<br>"
|
||||
receipt += "<li><b>[item_name]</b>: [item_amount] x [item_price]电: [item_amount * item_price]电<br>"
|
||||
sum += item_price * item_amount
|
||||
|
||||
receipt += "</ul><HR>Total:</b> [sum]cr<br>"
|
||||
receipt += "</ul><HR>Total:</b> [sum]电<br>"
|
||||
playsound(src, 'sound/machines/ping.ogg', 25, 1)
|
||||
audible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] \The [src] pings."))
|
||||
. = TRUE
|
||||
|
||||
Reference in New Issue
Block a user