[MIRROR] splits verb and proc (#10054)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-02 22:36:19 +01:00
committed by GitHub
co-authored by Kashargul
parent 2bc1442713
commit 5394d73f31
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -744,10 +744,13 @@
return
/mob/living/verb/Examine_OOC(mob/user = usr)
/mob/living/verb/Examine_OOC()
set name = "Examine Meta-Info (OOC)"
set category = "OOC.Game"
set src in view()
do_examine_ooc(usr)
/mob/living/proc/do_examine_ooc(mob/user)
//VOREStation Edit Start - Making it so SSD people have prefs with fallback to original style.
if(CONFIG_GET(flag/allow_metadata))
if(ooc_notes)
@@ -1,6 +1,6 @@
/mob/living/silicon/Topic(href, href_list) //For Robots and pAI's. And possibly AI's too.
if(href_list["ooc_notes"])
Examine_OOC(usr)
do_examine_ooc(usr)
return 1
return ..()
+1 -1
View File
@@ -1330,7 +1330,7 @@
if(href_list["vore_prefs"])
display_voreprefs(usr)
if(href_list["ooc_notes"])
Examine_OOC(usr)
do_examine_ooc(usr)
if(href_list["edit_ooc_notes"])
if(usr == src)
set_metainfo_panel(usr) //ChompEDIT - usr arg