say_log for mobs, fixed changeling absorb memory, changelings can now see past 8 messages of absorbed victim

This commit is contained in:
uraniummeltdown
2017-02-05 22:00:17 +04:00
parent 9127d07b4e
commit d87603054b
5 changed files with 41 additions and 10 deletions
+11 -7
View File
@@ -104,11 +104,13 @@
/datum/mind/proc/wipe_memory()
memory = null
/datum/mind/proc/show_memory(mob/recipient)
var/output = "<B>[current.real_name]'s Memory</B><HR>"
/datum/mind/proc/show_memory(mob/recipient, window=1)
if(!recipient)
recipient = current
var/output = "<B>[current.real_name]'s Memories:</B><HR>"
output += memory
if(objectives.len>0)
if(objectives.len)
output += "<HR><B>Objectives:</B>"
var/obj_count = 1
@@ -116,7 +118,7 @@
output += "<B>Objective #[obj_count]</B>: [objective.explanation_text]"
obj_count++
if(job_objectives.len>0)
if(job_objectives.len)
output += "<HR><B>Job Objectives:</B><UL>"
var/obj_count = 1
@@ -124,8 +126,10 @@
output += "<LI><B>Task #[obj_count]</B>: [objective.get_description()]</LI>"
obj_count++
output += "</UL>"
recipient << browse(output,"window=memory")
if(window)
recipient << browse(output,"window=memory")
else
to_chat(recipient, "<i>[output]</i>")
/datum/mind/proc/edit_memory()
if(!ticker || !ticker.mode)
@@ -1324,7 +1328,7 @@
var/explanation = "Summon [ticker.mode.cultdat.entity_name] via the use of the appropriate rune. It will only work if nine cultists stand on and around it."
to_chat(current, "<B>Objective #1</B>: [explanation]")
current.memory += "<B>Objective #1</B>: [explanation]<BR>"
var/mob/living/carbon/human/H = current
if(istype(H))