mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
say_log now has timestamps
This commit is contained in:
@@ -71,14 +71,14 @@
|
||||
for(var/spoken_memory in target.say_log)
|
||||
if(recent_speech.len >= LING_ABSORB_RECENT_SPEECH)
|
||||
break
|
||||
recent_speech += spoken_memory
|
||||
recent_speech[spoken_memory] = target.say_log[spoken_memory]
|
||||
|
||||
if(recent_speech.len)
|
||||
user.mind.store_memory("<B>Some of [target]'s speech patterns, we should study these to better impersonate them!</B>")
|
||||
user << "<span class='boldnotice'>Some of [target]'s speech patterns, we should study these to better impersonate them!</span>"
|
||||
for(var/spoken_memory in recent_speech)
|
||||
user.mind.store_memory("\"[spoken_memory]\"")
|
||||
user << "<span class='notice'>\"[spoken_memory]\"</span>"
|
||||
user.mind.store_memory("\"[recent_speech[spoken_memory]]\"")
|
||||
user << "<span class='notice'>\"[recent_speech[spoken_memory]]\"</span>"
|
||||
user.mind.store_memory("<B>We have no more knowledge of [target]'s speech patterns.</B>")
|
||||
user << "<span class='boldnotice'>We have no more knowledge of [target]'s speech patterns.</span>"
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
var/smoke_delay = 0 //used to prevent spam with smoke reagent reaction on mob.
|
||||
|
||||
var/list/say_log = list() //a log of what we've said, plain text, no spans or junk, essentially just each individual "message"
|
||||
var/list/say_log = list() //a log of what we've said, with a timestamp as the key for each message
|
||||
|
||||
var/bubble_icon = "default" //what icon the mob uses for speechbubbles
|
||||
|
||||
|
||||
@@ -98,8 +98,8 @@ var/list/crit_allowed_modes = list(MODE_WHISPER,MODE_CHANGELING,MODE_ALIEN)
|
||||
|
||||
spans += get_spans()
|
||||
|
||||
//Log of what we've said, plain message, no spans or junk
|
||||
say_log += message
|
||||
//Log what we've said with an associated timestamp, using the list's len for safety/to prevent overwriting messages
|
||||
say_log["[LAZYLEN(say_log) + 1]\[[time_stamp()]\]"] = message
|
||||
|
||||
var/message_range = 7
|
||||
var/radio_return = radio(message, message_mode, spans)
|
||||
|
||||
Reference in New Issue
Block a user