mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Changed pin to a 4 digit number. Game year standardised to this year +544.
This commit is contained in:
@@ -14,7 +14,7 @@ var/global/list/all_money_accounts = list()
|
|||||||
station_account = new()
|
station_account = new()
|
||||||
station_account.owner_name = "[station_name()] Station Account"
|
station_account.owner_name = "[station_name()] Station Account"
|
||||||
station_account.account_number = rand(111111, 999999)
|
station_account.account_number = rand(111111, 999999)
|
||||||
station_account.remote_access_pin = rand(1111, 111111)
|
station_account.remote_access_pin = rand(1000, 9999)
|
||||||
station_account.money = 75000
|
station_account.money = 75000
|
||||||
|
|
||||||
//create an entry in the account transaction log for when it was created
|
//create an entry in the account transaction log for when it was created
|
||||||
@@ -36,7 +36,7 @@ var/global/list/all_money_accounts = list()
|
|||||||
var/datum/money_account/department_account = new()
|
var/datum/money_account/department_account = new()
|
||||||
department_account.owner_name = "[department] Account"
|
department_account.owner_name = "[department] Account"
|
||||||
department_account.account_number = rand(111111, 999999)
|
department_account.account_number = rand(111111, 999999)
|
||||||
department_account.remote_access_pin = rand(1111, 111111)
|
department_account.remote_access_pin = rand(1000, 9999)
|
||||||
department_account.money = 5000
|
department_account.money = 5000
|
||||||
|
|
||||||
//create an entry in the account transaction log for when it was created
|
//create an entry in the account transaction log for when it was created
|
||||||
@@ -62,7 +62,7 @@ var/global/list/all_money_accounts = list()
|
|||||||
//create a new account
|
//create a new account
|
||||||
var/datum/money_account/M = new()
|
var/datum/money_account/M = new()
|
||||||
M.owner_name = new_owner_name
|
M.owner_name = new_owner_name
|
||||||
M.remote_access_pin = rand(1111, 111111)
|
M.remote_access_pin = rand(1000, 9999)
|
||||||
M.money = starting_funds
|
M.money = starting_funds
|
||||||
|
|
||||||
//create an entry in the account transaction log for when it was created
|
//create an entry in the account transaction log for when it was created
|
||||||
@@ -161,7 +161,7 @@ var/global/list/all_money_accounts = list()
|
|||||||
vendor_account = department_accounts["Vendor"]
|
vendor_account = department_accounts["Vendor"]
|
||||||
|
|
||||||
if(!current_date_string)
|
if(!current_date_string)
|
||||||
current_date_string = "[num2text(rand(1,31))] [pick("January","February","March","April","May","June","July","August","September","October","November","December")], 2557"
|
current_date_string = "[num2text(rand(1,31))] [pick("January","February","March","April","May","June","July","August","September","October","November","December")], [game_year]"
|
||||||
|
|
||||||
machine_id = "[station_name()] Acc. DB #[num_financial_terminals++]"
|
machine_id = "[station_name()] Acc. DB #[num_financial_terminals++]"
|
||||||
|
|
||||||
|
|||||||
@@ -432,7 +432,7 @@
|
|||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(src.active2.fields[text("com_[]", counter)])
|
while(src.active2.fields[text("com_[]", counter)])
|
||||||
counter++
|
counter++
|
||||||
src.active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
src.active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
|
|
||||||
if (href_list["del_c"])
|
if (href_list["del_c"])
|
||||||
if ((istype(src.active2, /datum/data/record) && src.active2.fields[text("com_[]", href_list["del_c"])]))
|
if ((istype(src.active2, /datum/data/record) && src.active2.fields[text("com_[]", href_list["del_c"])]))
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ What a mess.*/
|
|||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(active2.fields[text("com_[]", counter)])
|
while(active2.fields[text("com_[]", counter)])
|
||||||
counter++
|
counter++
|
||||||
active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
|
|
||||||
if ("Delete Record (ALL)")
|
if ("Delete Record (ALL)")
|
||||||
if (active1)
|
if (active1)
|
||||||
|
|||||||
@@ -1371,7 +1371,7 @@
|
|||||||
/obj/mecha/proc/get_log_html()
|
/obj/mecha/proc/get_log_html()
|
||||||
var/output = "<html><head><title>[src.name] Log</title></head><body style='font: 13px 'Courier', monospace;'>"
|
var/output = "<html><head><title>[src.name] Log</title></head><body style='font: 13px 'Courier', monospace;'>"
|
||||||
for(var/list/entry in log)
|
for(var/list/entry in log)
|
||||||
output += {"<div style='font-weight: bold;'>[time2text(entry["time"],"DDD MMM DD hh:mm:ss")] 2555</div>
|
output += {"<div style='font-weight: bold;'>[time2text(entry["time"],"DDD MMM DD hh:mm:ss")] [game_year]</div>
|
||||||
<div style='margin-left:15px; margin-bottom:10px;'>[entry["message"]]</div>
|
<div style='margin-left:15px; margin-bottom:10px;'>[entry["message"]]</div>
|
||||||
"}
|
"}
|
||||||
output += "</body></html>"
|
output += "</body></html>"
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ var/href_logfile = null
|
|||||||
var/station_name = "NSS Exodus"
|
var/station_name = "NSS Exodus"
|
||||||
var/game_version = "Baystation12"
|
var/game_version = "Baystation12"
|
||||||
var/changelog_hash = ""
|
var/changelog_hash = ""
|
||||||
|
var/game_year = (text2num(time2text(world.realtime, "YYYY")) + 544)
|
||||||
|
|
||||||
var/datum/air_tunnel/air_tunnel1/SS13_airtunnel = null
|
var/datum/air_tunnel/air_tunnel1/SS13_airtunnel = null
|
||||||
var/going = 1.0
|
var/going = 1.0
|
||||||
|
|||||||
@@ -653,10 +653,10 @@
|
|||||||
counter++
|
counter++
|
||||||
if(istype(usr,/mob/living/carbon/human))
|
if(istype(usr,/mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/U = usr
|
var/mob/living/carbon/human/U = usr
|
||||||
R.fields[text("com_[counter]")] = text("Made by [U.get_authentification_name()] ([U.get_assignment()]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
R.fields[text("com_[counter]")] = text("Made by [U.get_authentification_name()] ([U.get_assignment()]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
if(istype(usr,/mob/living/silicon/robot))
|
if(istype(usr,/mob/living/silicon/robot))
|
||||||
var/mob/living/silicon/robot/U = usr
|
var/mob/living/silicon/robot/U = usr
|
||||||
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
|
|
||||||
if (href_list["medical"])
|
if (href_list["medical"])
|
||||||
if(hasHUD(usr,"medical"))
|
if(hasHUD(usr,"medical"))
|
||||||
@@ -780,10 +780,10 @@
|
|||||||
counter++
|
counter++
|
||||||
if(istype(usr,/mob/living/carbon/human))
|
if(istype(usr,/mob/living/carbon/human))
|
||||||
var/mob/living/carbon/human/U = usr
|
var/mob/living/carbon/human/U = usr
|
||||||
R.fields[text("com_[counter]")] = text("Made by [U.get_authentification_name()] ([U.get_assignment()]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
R.fields[text("com_[counter]")] = text("Made by [U.get_authentification_name()] ([U.get_assignment()]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
if(istype(usr,/mob/living/silicon/robot))
|
if(istype(usr,/mob/living/silicon/robot))
|
||||||
var/mob/living/silicon/robot/U = usr
|
var/mob/living/silicon/robot/U = usr
|
||||||
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], 2557<BR>[t1]")
|
R.fields[text("com_[counter]")] = text("Made by [U.name] ([U.modtype] [U.braintype]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user