#include "interface.h"
#include "mech.h"
#include "create.h"
#include "btechstats_global.h"
#include "coolmenu.h"
#include "mycool.h"
#include "p.mech.utils.h"
#include "p.glue.scode.h"
Include dependency graph for btech.c:
Go to the source code of this file.
Defines | |
#define | IsHCO(ref) WizP(ref) |
Functions | |
void | do_show (dbref player, dbref cause, int key, char *arg1, char *arg2) |
Variables | |
HASHTAB | playervaluehash |
HASHTAB | playervaluehash2 |
Definition at line 36 of file btech.c.
References CHAR_ADVANTAGE, CHAR_ATTRIBUTE, CHAR_SKILL, CHAR_VALUE, DOCHECK, IsHCO, list_charvaluestuff(), list_xcodevalues(), listmatch(), MBUF_SIZE, and notify.
00037 { 00038 int i; 00039 enum { 00040 CHAVA, CHVAL, CHSKI, CHADV, CHATT, 00041 MECHVALUES 00042 }; 00043 char *cmds[] = { "allvalues", 00044 "values", "skills", "advantages", 00045 "attributes", "xcodevalues", NULL 00046 }; 00047 char *cmds_help[] = { "[char_]allvalues", "[char_]values", 00048 "[char_]skills", "[char_]advantages", "[char_]attributes", 00049 "xcodevalues [scode]", NULL 00050 }; 00051 char buf[MBUF_SIZE]; 00052 00053 DOCHECK(!IsHCO(player), "You aren't cleared to know this stuff yet!"); 00054 00055 if(!arg1 || !*arg1) { 00056 strcpy(buf, "Valid arguments:"); 00057 for(i = 0; cmds_help[i]; i++) 00058 sprintf(buf + strlen(buf), "%c %s", i > 0 ? ',' : ' ', 00059 cmds_help[i]); 00060 notify(player, buf); 00061 return; 00062 } 00063 i = listmatch(cmds, arg1); 00064 /* Do da cmd */ 00065 switch (i) { 00066 case MECHVALUES: 00067 list_xcodevalues(player); 00068 return; 00069 case CHAVA: 00070 list_charvaluestuff(player, -1); 00071 return; 00072 case CHVAL: 00073 list_charvaluestuff(player, CHAR_VALUE); 00074 return; 00075 case CHSKI: 00076 list_charvaluestuff(player, CHAR_SKILL); 00077 return; 00078 case CHADV: 00079 list_charvaluestuff(player, CHAR_ADVANTAGE); 00080 return; 00081 case CHATT: 00082 list_charvaluestuff(player, CHAR_ATTRIBUTE); 00083 return; 00084 } 00085 notify(player, "Invalid arguments to +show command!"); 00086 return; 00087 }
Definition at line 196 of file btechstats.c.
Referenced by char_getvaluecode(), and init_btechstats().
Definition at line 196 of file btechstats.c.
Referenced by char_getvaluecode(), and init_btechstats().