mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-27 22:56:34 +01:00
acaudit migration to audit command
This commit is contained in:
parent
3344074ea2
commit
1aa14abdb4
5 changed files with 21 additions and 8 deletions
|
|
@ -343,7 +343,7 @@ ACMD(do_wizutil);
|
|||
#define SCMD_THAW 4
|
||||
#define SCMD_UNAFFECT 5
|
||||
/* Functions without subcommands */
|
||||
ACMD(do_acaudit);
|
||||
ACMD(do_audit);
|
||||
ACMD(do_advance);
|
||||
ACMD(do_at);
|
||||
ACMD(do_checkloadstatus);
|
||||
|
|
|
|||
|
|
@ -6186,9 +6186,20 @@ static const char *slot_name_from_index(int idx) {
|
|||
}
|
||||
|
||||
/* Wizard command: scan armor prototypes, validate per-piece fields (compact, paged, 25 lines) */
|
||||
ACMD(do_acaudit)
|
||||
ACMD(do_audit)
|
||||
{
|
||||
int found = 0, warned = 0;
|
||||
char arg[MAX_INPUT_LENGTH];
|
||||
|
||||
one_argument(argument, arg);
|
||||
if (!*arg) {
|
||||
send_to_char(ch, "Audit what?\r\n");
|
||||
return;
|
||||
}
|
||||
if (!is_abbrev(arg, "ac")) {
|
||||
send_to_char(ch, "Usage: audit ac\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (IS_NPC(ch) || GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
send_to_char(ch, "You lack the authority to use this.\r\n");
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ cpp_extern const struct command_info cmd_info[] = {
|
|||
{ "sw" , "sw" , POS_STANDING, do_move , 0, SCMD_SW },
|
||||
|
||||
/* now, the main list */
|
||||
{ "acaudit" , "acaudi" , POS_DEAD , do_acaudit , LVL_IMMORT, 0 },
|
||||
{ "audit" , "aud" , POS_DEAD , do_audit , LVL_IMMORT, 0 },
|
||||
{ "at" , "at" , POS_DEAD , do_at , LVL_IMMORT, 0 },
|
||||
{ "advance" , "adv" , POS_DEAD , do_advance , LVL_GRGOD, 0 },
|
||||
{ "aedit" , "aed" , POS_DEAD , do_oasis_aedit, LVL_GOD, 0 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue