mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
print_flavor_text no longer runtimes when dna is null (#26609)
This commit is contained in:
@@ -773,7 +773,7 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
|
||||
|
||||
/mob/proc/print_flavor_text(shrink = TRUE)
|
||||
if(flavor_text && flavor_text != "")
|
||||
var/msg = !dna.flavor_text ? replacetext(dna.flavor_text, "\n", " ") : replacetext(flavor_text, "\n", " ")
|
||||
var/msg = dna?.flavor_text ? replacetext(dna.flavor_text, "\n", " ") : replacetext(flavor_text, "\n", " ")
|
||||
if(length(msg) <= 40 || !shrink)
|
||||
return "<span class='notice'>[msg]</span>" // There is already encoded by tgui_input
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user