mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user