mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +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:
@@ -31,7 +31,7 @@
|
||||
|
||||
// Displayed on bounty UI screen.
|
||||
/datum/bounty/proc/reward_string()
|
||||
return "[reward] Credits"
|
||||
return "[reward]电"
|
||||
|
||||
/datum/bounty/proc/can_claim()
|
||||
return !claimed
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
var/price = SScargo.export_item_and_contents(O, FALSE, FALSE, dry_run=TRUE)
|
||||
if(price)
|
||||
to_chat(user, SPAN_NOTICE("Scanned [O], value: <b>[price]</b> credits[O.contents.len ? " (contents included)" : ""]."))
|
||||
to_chat(user, SPAN_NOTICE("Scanned [O], value: <b>[price]</b>电[O.contents.len ? " (contents included)" : ""]."))
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("Scanned [O], no export value."))
|
||||
if(SScargo.bounty_ship_item_and_contents(O, dry_run=TRUE))
|
||||
|
||||
@@ -132,7 +132,7 @@ then the player gets the profit from selling his own wasted time.
|
||||
/datum/export/proc/total_printout(contr = 0, emag = 0)
|
||||
if(!total_cost && !total_amount)
|
||||
return ""
|
||||
var/msg = "[total_cost] credits: Received [total_amount] "
|
||||
var/msg = "[total_cost]电: Received [total_amount]电 "
|
||||
if(total_cost > 0)
|
||||
msg = "+" + msg
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
if (I.fine == 0)
|
||||
dat += "<br>Brig Sentence: [I.getBrigSentence()] <br>"
|
||||
else
|
||||
dat += "Fine: [I.fine] Credits<br>"
|
||||
dat += "Fine: [I.fine]电<br>"
|
||||
dat += "Notes: <br>"
|
||||
if (I.notes != "")
|
||||
dat += nl2br(I.notes)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -180,8 +180,8 @@
|
||||
var/item_price = items_to_price[item_name]
|
||||
sum += item_price
|
||||
|
||||
receipt += "<b>[name]</b>: [item_name] x[item_amount] at [item_price]cr each<br>"
|
||||
ticket += "<b>[name]</b>: [item_name] x[item_amount] at [item_price]cr each<br>"
|
||||
receipt += "<b>[name]</b>: [item_name] x[item_amount] at [item_price]电 each<br>"
|
||||
ticket += "<b>[name]</b>: [item_name] x[item_amount] at [item_price]电 each<br>"
|
||||
receipt += "<hr><b>Total:</b> [sum]电"
|
||||
ticket += "<hr><b>Total:</b> [sum]电"
|
||||
sum = sum
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/obj/item/spacecash
|
||||
name = "0 credit chip"
|
||||
desc = "It's worth 0 credits."
|
||||
desc = "It's worth 0电."
|
||||
gender = PLURAL
|
||||
icon = 'icons/obj/cash.dmi'
|
||||
icon_state = "spacecash1"
|
||||
@@ -38,7 +38,7 @@
|
||||
h_user.drop_from_inventory(src)
|
||||
h_user.drop_from_inventory(bundle)
|
||||
h_user.put_in_hands(bundle)
|
||||
to_chat(user, SPAN_NOTICE("You add [src.worth] credits worth of money to the bundles.<br>It holds [bundle.worth] credits now."))
|
||||
to_chat(user, SPAN_NOTICE("You add [src.worth]电 to the bundles.<br>It holds [bundle.worth]电 now."))
|
||||
qdel(src)
|
||||
|
||||
/proc/coin_typepath_suffix(var/amount)
|
||||
@@ -55,7 +55,7 @@
|
||||
name = "credit chips"
|
||||
icon_state = ""
|
||||
gender = PLURAL
|
||||
desc = "They are worth 0 credits."
|
||||
desc = "They are worth 0电."
|
||||
worth = 0
|
||||
|
||||
/obj/item/spacecash/bundle/update_icon()
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
AddOverlays(ovr)
|
||||
UpdateOverlays() // The delay looks weird, so we force an update immediately.
|
||||
src.desc = "A bundle of Biesel Standard Credits. Combined, this is worth [worth] credits."
|
||||
src.desc = "A bundle of Biesel Standard Credits. Combined, this is worth [worth]电."
|
||||
|
||||
/obj/item/spacecash/bundle/attack_self(mob/user as mob)
|
||||
var/amount = tgui_input_number(user, "How many credits do you want to take out? (0 to [src.worth])", "Take Money", 5, worth, 0, 0, round_value = FALSE)
|
||||
@@ -171,49 +171,49 @@
|
||||
/obj/item/spacecash/c5
|
||||
name = "5 credit chip"
|
||||
icon_state = "spacecash5"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 5 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 5电."
|
||||
worth = 5
|
||||
|
||||
/obj/item/spacecash/c10
|
||||
name = "10 credit chip"
|
||||
icon_state = "spacecash10"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 10 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 10电."
|
||||
worth = 10
|
||||
|
||||
/obj/item/spacecash/c20
|
||||
name = "20 credit chip"
|
||||
icon_state = "spacecash20"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 20 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 20电."
|
||||
worth = 20
|
||||
|
||||
/obj/item/spacecash/c50
|
||||
name = "50 credit chip"
|
||||
icon_state = "spacecash50"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 50 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 50电."
|
||||
worth = 50
|
||||
|
||||
/obj/item/spacecash/c100
|
||||
name = "100 credit chip"
|
||||
icon_state = "spacecash100"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 100 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 100电."
|
||||
worth = 100
|
||||
|
||||
/obj/item/spacecash/c200
|
||||
name = "200 credit chip"
|
||||
icon_state = "spacecash200"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 200 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 200电."
|
||||
worth = 200
|
||||
|
||||
/obj/item/spacecash/c500
|
||||
name = "500 credit chip"
|
||||
icon_state = "spacecash500"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 500 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 500电."
|
||||
worth = 500
|
||||
|
||||
/obj/item/spacecash/c1000
|
||||
name = "1000 credit chip"
|
||||
icon_state = "spacecash1000"
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 1000 credits."
|
||||
desc = "A Biesel Standard Credit chip, used for transactions large and small. This one is worth 1000电."
|
||||
worth = 1000
|
||||
|
||||
/obj/item/spacecash/coin
|
||||
@@ -238,25 +238,25 @@
|
||||
/obj/item/spacecash/coin/c001
|
||||
name = "1 cent unie coin"
|
||||
icon_state = "spacecash0.01"
|
||||
desc = "A Biesel Standard Credit coin, called a 'unie'. This is worth 0.01 credits."
|
||||
desc = "A Biesel Standard Credit coin, called a 'unie'. This is worth 0.01电."
|
||||
worth = 0.01
|
||||
|
||||
/obj/item/spacecash/coin/c005
|
||||
name = "5 cent quin coin"
|
||||
icon_state = "spacecash0.05"
|
||||
desc = "A Biesel Standard Credit coin, called a 'quin'. This is worth 0.05 credits."
|
||||
desc = "A Biesel Standard Credit coin, called a 'quin'. This is worth 0.05电."
|
||||
worth = 0.05
|
||||
|
||||
/obj/item/spacecash/coin/c010
|
||||
name = "10 cent dece coin"
|
||||
icon_state = "spacecash0.10"
|
||||
desc = "A Biesel Standard Credit coin, called a 'dece'. This is worth 0.10 credits."
|
||||
desc = "A Biesel Standard Credit coin, called a 'dece'. This is worth 0.10电."
|
||||
worth = 0.10
|
||||
|
||||
/obj/item/spacecash/coin/c025
|
||||
name = "25 cent quarter coin"
|
||||
icon_state = "spacecash0.25"
|
||||
desc = "A Biesel Standard Credit coin, called a 'quarter'. This is worth 0.25 credits."
|
||||
desc = "A Biesel Standard Credit coin, called a 'quarter'. This is worth 0.25电."
|
||||
worth = 0.25
|
||||
|
||||
/proc/spawn_money(var/sum, spawnloc, mob/living/carbon/human/human_user as mob)
|
||||
|
||||
@@ -203,10 +203,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
|
||||
@@ -259,5 +259,6 @@
|
||||
price_guess = max(0, round(price_guess, 0.01))
|
||||
|
||||
items += list(list("name" = "[name_guess]", "price" = price_guess))
|
||||
items_to_price[name_guess] = price_guess
|
||||
|
||||
to_chat(user, SPAN_NOTICE("[src]: added '[name_guess]' for [price_guess]."))
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
var/author = "[SSatlas.current_map.company_name] Editor"
|
||||
var/channel = "Tau Ceti Daily"
|
||||
|
||||
var/body = "Tau Ceti Daily wishes to congratulate <b>[winner_name]</b> for recieving the Tau Ceti Stellar Slam Lottery, and receiving the out of this world sum of [winner_sum] credits!"
|
||||
var/body = "Tau Ceti Daily wishes to congratulate <b>[winner_name]</b> for recieving the Tau Ceti Stellar Slam Lottery, and receiving the out of this world sum of [winner_sum]电!"
|
||||
if(!deposit_success)
|
||||
body += "<br>Unfortunately, we were unable to verify the account details provided, so we were unable to transfer the money. Send a cheque containing the sum of 5000 credits to ND 'Stellar Slam' office on the Tau Ceti gateway containing updated details, and your winnings'll be re-sent within the month."
|
||||
body += "<br>Unfortunately, we were unable to verify the account details provided, so we were unable to transfer the money. Send a cheque containing the sum of 5000电 to ND 'Stellar Slam' office on the Tau Ceti gateway containing updated details, and your winnings'll be re-sent within the month."
|
||||
var/datum/feed_channel/ch = SSnews.GetFeedChannel(channel)
|
||||
SSnews.SubmitArticle(body, author, ch, null, 1)
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
else
|
||||
. += "\t<b>BRIG</b>: <i>[brig_sentence] minutes</i><br>"
|
||||
else if ( fine != 0 )
|
||||
. += "As decided by the arbiter(s), they have been fined [fine] credits.<br>"
|
||||
. += "As decided by the arbiter(s), they have been fined [fine]电.<br>"
|
||||
else
|
||||
. += "As decided by the arbiter(s), they will serve no time for their crimes.<br>"
|
||||
. += "<br><table>"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
if(!istype(paper) || paper.loc != src)
|
||||
return
|
||||
var/obj/item/pen = usr.get_inactive_hand()
|
||||
if(!pen || !pen.tool_behaviour == TOOL_PEN)
|
||||
if(!pen || pen.tool_behaviour != TOOL_PEN)
|
||||
pen = usr.get_active_hand()
|
||||
if(pen?.tool_behaviour == TOOL_PEN)
|
||||
paper.attackby(pen, usr)
|
||||
|
||||
Reference in New Issue
Block a user