fixes flavor text not saving/displaying correctly
This commit is contained in:
@@ -382,6 +382,8 @@
|
||||
src << "<span class='warning'>You feel your [pocket_side] pocket being fumbled with!</span>"
|
||||
|
||||
..()
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
///////HUDs///////
|
||||
|
||||
@@ -467,7 +467,7 @@ proc/get_top_level_mob(var/mob/S)
|
||||
src << "<span class='alert'>Your flavor text is likely out of date! <a href='byond://?src=\ref[src];flavor_change=1'>Change</a></span>"
|
||||
|
||||
/mob/proc/print_flavor_text()
|
||||
if (flavor_text && flavor_text != "")
|
||||
if(flavor_text && flavor_text != "")
|
||||
var/msg = replacetext(flavor_text, "\n", " ")
|
||||
if(lentext(msg) <= 40)
|
||||
return "\blue [msg]"
|
||||
|
||||
Reference in New Issue
Block a user