… | |
… | |
22 | */ |
22 | */ |
23 | |
23 | |
24 | #ifndef SPELLS_H |
24 | #ifndef SPELLS_H |
25 | #define SPELLS_H |
25 | #define SPELLS_H |
26 | |
26 | |
27 | #define PATH_NULL 0x00000000 /* 0 */ |
27 | #define PATH_NULL 0x00000000 /* 0 */ |
28 | #define PATH_PROT 0x00000001 /* 1 */ |
28 | #define PATH_PROT 0x00000001 /* 1 */ |
29 | #define PATH_FIRE 0x00000002 /* 2 */ |
29 | #define PATH_FIRE 0x00000002 /* 2 */ |
30 | #define PATH_FROST 0x00000004 /* 4 */ |
30 | #define PATH_FROST 0x00000004 /* 4 */ |
31 | #define PATH_ELEC 0x00000008 /* 8 */ |
31 | #define PATH_ELEC 0x00000008 /* 8 */ |
32 | #define PATH_MISSILE 0x00000010 /* 16 */ |
32 | #define PATH_MISSILE 0x00000010 /* 16 */ |
33 | #define PATH_SELF 0x00000020 /* 32 */ |
33 | #define PATH_SELF 0x00000020 /* 32 */ |
34 | #define PATH_SUMMON 0x00000040 /* 64 */ |
34 | #define PATH_SUMMON 0x00000040 /* 64 */ |
35 | #define PATH_ABJURE 0x00000080 /* 128 */ |
35 | #define PATH_ABJURE 0x00000080 /* 128 */ |
36 | #define PATH_RESTORE 0x00000100 /* 256 */ |
36 | #define PATH_RESTORE 0x00000100 /* 256 */ |
37 | #define PATH_DETONATE 0x00000200 /* 512 */ |
37 | #define PATH_DETONATE 0x00000200 /* 512 */ |
38 | #define PATH_MIND 0x00000400 /* 1024 */ |
38 | #define PATH_MIND 0x00000400 /* 1024 */ |
39 | #define PATH_CREATE 0x00000800 /* 2048 */ |
39 | #define PATH_CREATE 0x00000800 /* 2048 */ |
40 | #define PATH_TELE 0x00001000 /* 4096 */ |
40 | #define PATH_TELE 0x00001000 /* 4096 */ |
41 | #define PATH_INFO 0x00002000 /* 8192 */ |
41 | #define PATH_INFO 0x00002000 /* 8192 */ |
42 | #define PATH_TRANSMUTE 0x00004000 /* 16384 */ |
42 | #define PATH_TRANSMUTE 0x00004000 /* 16384 */ |
43 | #define PATH_TRANSFER 0x00008000 /* 32768 */ |
43 | #define PATH_TRANSFER 0x00008000 /* 32768 */ |
44 | #define PATH_TURNING 0x00010000 /* 65536 */ |
44 | #define PATH_TURNING 0x00010000 /* 65536 */ |
45 | #define PATH_WOUNDING 0x00020000 /* 131072 */ |
45 | #define PATH_WOUNDING 0x00020000 /* 131072 */ |
46 | #define PATH_DEATH 0x00040000 /* 262144 */ |
46 | #define PATH_DEATH 0x00040000 /* 262144 */ |
47 | #define PATH_LIGHT 0x00080000 /* 524288 */ |
47 | #define PATH_LIGHT 0x00080000 /* 524288 */ |
48 | |
48 | |
49 | #define PATH_SP_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ |
49 | #define PATH_SP_MULT(op,spell) (((op->path_attuned & spell->path_attuned) ? 0.8 : 1) * \ |