PennMUSH Community

root/1.8.3/trunk/src/flaglocal.dst

Revision 1167, 1.3 kB (checked in by shawnw, 9 months ago)

Merge devel into trunk for p6 release

Line 
1 /*-----------------------------------------------------------------
2  * Local flags
3  *
4  * This file is reserved for local flags that you may wish
5  * to hack into PennMUSH.
6  * This file will not be overwritten when you update
7  * to a new distribution, so it's preferable to add new flags
8  * here and leave flag.c alone.
9  *
10  * YOU ARE RESPONSIBLE FOR SEEING THAT YOU DO THIS RIGHT -
11  * It's probably smarter to have God @flag/add rather than
12  * do it here, as @flag/add does extensive checks for safety,
13  * and add_flag() doesn't! Remember that flags are saved in the
14  * database, so flags added here won't overwrite flags that
15  * are already defined. When in doubt, use @flag.
16  *
17  * It is explicitly safe to try to add_flag() an existing flag.
18  * It won't do anything, but it won't be harmful.
19  *
20  */
21
22 /* Here are some includes you're likely to need or want.
23  */
24 #include "copyrite.h"
25 #include "config.h"
26 #include <string.h>
27 #include "conf.h"
28 #include "externs.h"
29 #include "flags.h"
30 #include "confmagic.h"
31
32 void
33 local_flags(FLAGSPACE *flags __attribute__ ((__unused__)))
34 {
35 #ifdef EXAMPLE
36   if (strcmp(flags->name, "FLAG") == 0) {
37     add_flag("BIG", 'B', TYPE_PLAYER | TYPE_THING, F_ANY, F_ANY);
38   } else if (strcmp(flags->name, "POWER") == 0) {
39     add_power("MORPH", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
40   }
41 #endif
42 }
Note: See TracBrowser for help on using the browser.