Allow procs to spawn filled paper with passing info to constructor

This commit is contained in:
Aronai Sieyes
2020-03-11 22:51:58 -04:00
parent 9dfeaface8
commit 403dba2f60

View File

@@ -100,15 +100,21 @@
//lipstick wiping is in code/game/objects/items/weapons/cosmetics.dm!
/obj/item/weapon/paper/New()
/obj/item/weapon/paper/New(var/newloc, var/text, var/title)
..()
pixel_y = rand(-8, 8)
pixel_x = rand(-9, 9)
stamps = ""
if(!isnull(title))
name = title
if(name != "paper")
desc = "This is a paper titled '" + name + "'."
if(!isnull(text))
info = text
if(info != initial(info))
info = html_encode(info)
info = replacetext(info, "\n", "<BR>")