verb macro system (pr 1/3) (#96720)

## About The Pull Request

just macro-izes all the usages of verbs in the codebase as a
pre-requisite to my follow up pr that serializes all the verbs arguments
so we can tgui-ify the command bar, so we can then put it on the
onscreen map.

this also basically does the same as #94487 so can easily be integrated
into the verb queueing stuff... but does not actually do any verb
queueing by itself. basically im just trying to be
https://github.com/tgstation/tgstation/labels/Atomic
## Why It's Good For The Game
it doesn't really do anything by itself but it does let us do more stuff

## Changelog
🆑
code: the backend to all verbs in the game has been played with, please
report any issues to github
/🆑

---------

Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
harry
2026-07-04 02:45:07 -04:00
committed by GitHub
co-authored by harryob
parent e5afe71e87
commit ff006aa4a5
79 changed files with 369 additions and 565 deletions
+9 -32
View File
@@ -1,8 +1,5 @@
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
/client/verb/wiki()
set name = "wiki"
set desc = "Brings you to the Wiki"
set hidden = TRUE
GAME_VERB_HIDDEN(/client, wiki, "wiki")
var/wikiurl = CONFIG_GET(string/wikiurl)
if(!wikiurl)
@@ -21,10 +18,7 @@
output += "?title=Special%3ASearch&profile=default&search=[query]"
DIRECT_OUTPUT(src, link(output))
/client/verb/forum()
set name = "forum"
set desc = "Visit the forum."
set hidden = TRUE
GAME_VERB_HIDDEN(/client, forum, "forum")
var/forumurl = CONFIG_GET(string/forumurl)
if(!forumurl)
@@ -32,10 +26,7 @@
return
DIRECT_OUTPUT(src, link(forumurl))
/client/verb/rules()
set name = "rules"
set desc = "Show Server Rules."
set hidden = TRUE
GAME_VERB_HIDDEN(/client, rules, "rules")
var/rulesurl = CONFIG_GET(string/rulesurl)
if(!rulesurl)
@@ -43,10 +34,7 @@
return
DIRECT_OUTPUT(src, link(rulesurl))
/client/verb/github()
set name = "github"
set desc = "Visit Github"
set hidden = TRUE
GAME_VERB_HIDDEN(/client, github, "github")
var/githuburl = CONFIG_GET(string/githuburl)
if(!githuburl)
@@ -54,10 +42,7 @@
return
DIRECT_OUTPUT(src, link(githuburl))
/client/verb/config()
set name = "config"
set desc = "View the server configuration files."
set hidden = TRUE
GAME_VERB_HIDDEN(/client, config, "config")
var/configurl = CONFIG_GET(string/configurl)
if(!configurl)
@@ -65,9 +50,7 @@
return
DIRECT_OUTPUT(src, link(configurl))
/client/verb/reportissue()
set name = "report-issue"
set desc = "Report an issue"
GAME_VERB_DESC(/client, reportissue, "report-issue", "Report an issue", null)
var/githuburl = CONFIG_GET(string/githuburl)
if(!githuburl)
@@ -109,9 +92,7 @@
DIRECT_OUTPUT(src, link(jointext(concatable, "")))
/client/verb/changelog()
set name = "Changelog"
set category = "OOC"
GAME_VERB(/client, changelog, "Changelog", "OOC")
if(!GLOB.changelog_tgui)
GLOB.changelog_tgui = new /datum/changelog()
@@ -121,18 +102,14 @@
prefs.lastchangelog = GLOB.changelog_hash
prefs.save_preferences()
/client/verb/hotkeys_help()
set name = "Hotkeys Help"
set hidden = TRUE
GAME_VERB_HIDDEN(/client, hotkeys_help, "Hotkeys Help")
if(!GLOB.hotkeys_tgui)
GLOB.hotkeys_tgui = new /datum/hotkeys_help()
GLOB.hotkeys_tgui.ui_interact(mob)
/client/verb/emote_panel()
set name = "Emote Panel"
set hidden = TRUE
GAME_VERB_HIDDEN(/client, emote_panel, "Emote Panel")
if(!isliving(mob))
to_chat(mob, span_notice("You can only use this while you're alive!"))