mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 11:05:50 +01:00
fixes and filters (#15626)
* fixes and filters * remove the missed closing spans * bundle added * we also store empty hihglighting * change the blacklist handling * fix custom links in examine * regenerate bundle * automatic URL parsing for OOC/LOOC
This commit is contained in:
@@ -400,8 +400,8 @@
|
||||
if(R.fields["name"] == perpname)
|
||||
criminal = R.fields["criminal"]
|
||||
|
||||
msg += "<span class='deptradio'>Criminal status:</span> <a href='?src=\ref[src];criminal=1'>\[[criminal]\]</a>"
|
||||
msg += "<span class='deptradio'>Security records:</span> <a href='?src=\ref[src];secrecord=`'>\[View\]</a> <a href='?src=\ref[src];secrecordadd=`'>\[Add comment\]</a>"
|
||||
msg += "Criminal status: <a href='?src=\ref[src];criminal=1'>\[[criminal]\]</a>"
|
||||
msg += "Security records: <a href='?src=\ref[src];secrecord=`'>\[View\]</a> <a href='?src=\ref[src];secrecordadd=`'>\[Add comment\]</a>"
|
||||
|
||||
if(hasHUD(user,"medical"))
|
||||
var/perpname = name
|
||||
@@ -419,11 +419,11 @@
|
||||
if (R.fields["name"] == perpname)
|
||||
medical = R.fields["p_stat"]
|
||||
|
||||
msg += "<span class='deptradio'>Physical status:</span> <a href='?src=\ref[src];medical=1'>\[[medical]\]</a>"
|
||||
msg += "<span class='deptradio'>Medical records:</span> <a href='?src=\ref[src];medrecord=`'>\[View\]</a> <a href='?src=\ref[src];medrecordadd=`'>\[Add comment\]</a>"
|
||||
msg += "Physical status: <a href='?src=\ref[src];medical=1'>\[[medical]\]</a>"
|
||||
msg += "Medical records: <a href='?src=\ref[src];medrecord=`'>\[View\]</a> <a href='?src=\ref[src];medrecordadd=`'>\[Add comment\]</a>"
|
||||
|
||||
if(hasHUD(user,"best"))
|
||||
msg += "<span class='deptradio'>Employment records:</span> <a href='?src=\ref[src];emprecord=`'>\[View\]</a> <a href='?src=\ref[src];emprecordadd=`'>\[Add comment\]</a>"
|
||||
msg += "Employment records: <a href='?src=\ref[src];emprecord=`'>\[View\]</a> <a href='?src=\ref[src];emprecordadd=`'>\[Add comment\]</a>"
|
||||
|
||||
|
||||
var/flavor_text = print_flavor_text()
|
||||
@@ -432,11 +432,11 @@
|
||||
|
||||
// VOREStation Start
|
||||
if(custom_link)
|
||||
msg += "Custom link: [custom_link]"
|
||||
msg += "Custom link: <span class='linkify'>[custom_link]</span>"
|
||||
|
||||
if(ooc_notes)
|
||||
msg += "<span class = 'deptradio'>OOC Notes:</span> <a href='?src=\ref[src];ooc_notes=1'>\[View\]</a> - <a href='?src=\ref[src];print_ooc_notes_to_chat=1'>\[Print\]</a>"
|
||||
msg += "<span class='deptradio'><a href='?src=\ref[src];vore_prefs=1'>\[Mechanical Vore Preferences\]</a></span>"
|
||||
msg += "OOC Notes: <a href='?src=\ref[src];ooc_notes=1'>\[View\]</a> - <a href='?src=\ref[src];print_ooc_notes_to_chat=1'>\[Print\]</a>"
|
||||
msg += "<a href='?src=\ref[src];vore_prefs=1'>\[Mechanical Vore Preferences\]</a>"
|
||||
// VOREStation End
|
||||
msg += "*---------*</span>"
|
||||
if(applying_pressure)
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
if(usr != src)
|
||||
return
|
||||
var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your LIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC notes panel!", "Game Preference" , html_decode(ooc_notes_likes), multiline = TRUE, prevent_enter = TRUE))
|
||||
if(new_metadata && CanUseTopic(usr))
|
||||
if(CanUseTopic(usr))
|
||||
ooc_notes_likes = new_metadata
|
||||
client.prefs.metadata_likes = new_metadata
|
||||
to_chat(usr, "<span class='filter_notice'>OOC note likes have been updated. Don't forget to save!</span>")
|
||||
@@ -66,7 +66,7 @@
|
||||
if(usr != src)
|
||||
return
|
||||
var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your DISLIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC notes panel!", "Game Preference" , html_decode(ooc_notes_dislikes), multiline = TRUE, prevent_enter = TRUE))
|
||||
if(new_metadata && CanUseTopic(usr))
|
||||
if(CanUseTopic(usr))
|
||||
ooc_notes_dislikes = new_metadata
|
||||
client.prefs.metadata_dislikes = new_metadata
|
||||
to_chat(usr, "<span class='filter_notice'>OOC note dislikes have been updated. Don't forget to save!</span>")
|
||||
@@ -91,7 +91,7 @@
|
||||
msg += "<br><br><b>LIKES</b><br><br>[ooc_notes_likes]"
|
||||
if(ooc_notes_dislikes)
|
||||
msg += "<br><br><b>DISLIKES</b><br><br>[ooc_notes_dislikes]"
|
||||
to_chat(usr, "<span class='filter_notice'>[src]'s Metainfo:<br>[msg]</span>")
|
||||
to_chat(usr, "<span class='chatexport'>[src]'s Metainfo:<br>[msg]</span>")
|
||||
|
||||
/mob/living/verb/set_custom_link()
|
||||
set name = "Set Custom Link"
|
||||
|
||||
@@ -362,7 +362,7 @@
|
||||
db.ooc_notes_likes = M.ooc_notes_likes
|
||||
db.ooc_notes_dislikes = M.ooc_notes_dislikes
|
||||
db.prey_ooc_likes = M.ooc_notes_likes
|
||||
db.prey_ooc_likes = M.ooc_notes_dislikes
|
||||
db.prey_ooc_dislikes = M.ooc_notes_dislikes
|
||||
db.verbs |= /mob/living/dominated_brain/proc/cease_this_foolishness
|
||||
|
||||
absorb_langs()
|
||||
|
||||
Reference in New Issue
Block a user