[MIRROR] allow vorebelly display names (#11541)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-30 05:32:17 -07:00
committed by GitHub
parent afdd68dfb6
commit 8724a009b4
35 changed files with 225 additions and 112 deletions

View File

@@ -206,9 +206,9 @@ Book Cart End
/// Proc that handles sending the book information to the user, as well as some housekeeping stuff.
/obj/item/book/proc/display_content(mob/living/user)
var/datum/browser/popup = new(user, "book", "<TT><I>Penned by [author].</I></TT>")
popup.set_content(dat)
popup.open()
if(!findtext(dat, regex("^<html")))
dat = "<html>[dat]</html>"
user << browse(replacetext(dat, "<html>", "<html><TT><I>Penned by [author].</I></TT> <BR>"), "window=book")
/obj/item/book/attackby(obj/item/W, mob/user)
if(carved)