Fixes dream text (#15784)

The previous [DREAMER] text during dreams and nightmares is replaced with the character's name.

Co-authored-by: Ume <Ume-D@users.noreply.github.com>
This commit is contained in:
Ume
2021-04-05 11:58:14 -03:00
committed by GitHub
parent 93a0f58f21
commit ee8464cafe
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -18,13 +18,13 @@
/mob/living/carbon/proc/custom_dreams(list/dreamlist, mob/user)
var/list/newlist = dreamlist.Copy()
for(var/i in 1 to newlist.len)
newlist[i] = replacetext(newlist[i], "\[DREAMER\]", "[user.name]")
newlist[i] = replacetext(newlist[i], "DREAMER", "[user.name]")
return newlist
//NIGHTMARES
/mob/living/carbon/proc/nightmare()
var/list/nightmares = GLOB.nightmare_strings.Copy()
var/list/nightmares = custom_dreams(GLOB.nightmare_strings, src)
for(var/obj/item/bedsheet/sheet in loc)
nightmares += sheet.nightmare_messages