mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Goon-style chat.
Credits to goon for most of the work.
This commit is contained in:
@@ -29,16 +29,16 @@
|
||||
|
||||
if(cur_assembly)
|
||||
if(try_insert_assembly())
|
||||
to_chat(user, "<span class='notice'>\icon[src] [src] inserts it's fuel rod assembly into an injector.</span>")
|
||||
to_chat(user, "<span class='notice'>[bicon(src)] [src] inserts it's fuel rod assembly into an injector.</span>")
|
||||
else
|
||||
if(eject_assembly())
|
||||
to_chat(user, "<span class='warning'>\icon[src] [src] ejects it's fuel assembly. Check the fuel injector status.</span>")
|
||||
to_chat(user, "<span class='warning'>[bicon(src)] [src] ejects it's fuel assembly. Check the fuel injector status.</span>")
|
||||
else if(try_draw_assembly())
|
||||
to_chat(user, "<span class='notice'>\icon[src] [src] draws a fuel rod assembly from an injector.</span>")
|
||||
to_chat(user, "<span class='notice'>[bicon(src)] [src] draws a fuel rod assembly from an injector.</span>")
|
||||
else if(try_draw_assembly())
|
||||
to_chat(user, "<span class='notice'>\icon[src] [src] draws a fuel rod assembly from an injector.</span>")
|
||||
to_chat(user, "<span class='notice'>[bicon(src)] [src] draws a fuel rod assembly from an injector.</span>")
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\icon[src] [src] was unable to draw a fuel rod assembly from an injector.</span>")
|
||||
to_chat(user, "<span class='warning'>[bicon(src)] [src] was unable to draw a fuel rod assembly from an injector.</span>")
|
||||
|
||||
/obj/machinery/rust_fuel_assembly_port/proc/try_insert_assembly()
|
||||
var/success = 0
|
||||
|
||||
@@ -71,9 +71,9 @@ var/const/max_assembly_amount = 300
|
||||
compressed_matter -= 10
|
||||
ejected = 1
|
||||
if(ejected)
|
||||
to_chat(usr, "<span class='notice'>\icon[src] [src] ejects some compressed matter units.</span>")
|
||||
to_chat(usr, "<span class='notice'>[bicon(src)] [src] ejects some compressed matter units.</span>")
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>\icon[src] there are no more compressed matter units in [src].</span>")
|
||||
to_chat(usr, "<span class='warning'>[bicon(src)] there are no more compressed matter units in [src].</span>")
|
||||
|
||||
if( href_list["activate"] )
|
||||
// to_chat(world, "<span class='notice'>New fuel rod assembly</span>")
|
||||
@@ -99,7 +99,7 @@ var/const/max_assembly_amount = 300
|
||||
if(fail)
|
||||
del(F)
|
||||
compressed_matter = old_matter
|
||||
to_chat(usr, "<span class='warning'>\icon[src] [src] flashes red: \'Out of matter.\'</span>")
|
||||
to_chat(usr, "<span class='warning'>[bicon(src)] [src] flashes red: \'Out of matter.\'</span>")
|
||||
else
|
||||
F.loc = src.loc//get_step(get_turf(src), src.dir)
|
||||
F.percent_depleted = 0
|
||||
|
||||
@@ -240,10 +240,10 @@
|
||||
|
||||
break
|
||||
if(success)
|
||||
src.visible_message("<span class='notice'>\icon[src] a green light flashes on [src].</span>")
|
||||
src.visible_message("<span class='notice'>[bicon(src)] a green light flashes on [src].</span>")
|
||||
updateDialog()
|
||||
else
|
||||
src.visible_message("<span class='warning'>\icon[src] a red light flashes on [src].</span>")
|
||||
src.visible_message("<span class='warning'>[bicon(src)] a red light flashes on [src].</span>")
|
||||
|
||||
/obj/machinery/power/rust_fuel_injector/verb/rotate_clock()
|
||||
set category = "Object"
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
del covered_turfs
|
||||
|
||||
for(var/mob/M in view(5,src))
|
||||
to_chat(M, "\icon[src] You hear heavy droning start up.")
|
||||
to_chat(M, "[bicon(src)] You hear heavy droning start up.")
|
||||
else
|
||||
for(var/obj/effect/energy_field/D in field)
|
||||
field.Remove(D)
|
||||
@@ -289,7 +289,7 @@
|
||||
D = null
|
||||
|
||||
for(var/mob/M in view(5,src))
|
||||
to_chat(M, "\icon[src] You hear heavy droning fade out.")
|
||||
to_chat(M, "[bicon(src)] You hear heavy droning fade out.")
|
||||
|
||||
//grab the border tiles in a circle around this machine
|
||||
/obj/machinery/shield_gen/proc/get_shielded_turfs()
|
||||
|
||||
@@ -49,7 +49,7 @@ log transactions
|
||||
if(linked_db && ( (linked_db.stat & NOPOWER) || !linked_db.activated ) )
|
||||
linked_db = null
|
||||
authenticated_account = null
|
||||
src.visible_message("<span class='warning'>\icon[src] [src] buzzes rudely, \"Connection to remote database lost.\"</span>")
|
||||
src.visible_message("<span class='warning'>[bicon(src)] [src] buzzes rudely, \"Connection to remote database lost.\"</span>")
|
||||
updateDialog()
|
||||
|
||||
if(ticks_left_timeout > 0)
|
||||
@@ -253,7 +253,7 @@ log transactions
|
||||
var/target_account_number = text2num(href_list["target_acc_number"])
|
||||
var/transfer_purpose = href_list["purpose"]
|
||||
if(linked_db.charge_to_account(target_account_number, authenticated_account.owner_name, transfer_purpose, machine_id, transfer_amount))
|
||||
to_chat(usr, "\icon[src]<span class='info'>Funds transfer successful.</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='info'>Funds transfer successful.</span>")
|
||||
authenticated_account.money -= transfer_amount
|
||||
|
||||
//create an entry in the account transaction log
|
||||
@@ -266,10 +266,10 @@ log transactions
|
||||
T.amount = "-[transfer_amount]"
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
else
|
||||
to_chat(usr, "\icon[src]<span class='warning'>Funds transfer failed.</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>Funds transfer failed.</span>")
|
||||
|
||||
else
|
||||
to_chat(usr, "\icon[src]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
if("view_screen")
|
||||
view_screen = text2num(href_list["view_screen"])
|
||||
if("change_security_level")
|
||||
@@ -303,11 +303,11 @@ log transactions
|
||||
T.time = worldtime2text()
|
||||
failed_account.transaction_log.Add(T)
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>\icon[src] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining.</span>")
|
||||
to_chat(usr, "<span class='warning'>[bicon(src)] Incorrect pin/account combination entered, [max_pin_attempts - number_incorrect_tries] attempts remaining.</span>")
|
||||
previous_account_number = tried_account_num
|
||||
playsound(src, 'sound/machines/buzz-sigh.ogg', 50, 1)
|
||||
else
|
||||
to_chat(usr, "<span class='warning'>\icon[src] incorrect pin/account combination entered.</span>")
|
||||
to_chat(usr, "<span class='warning'>[bicon(src)] incorrect pin/account combination entered.</span>")
|
||||
number_incorrect_tries = 0
|
||||
else
|
||||
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
|
||||
@@ -323,7 +323,7 @@ log transactions
|
||||
T.time = worldtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
|
||||
to_chat(usr, "<span class='notice'>\icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'</span>")
|
||||
to_chat(usr, "<span class='notice'>[bicon(src)] Access granted. Welcome user '[authenticated_account.owner_name].'</span>")
|
||||
|
||||
previous_account_number = tried_account_num
|
||||
if("withdrawal")
|
||||
@@ -351,7 +351,7 @@ log transactions
|
||||
T.time = worldtime2text()
|
||||
authenticated_account.transaction_log.Add(T)
|
||||
else
|
||||
to_chat(usr, "\icon[src]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
if("withdraw_to_wallet")
|
||||
var/amount = max(text2num(href_list["funds_amount"]),0)
|
||||
if(!held_card)
|
||||
@@ -383,7 +383,7 @@ log transactions
|
||||
T.time = worldtime2text()
|
||||
held_card.virtual_wallet.transaction_log.Add(T)
|
||||
else
|
||||
to_chat(usr, "\icon[src]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
if("deposit_from_wallet")
|
||||
var/amount = max(text2num(href_list["funds_amount"]),0)
|
||||
if(!held_card)
|
||||
@@ -415,7 +415,7 @@ log transactions
|
||||
T.time = worldtime2text()
|
||||
held_card.virtual_wallet.transaction_log.Add(T)
|
||||
else
|
||||
to_chat(usr, "\icon[src]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='warning'>You don't have enough funds to do that!</span>")
|
||||
if("balance_statement")
|
||||
if(authenticated_account)
|
||||
if(world.timeofday < lastprint + PRINT_DELAY)
|
||||
@@ -471,7 +471,7 @@ log transactions
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(istype(H.wear_id,/obj/item/weapon/storage/wallet))
|
||||
dispense_cash(arbitrary_sum,H.wear_id)
|
||||
to_chat(usr, "\icon[src]<span class='notice'>Funds were transferred into your physical wallet!</span>")
|
||||
to_chat(usr, "[bicon(src)]<span class='notice'>Funds were transferred into your physical wallet!</span>")
|
||||
return
|
||||
dispense_cash(arbitrary_sum,get_step(get_turf(src),turn(dir,180))) // Spawn on the ATM.
|
||||
|
||||
@@ -488,7 +488,7 @@ log transactions
|
||||
if(I)
|
||||
authenticated_account = linked_db.attempt_account_access(I.associated_account_number)
|
||||
if(authenticated_account)
|
||||
to_chat(human_user, "<span class='notice'>\icon[src] Access granted. Welcome user '[authenticated_account.owner_name].'</span>")
|
||||
to_chat(human_user, "<span class='notice'>[bicon(src)] Access granted. Welcome user '[authenticated_account.owner_name].'</span>")
|
||||
|
||||
//create a transaction log entry
|
||||
var/datum/transaction/T = new()
|
||||
|
||||
Reference in New Issue
Block a user