… | |
… | |
186 | #define GEM 60 |
186 | #define GEM 60 |
187 | |
187 | |
188 | #define FIREWALL 62 |
188 | #define FIREWALL 62 |
189 | #define ANVIL 63 |
189 | #define ANVIL 63 |
190 | #define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */ |
190 | #define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */ |
191 | #define MOOD_FLOOR 65 /* by b.t. thomas@nomad.astro.psu.edu |
191 | #define MOOD_FLOOR 65 /* |
192 | * values of last_sp set how to change: |
192 | * values of last_sp set how to change: |
193 | * 0 = furious, all monsters become aggressive |
193 | * 0 = furious, all monsters become aggressive |
194 | * 1 = angry, all but friendly become aggressive |
194 | * 1 = angry, all but friendly become aggressive |
195 | * 2 = calm, all aggressive monsters calm down |
195 | * 2 = calm, all aggressive monsters calm down |
196 | * 3 = sleep, all monsters fall asleep |
196 | * 3 = sleep, all monsters fall asleep |
197 | * 4 = charm, monsters become pets */ |
197 | * 4 = charm, monsters become pets |
|
|
198 | * 5 = destroy monsters |
|
|
199 | * 6 = destroy pets / friendlies |
|
|
200 | */ |
198 | #define EXIT 66 |
201 | #define EXIT 66 |
199 | #define ENCOUNTER 67 |
202 | #define ENCOUNTER 67 |
200 | #define SHOP_FLOOR 68 |
203 | #define SHOP_FLOOR 68 |
201 | #define SHOP_MAT 69 |
204 | #define SHOP_MAT 69 |
202 | #define RING 70 |
205 | #define RING 70 |
… | |
… | |
572 | */ |
575 | */ |
573 | |
576 | |
574 | #define FLAG_BERSERK 99 /* monster will attack closest living |
577 | #define FLAG_BERSERK 99 /* monster will attack closest living |
575 | object */ |
578 | object */ |
576 | #define FLAG_NEUTRAL 100 /* monster is from type neutral */ |
579 | #define FLAG_NEUTRAL 100 /* monster is from type neutral */ |
577 | #define FLAG_NO_ATTACK 101 /* monster don't attack */ |
580 | #define FLAG_NO_ATTACK 101 /* monster doesn't attack */ |
578 | #define FLAG_NO_DAMAGE 102 /* monster can't be damaged */ |
581 | #define FLAG_NO_DAMAGE 102 /* monster can't be damaged */ |
579 | #define FLAG_OBJ_ORIGINAL 103 /* NEVER SET THIS. Item was loaded by |
582 | #define FLAG_OBJ_ORIGINAL 103 /* NEVER SET THIS. Item was loaded by |
580 | * load_original_map() */ |
583 | * load_original_map() */ |
581 | #define FLAG_OBJ_SAVE_ON_OVL 104 /* this object should be saved on |
584 | //#define FLAG_OBJ_SAVE_ON_OVL 104 /* this object should be saved on |
582 | * the overlay, and is not subject to |
585 | // * the overlay, and is not subject to |
583 | * decay. */ |
586 | // * decay. */ |
584 | #define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */ |
587 | #define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */ |
585 | #define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */ |
588 | #define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */ |
586 | #define FLAG_IS_WATER 107 |
589 | #define FLAG_IS_WATER 107 |
587 | #define FLAG_CONTENT_ON_GEN 108 |
590 | #define FLAG_CONTENT_ON_GEN 108 |
588 | #define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ |
591 | #define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ |
… | |
… | |
959 | * This is only used for new client/server sound. If the sound source |
962 | * This is only used for new client/server sound. If the sound source |
960 | * on the map is farther away than this, we don't sent it to the client. |
963 | * on the map is farther away than this, we don't sent it to the client. |
961 | */ |
964 | */ |
962 | #define MAX_SOUND_DISTANCE 16 |
965 | #define MAX_SOUND_DISTANCE 16 |
963 | |
966 | |
|
|
967 | #define LOG_CHANNEL "log" // the plain and ugly standard server log |
|
|
968 | #define INFO_CHANNEL "info" // lower_left box |
|
|
969 | #define SAY_CHANNEL "channel-say" |
|
|
970 | #define CHAT_CHANNEL "channel-chat" |
|
|
971 | |
|
|
972 | /* The following are the color flags passed to new_draw_info. |
|
|
973 | * |
|
|
974 | * We also set up some control flags |
|
|
975 | * |
|
|
976 | * NDI = New Draw Info |
|
|
977 | */ |
|
|
978 | |
|
|
979 | /* Color specifications - note these match the order in xutil.c */ |
|
|
980 | /* Note 2: Black, the default color, is 0. Thus, it does not need to |
|
|
981 | * be implicitly specified. |
|
|
982 | */ |
|
|
983 | #define NDI_BLACK 0 |
|
|
984 | #define NDI_WHITE 1 |
|
|
985 | #define NDI_NAVY 2 |
|
|
986 | #define NDI_RED 3 |
|
|
987 | #define NDI_ORANGE 4 |
|
|
988 | #define NDI_BLUE 5 /* Actually, it is Dodger Blue */ |
|
|
989 | #define NDI_DK_ORANGE 6 /* DarkOrange2 */ |
|
|
990 | #define NDI_GREEN 7 /* SeaGreen */ |
|
|
991 | #define NDI_LT_GREEN 8 /* DarkSeaGreen, which is actually paler */ |
|
|
992 | /* Than seagreen - also background color */ |
|
|
993 | #define NDI_GREY 9 |
|
|
994 | #define NDI_BROWN 10 /* Sienna */ |
|
|
995 | #define NDI_GOLD 11 |
|
|
996 | #define NDI_TAN 12 /* Khaki */ |
|
|
997 | |
|
|
998 | #define NDI_MAX_COLOR 12 /* Last value in */ |
|
|
999 | #define NDI_COLOR_MASK 0x1f /* Gives lots of room for expansion - we are */ |
|
|
1000 | /* using an int anyways, so we have the space */ |
|
|
1001 | /* to still do all the flags */ |
|
|
1002 | |
|
|
1003 | #define NDI_REPLY 0x20 // is a direct reply to a user command |
|
|
1004 | #define NDI_NOCREATE 0x40 // do not create a tba if one doesn't exist |
|
|
1005 | #define NDI_CLIENT_MASK 0x7f // what the client is allowed to see |
|
|
1006 | |
|
|
1007 | #define NDI_UNIQUE 0x1000 /* Print this out immediately, don't buffer */ |
|
|
1008 | #define NDI_ALL 0x2000 /* Inform all players of this message */ |
|
|
1009 | #define NDI_DEF 0x4000 // ignore colour for channel protocol |
|
|
1010 | |
964 | #endif /* DEFINE_H */ |
1011 | #endif /* DEFINE_H */ |
965 | |
1012 | |