mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
added a second macro argument to STATION_TIME and STATION_TIME_TIMESTAMP.
This commit is contained in:
@@ -54,5 +54,5 @@ When using time2text(), please use "DDD" to find the weekday. Refrain from using
|
|||||||
#define WORLDTIME2TEXT(format) GAMETIMESTAMP(format, world.time)
|
#define WORLDTIME2TEXT(format) GAMETIMESTAMP(format, world.time)
|
||||||
#define WORLDTIMEOFDAY2TEXT(format) GAMETIMESTAMP(format, world.timeofday)
|
#define WORLDTIMEOFDAY2TEXT(format) GAMETIMESTAMP(format, world.timeofday)
|
||||||
#define TIME_STAMP(format, showds) showds ? "[WORLDTIMEOFDAY2TEXT(format)]:[world.timeofday % 10]" : WORLDTIMEOFDAY2TEXT(format)
|
#define TIME_STAMP(format, showds) showds ? "[WORLDTIMEOFDAY2TEXT(format)]:[world.timeofday % 10]" : WORLDTIMEOFDAY2TEXT(format)
|
||||||
#define STATION_TIME(display_only) ((((world.time - SSticker.round_start_time) * SSticker.station_time_rate_multiplier) + SSticker.gametime_offset) % 864000) - (display_only? GLOB.timezoneOffset : 0)
|
#define STATION_TIME(display_only, wtime) ((((wtime - SSticker.round_start_time) * SSticker.station_time_rate_multiplier) + SSticker.gametime_offset) % 864000) - (display_only? GLOB.timezoneOffset : 0)
|
||||||
#define STATION_TIME_TIMESTAMP(format) time2text(STATION_TIME(TRUE), format)
|
#define STATION_TIME_TIMESTAMP(format, wtime) time2text(STATION_TIME(TRUE, wtime), format)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ SUBSYSTEM_DEF(nightshift)
|
|||||||
/datum/controller/subsystem/nightshift/proc/check_nightshift()
|
/datum/controller/subsystem/nightshift/proc/check_nightshift()
|
||||||
var/emergency = GLOB.security_level >= SEC_LEVEL_RED
|
var/emergency = GLOB.security_level >= SEC_LEVEL_RED
|
||||||
var/announcing = TRUE
|
var/announcing = TRUE
|
||||||
var/time = STATION_TIME(FALSE)
|
var/time = STATION_TIME(FALSE, world.time)
|
||||||
var/night_time = (time < nightshift_end_time) || (time > nightshift_start_time)
|
var/night_time = (time < nightshift_end_time) || (time > nightshift_start_time)
|
||||||
if(high_security_mode != emergency)
|
if(high_security_mode != emergency)
|
||||||
high_security_mode = emergency
|
high_security_mode = emergency
|
||||||
|
|||||||
@@ -198,7 +198,7 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/apc_control/proc/log_activity(log_text)
|
/obj/machinery/computer/apc_control/proc/log_activity(log_text)
|
||||||
var/op_string = operator && !(obj_flags & EMAGGED) ? operator : "\[NULL OPERATOR\]"
|
var/op_string = operator && !(obj_flags & EMAGGED) ? operator : "\[NULL OPERATOR\]"
|
||||||
LAZYADD(logs, "<b>([STATION_TIME_TIMESTAMP("hh:mm:ss")])</b> [op_string] [log_text]")
|
LAZYADD(logs, "<b>([STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)])</b> [op_string] [log_text]")
|
||||||
|
|
||||||
/mob/proc/using_power_flow_console()
|
/mob/proc/using_power_flow_console()
|
||||||
for(var/obj/machinery/computer/apc_control/A in range(1, src))
|
for(var/obj/machinery/computer/apc_control/A in range(1, src))
|
||||||
|
|||||||
@@ -478,7 +478,7 @@
|
|||||||
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 [] ([]) on [] [], []<BR>[]", authenticated, rank, STATION_TIME_TIMESTAMP("hh:mm:ss"), time2text(world.realtime, "MMM DD"), GLOB.year_integer, t1)
|
active2.fields[text("com_[]", counter)] = text("Made by [] ([]) on [] [], []<BR>[]", authenticated, rank, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time), time2text(world.realtime, "MMM DD"), GLOB.year_integer, t1)
|
||||||
|
|
||||||
else if(href_list["del_c"])
|
else if(href_list["del_c"])
|
||||||
if((istype(active2, /datum/data/record) && active2.fields[text("com_[]", href_list["del_c"])]))
|
if((istype(active2, /datum/data/record) && active2.fields[text("com_[]", href_list["del_c"])]))
|
||||||
|
|||||||
@@ -456,7 +456,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 [] ([]) on [] [], []<BR>[]", src.authenticated, src.rank, STATION_TIME_TIMESTAMP("hh:mm:ss"), time2text(world.realtime, "MMM DD"), GLOB.year_integer, t1)
|
active2.fields[text("com_[]", counter)] = text("Made by [] ([]) on [] [], []<BR>[]", src.authenticated, src.rank, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time), time2text(world.realtime, "MMM DD"), GLOB.year_integer, t1)
|
||||||
|
|
||||||
if("Delete Record (ALL)")
|
if("Delete Record (ALL)")
|
||||||
if(active1)
|
if(active1)
|
||||||
@@ -636,7 +636,7 @@ What a mess.*/
|
|||||||
var/t2 = stripped_input(usr, "Please input minor crime details:", "Secure. records", "", null)
|
var/t2 = stripped_input(usr, "Please input minor crime details:", "Secure. records", "", null)
|
||||||
if(!canUseSecurityRecordsConsole(usr, t1, null, a2))
|
if(!canUseSecurityRecordsConsole(usr, t1, null, a2))
|
||||||
return
|
return
|
||||||
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, authenticated, STATION_TIME_TIMESTAMP("hh:mm:ss"))
|
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, authenticated, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time))
|
||||||
GLOB.data_core.addMinorCrime(active1.fields["id"], crime)
|
GLOB.data_core.addMinorCrime(active1.fields["id"], crime)
|
||||||
investigate_log("New Minor Crime: <strong>[t1]</strong>: [t2] | Added to [active1.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
investigate_log("New Minor Crime: <strong>[t1]</strong>: [t2] | Added to [active1.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
||||||
if("mi_crim_delete")
|
if("mi_crim_delete")
|
||||||
@@ -651,7 +651,7 @@ What a mess.*/
|
|||||||
var/t2 = stripped_input(usr, "Please input major crime details:", "Secure. records", "", null)
|
var/t2 = stripped_input(usr, "Please input major crime details:", "Secure. records", "", null)
|
||||||
if(!canUseSecurityRecordsConsole(usr, t1, null, a2))
|
if(!canUseSecurityRecordsConsole(usr, t1, null, a2))
|
||||||
return
|
return
|
||||||
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, authenticated, STATION_TIME_TIMESTAMP("hh:mm:ss"))
|
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, authenticated, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time))
|
||||||
GLOB.data_core.addMajorCrime(active1.fields["id"], crime)
|
GLOB.data_core.addMajorCrime(active1.fields["id"], crime)
|
||||||
investigate_log("New Major Crime: <strong>[t1]</strong>: [t2] | Added to [active1.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
investigate_log("New Major Crime: <strong>[t1]</strong>: [t2] | Added to [active1.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
||||||
if("ma_crim_delete")
|
if("ma_crim_delete")
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ GLOBAL_LIST_INIT(possible_uplinker_IDs, list("Alfa","Bravo","Charlie","Delta","E
|
|||||||
var/list/transferlog = list()
|
var/list/transferlog = list()
|
||||||
|
|
||||||
/obj/machinery/computer/telecrystals/boss/proc/logTransfer(logmessage)
|
/obj/machinery/computer/telecrystals/boss/proc/logTransfer(logmessage)
|
||||||
transferlog += ("<b>[STATION_TIME_TIMESTAMP("hh:mm:ss")]</b> [logmessage]")
|
transferlog += ("<b>[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]</b> [logmessage]")
|
||||||
|
|
||||||
/obj/machinery/computer/telecrystals/boss/proc/scanUplinkers()
|
/obj/machinery/computer/telecrystals/boss/proc/scanUplinkers()
|
||||||
for(var/obj/machinery/computer/telecrystals/uplinker/A in urange(scanrange, src.loc))
|
for(var/obj/machinery/computer/telecrystals/uplinker/A in urange(scanrange, src.loc))
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ GLOBAL_LIST_EMPTY(allCasters)
|
|||||||
var/datum/newscaster/feed_message/newMsg = new /datum/newscaster/feed_message
|
var/datum/newscaster/feed_message/newMsg = new /datum/newscaster/feed_message
|
||||||
newMsg.author = author
|
newMsg.author = author
|
||||||
newMsg.body = msg
|
newMsg.body = msg
|
||||||
newMsg.time_stamp = "[STATION_TIME_TIMESTAMP("hh:mm:ss")]"
|
newMsg.time_stamp = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
newMsg.is_admin_message = adminMessage
|
newMsg.is_admin_message = adminMessage
|
||||||
newMsg.locked = !allow_comments
|
newMsg.locked = !allow_comments
|
||||||
if(picture)
|
if(picture)
|
||||||
@@ -696,7 +696,7 @@ GLOBAL_LIST_EMPTY(allCasters)
|
|||||||
var/datum/newscaster/feed_comment/FC = new/datum/newscaster/feed_comment
|
var/datum/newscaster/feed_comment/FC = new/datum/newscaster/feed_comment
|
||||||
FC.author = scanned_user
|
FC.author = scanned_user
|
||||||
FC.body = cominput
|
FC.body = cominput
|
||||||
FC.time_stamp = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
FC.time_stamp = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
FM.comments += FC
|
FM.comments += FC
|
||||||
usr.log_message("(as [scanned_user]) commented on message [FM.returnBody(-1)] -- [FC.body]", LOG_COMMENT)
|
usr.log_message("(as [scanned_user]) commented on message [FM.returnBody(-1)] -- [FC.body]", LOG_COMMENT)
|
||||||
updateUsrDialog()
|
updateUsrDialog()
|
||||||
|
|||||||
@@ -1030,7 +1030,7 @@
|
|||||||
|
|
||||||
/obj/mecha/log_message(message as text, message_type=LOG_GAME, color=null, log_globally)
|
/obj/mecha/log_message(message as text, message_type=LOG_GAME, color=null, log_globally)
|
||||||
log.len++
|
log.len++
|
||||||
log[log.len] = list("time"="[STATION_TIME_TIMESTAMP("hh:mm:ss")]","date","year"="[GLOB.year_integer]","message"="[color?"<font color='[color]'>":null][message][color?"</font>":null]")
|
log[log.len] = list("time"="[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]","date","year"="[GLOB.year_integer]","message"="[color?"<font color='[color]'>":null][message][color?"</font>":null]")
|
||||||
..()
|
..()
|
||||||
return log.len
|
return log.len
|
||||||
|
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
|||||||
dat += text("ID: <a href='?src=[REF(src)];choice=Authenticate'>[id ? "[id.registered_name], [id.assignment]" : "----------"]")
|
dat += text("ID: <a href='?src=[REF(src)];choice=Authenticate'>[id ? "[id.registered_name], [id.assignment]" : "----------"]")
|
||||||
dat += text("<br><a href='?src=[REF(src)];choice=UpdateInfo'>[id ? "Update PDA Info" : ""]</A><br><br>")
|
dat += text("<br><a href='?src=[REF(src)];choice=UpdateInfo'>[id ? "Update PDA Info" : ""]</A><br><br>")
|
||||||
|
|
||||||
dat += "[STATION_TIME_TIMESTAMP("hh:mm:ss")]<br>" //:[world.time / 100 % 6][world.time / 100 % 10]"
|
dat += "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]<br>" //:[world.time / 100 % 6][world.time / 100 % 10]"
|
||||||
dat += "[time2text(world.realtime, "MMM DD")] [GLOB.year_integer]"
|
dat += "[time2text(world.realtime, "MMM DD")] [GLOB.year_integer]"
|
||||||
|
|
||||||
dat += "<br><br>"
|
dat += "<br><br>"
|
||||||
|
|||||||
@@ -1244,7 +1244,7 @@
|
|||||||
|
|
||||||
/obj/item/toy/clockwork_watch/examine(mob/user)
|
/obj/item/toy/clockwork_watch/examine(mob/user)
|
||||||
. = ..()
|
. = ..()
|
||||||
. += "<span class='info'>Station Time: [STATION_TIME_TIMESTAMP("hh:mm:ss")]"
|
. += "<span class='info'>Station Time: [STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Toy Dagger
|
* Toy Dagger
|
||||||
|
|||||||
@@ -133,14 +133,14 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
/datum/ntnet/proc/log_data_transfer(datum/netdata/data)
|
/datum/ntnet/proc/log_data_transfer(datum/netdata/data)
|
||||||
logs += "[STATION_TIME_TIMESTAMP("hh:mm:ss")] - [data.generate_netlog()]"
|
logs += "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)] - [data.generate_netlog()]"
|
||||||
if(logs.len > setting_maxlogcount)
|
if(logs.len > setting_maxlogcount)
|
||||||
logs = logs.Copy(logs.len - setting_maxlogcount, 0)
|
logs = logs.Copy(logs.len - setting_maxlogcount, 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
// Simplified logging: Adds a log. log_string is mandatory parameter, source is optional.
|
// Simplified logging: Adds a log. log_string is mandatory parameter, source is optional.
|
||||||
/datum/ntnet/proc/add_log(log_string, obj/item/computer_hardware/network_card/source = null)
|
/datum/ntnet/proc/add_log(log_string, obj/item/computer_hardware/network_card/source = null)
|
||||||
var/log_text = "[STATION_TIME_TIMESTAMP("hh:mm:ss")] - "
|
var/log_text = "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)] - "
|
||||||
if(source)
|
if(source)
|
||||||
log_text += "[source.get_network_tag()] - "
|
log_text += "[source.get_network_tag()] - "
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
to_chat(user, "<span class='notice'>We begin our stasis, preparing energy to arise once more.</span>")
|
to_chat(user, "<span class='notice'>We begin our stasis, preparing energy to arise once more.</span>")
|
||||||
if(user.stat != DEAD)
|
if(user.stat != DEAD)
|
||||||
user.emote("deathgasp")
|
user.emote("deathgasp")
|
||||||
user.tod = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
user.tod = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
user.fakedeath("changeling") //play dead
|
user.fakedeath("changeling") //play dead
|
||||||
user.update_stat()
|
user.update_stat()
|
||||||
user.update_canmove()
|
user.update_canmove()
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
// We gathered everything. Create a fork and slowly display the results to the holder of the scanner.
|
// We gathered everything. Create a fork and slowly display the results to the holder of the scanner.
|
||||||
|
|
||||||
var/found_something = FALSE
|
var/found_something = FALSE
|
||||||
add_log("<B>[STATION_TIME_TIMESTAMP("hh:mm:ss")][get_timestamp()] - [target_name]</B>", 0)
|
add_log("<B>[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)][get_timestamp()] - [target_name]</B>", 0)
|
||||||
|
|
||||||
// Fingerprints
|
// Fingerprints
|
||||||
if(length(fingerprints))
|
if(length(fingerprints))
|
||||||
|
|||||||
@@ -175,7 +175,7 @@
|
|||||||
desc = "Tells you what the time is, in terms and adjusted for your local station or planet"
|
desc = "Tells you what the time is, in terms and adjusted for your local station or planet"
|
||||||
|
|
||||||
/obj/item/integrated_circuit/time/clock/station/get_time()
|
/obj/item/integrated_circuit/time/clock/station/get_time()
|
||||||
return STATION_TIME(FALSE)
|
return STATION_TIME(FALSE, world.time)
|
||||||
|
|
||||||
/obj/item/integrated_circuit/time/clock/bluespace
|
/obj/item/integrated_circuit/time/clock/bluespace
|
||||||
name = "integrated clock (Bluespace Absolute Time)"
|
name = "integrated clock (Bluespace Absolute Time)"
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ GLOBAL_LIST_EMPTY(silo_access_logs)
|
|||||||
var/list/materials
|
var/list/materials
|
||||||
|
|
||||||
/datum/ore_silo_log/New(obj/machinery/M, _action, _amount, _noun, list/mats=list())
|
/datum/ore_silo_log/New(obj/machinery/M, _action, _amount, _noun, list/mats=list())
|
||||||
timestamp = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
timestamp = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
machine_name = M.name
|
machine_name = M.name
|
||||||
area_name = get_area_name(M, TRUE)
|
area_name = get_area_name(M, TRUE)
|
||||||
action = _action
|
action = _action
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
var/obj/item/clothing/suit/space/space_ninja/SN = wear_suit
|
var/obj/item/clothing/suit/space/space_ninja/SN = wear_suit
|
||||||
if(statpanel("SpiderOS"))
|
if(statpanel("SpiderOS"))
|
||||||
stat("SpiderOS Status:","[SN.s_initialized ? "Initialized" : "Disabled"]")
|
stat("SpiderOS Status:","[SN.s_initialized ? "Initialized" : "Disabled"]")
|
||||||
stat("Current Time:", "[STATION_TIME_TIMESTAMP("hh:mm:ss")]")
|
stat("Current Time:", "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]")
|
||||||
if(SN.s_initialized)
|
if(SN.s_initialized)
|
||||||
//Suit gear
|
//Suit gear
|
||||||
stat("Energy Charge:", "[round(SN.cell.charge/100)]%")
|
stat("Energy Charge:", "[round(SN.cell.charge/100)]%")
|
||||||
@@ -439,7 +439,7 @@
|
|||||||
return
|
return
|
||||||
else if(!istype(H.glasses, /obj/item/clothing/glasses/hud/security) && !istype(H.getorganslot(ORGAN_SLOT_HUD), /obj/item/organ/cyberimp/eyes/hud/security))
|
else if(!istype(H.glasses, /obj/item/clothing/glasses/hud/security) && !istype(H.getorganslot(ORGAN_SLOT_HUD), /obj/item/organ/cyberimp/eyes/hud/security))
|
||||||
return
|
return
|
||||||
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, allowed_access, STATION_TIME_TIMESTAMP("hh:mm:ss"))
|
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, allowed_access, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time))
|
||||||
GLOB.data_core.addMinorCrime(R.fields["id"], crime)
|
GLOB.data_core.addMinorCrime(R.fields["id"], crime)
|
||||||
investigate_log("New Minor Crime: <strong>[t1]</strong>: [t2] | Added to [R.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
investigate_log("New Minor Crime: <strong>[t1]</strong>: [t2] | Added to [R.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
||||||
to_chat(usr, "<span class='notice'>Successfully added a minor crime.</span>")
|
to_chat(usr, "<span class='notice'>Successfully added a minor crime.</span>")
|
||||||
@@ -455,7 +455,7 @@
|
|||||||
return
|
return
|
||||||
else if (!istype(H.glasses, /obj/item/clothing/glasses/hud/security) && !istype(H.getorganslot(ORGAN_SLOT_HUD), /obj/item/organ/cyberimp/eyes/hud/security))
|
else if (!istype(H.glasses, /obj/item/clothing/glasses/hud/security) && !istype(H.getorganslot(ORGAN_SLOT_HUD), /obj/item/organ/cyberimp/eyes/hud/security))
|
||||||
return
|
return
|
||||||
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, allowed_access, STATION_TIME_TIMESTAMP("hh:mm:ss"))
|
var/crime = GLOB.data_core.createCrimeEntry(t1, t2, allowed_access, STATION_TIME_TIMESTAMP("hh:mm:ss", world.time))
|
||||||
GLOB.data_core.addMajorCrime(R.fields["id"], crime)
|
GLOB.data_core.addMajorCrime(R.fields["id"], crime)
|
||||||
investigate_log("New Major Crime: <strong>[t1]</strong>: [t2] | Added to [R.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
investigate_log("New Major Crime: <strong>[t1]</strong>: [t2] | Added to [R.fields["name"]] by [key_name(usr)]", INVESTIGATE_RECORDS)
|
||||||
to_chat(usr, "<span class='notice'>Successfully added a major crime.</span>")
|
to_chat(usr, "<span class='notice'>Successfully added a major crime.</span>")
|
||||||
@@ -488,7 +488,7 @@
|
|||||||
var/counter = 1
|
var/counter = 1
|
||||||
while(R.fields[text("com_[]", counter)])
|
while(R.fields[text("com_[]", counter)])
|
||||||
counter++
|
counter++
|
||||||
R.fields[text("com_[]", counter)] = text("Made by [] on [] [], []<BR>[]", allowed_access, STATION_TIME_TIMESTAMP("hh:mm:ss"), time2text(world.realtime, "MMM DD"), GLOB.year_integer, t1)
|
R.fields["com_[counter]"] = "Made by [allowed_access] on [STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)] [time2text(world.realtime, "MMM DD")], [GLOB.year_integer]<BR>[t1]"
|
||||||
to_chat(usr, "<span class='notice'>Successfully added comment.</span>")
|
to_chat(usr, "<span class='notice'>Successfully added comment.</span>")
|
||||||
return
|
return
|
||||||
to_chat(usr, "<span class='warning'>Unable to locate a data core entry for this person.</span>")
|
to_chat(usr, "<span class='warning'>Unable to locate a data core entry for this person.</span>")
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
stat = DEAD
|
stat = DEAD
|
||||||
unset_machine()
|
unset_machine()
|
||||||
timeofdeath = world.time
|
timeofdeath = world.time
|
||||||
tod = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
tod = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
for(var/obj/item/I in contents)
|
for(var/obj/item/I in contents)
|
||||||
I.on_mob_death(src, gibbed)
|
I.on_mob_death(src, gibbed)
|
||||||
if(mind)
|
if(mind)
|
||||||
|
|||||||
@@ -212,7 +212,7 @@
|
|||||||
emote("deathgasp")
|
emote("deathgasp")
|
||||||
ADD_TRAIT(src, TRAIT_FAKEDEATH, source)
|
ADD_TRAIT(src, TRAIT_FAKEDEATH, source)
|
||||||
ADD_TRAIT(src, TRAIT_DEATHCOMA, source)
|
ADD_TRAIT(src, TRAIT_DEATHCOMA, source)
|
||||||
tod = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
tod = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
update_stat()
|
update_stat()
|
||||||
|
|
||||||
/mob/living/proc/unignore_slowdown(list/sources)
|
/mob/living/proc/unignore_slowdown(list/sources)
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
|
|||||||
if(href_list["flavor2_more"])
|
if(href_list["flavor2_more"])
|
||||||
usr << browse(text("<HTML><HEAD><TITLE>[]</TITLE></HEAD><BODY><TT>[]</TT></BODY></HTML>", name, replacetext(flavor_text_2, "\n", "<BR>")), text("window=[];size=500x200", name))
|
usr << browse(text("<HTML><HEAD><TITLE>[]</TITLE></HEAD><BODY><TT>[]</TT></BODY></HTML>", name, replacetext(flavor_text_2, "\n", "<BR>")), text("window=[];size=500x200", name))
|
||||||
onclose(usr, "[name]")
|
onclose(usr, "[name]")
|
||||||
|
|
||||||
if(href_list["flavor_change"])
|
if(href_list["flavor_change"])
|
||||||
update_flavor_text()
|
update_flavor_text()
|
||||||
|
|
||||||
@@ -584,7 +584,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
|
|||||||
stat(null, "Round ID: [GLOB.round_id ? GLOB.round_id : "NULL"]")
|
stat(null, "Round ID: [GLOB.round_id ? GLOB.round_id : "NULL"]")
|
||||||
stat(null, "Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]")
|
stat(null, "Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]")
|
||||||
stat(null, "Round Time: [WORLDTIME2TEXT("hh:mm:ss")]")
|
stat(null, "Round Time: [WORLDTIME2TEXT("hh:mm:ss")]")
|
||||||
stat(null, "Station Time: [STATION_TIME_TIMESTAMP("hh:mm:ss")]")
|
stat(null, "Station Time: [STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]")
|
||||||
stat(null, "Time Dilation: [round(SStime_track.time_dilation_current,1)]% AVG:([round(SStime_track.time_dilation_avg_fast,1)]%, [round(SStime_track.time_dilation_avg,1)]%, [round(SStime_track.time_dilation_avg_slow,1)]%)")
|
stat(null, "Time Dilation: [round(SStime_track.time_dilation_current,1)]% AVG:([round(SStime_track.time_dilation_avg_fast,1)]%, [round(SStime_track.time_dilation_avg,1)]%, [round(SStime_track.time_dilation_avg_slow,1)]%)")
|
||||||
if(SSshuttle.emergency)
|
if(SSshuttle.emergency)
|
||||||
var/ETA = SSshuttle.emergency.getModeStr()
|
var/ETA = SSshuttle.emergency.getModeStr()
|
||||||
|
|||||||
@@ -19,12 +19,12 @@
|
|||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/datum/ntnet_conversation/proc/add_message(message, username)
|
/datum/ntnet_conversation/proc/add_message(message, username)
|
||||||
message = "[STATION_TIME_TIMESTAMP("hh:mm:ss")] [username]: [message]"
|
message = "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)] [username]: [message]"
|
||||||
messages.Add(message)
|
messages.Add(message)
|
||||||
trim_message_list()
|
trim_message_list()
|
||||||
|
|
||||||
/datum/ntnet_conversation/proc/add_status_message(message)
|
/datum/ntnet_conversation/proc/add_status_message(message)
|
||||||
messages.Add("[STATION_TIME_TIMESTAMP("hh:mm:ss")] -!- [message]")
|
messages.Add("[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)] -!- [message]")
|
||||||
trim_message_list()
|
trim_message_list()
|
||||||
|
|
||||||
/datum/ntnet_conversation/proc/trim_message_list()
|
/datum/ntnet_conversation/proc/trim_message_list()
|
||||||
|
|||||||
@@ -348,7 +348,7 @@
|
|||||||
|
|
||||||
data["PC_programheaders"] = program_headers
|
data["PC_programheaders"] = program_headers
|
||||||
|
|
||||||
data["PC_stationtime"] = STATION_TIME_TIMESTAMP("hh:mm:ss")
|
data["PC_stationtime"] = STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)
|
||||||
data["PC_hasheader"] = 1
|
data["PC_hasheader"] = 1
|
||||||
data["PC_showexitprogram"] = active_program ? 1 : 0 // Hides "Exit Program" button on mainscreen
|
data["PC_showexitprogram"] = active_program ? 1 : 0 // Hides "Exit Program" button on mainscreen
|
||||||
return data
|
return data
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
<br>
|
<br>
|
||||||
[GLOB.data_core ? GLOB.data_core.get_manifest(0) : ""]
|
[GLOB.data_core ? GLOB.data_core.get_manifest(0) : ""]
|
||||||
"}
|
"}
|
||||||
if(!printer.print_text(contents,text("crew manifest ([])", STATION_TIME_TIMESTAMP("hh:mm:ss"))))
|
if(!printer.print_text(contents,text("crew manifest ([])", STATION_TIME_TIMESTAMP("hh:mm:ss", world.time))))
|
||||||
to_chat(usr, "<span class='notice'>Hardware error: Printer was unable to print the file. It may be out of paper.</span>")
|
to_chat(usr, "<span class='notice'>Hardware error: Printer was unable to print the file. It may be out of paper.</span>")
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
t = replacetext(t, "\[/i\]", "</I>")
|
t = replacetext(t, "\[/i\]", "</I>")
|
||||||
t = replacetext(t, "\[u\]", "<U>")
|
t = replacetext(t, "\[u\]", "<U>")
|
||||||
t = replacetext(t, "\[/u\]", "</U>")
|
t = replacetext(t, "\[/u\]", "</U>")
|
||||||
t = replacetext(t, "\[time\]", "[STATION_TIME_TIMESTAMP("hh:mm:ss")]")
|
t = replacetext(t, "\[time\]", "[STATION_TIME_TIMESTAMP("hh:mm:ss", world.time)]")
|
||||||
t = replacetext(t, "\[date\]", "[time2text(world.realtime, "MMM DD")] [GLOB.year_integer]")
|
t = replacetext(t, "\[date\]", "[time2text(world.realtime, "MMM DD")] [GLOB.year_integer]")
|
||||||
t = replacetext(t, "\[large\]", "<font size=\"4\">")
|
t = replacetext(t, "\[large\]", "<font size=\"4\">")
|
||||||
t = replacetext(t, "\[/large\]", "</font>")
|
t = replacetext(t, "\[/large\]", "</font>")
|
||||||
|
|||||||
Reference in New Issue
Block a user