-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.h
45 lines (45 loc) · 1.87 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef POKE_TYPES
#define POKE_TYPES
const char *P_TYPES[]={"normal",
"fire",
"water",
"grass",
"electric",
"ice",
"fighting",
"flying",
"bug",
"rock",
"ground",
"poison",
"psychic",
"ghost",
"dark",
"fairy",
"dragon",
"steel",
"\b"};
const int N_P_TYPES=18;
const int MONOTYPE=18;
const double P_EFFECTIVENESS[][N_P_TYPES+1]={
//no fi wa gr el ic fg fl bu ro go po ps gh da fa dr st ??
/* no*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1,.5, 1, 1, 1, 0, 1, 1, 1,.5, 1},
/* fi*/ { 1,.5,.5, 2, 1, 2, 1, 1, 2,.5, 1, 1, 1, 1, 1, 1,.5, 2, 1},
/* wa*/ { 1, 2,.5,.5, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1,.5, 1, 1},
/* gr*/ { 1,.5, 2,.5, 1, 1, 1,.5,.5, 2, 2,.5, 1, 1, 1, 1,.5,.5, 1},
/* el*/ { 1, 1, 2,.5,.5, 1, 1, 2, 1, 1, 0, 1, 1, 1, 1, 1,.5, 1, 1},
/* ic*/ { 1,.5,.5, 2, 1,.5, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 2,.5, 1},
/* fg*/ { 2, 1, 1, 1, 1, 2, 1,.5,.5, 2, 1,.5,.5, 0, 2,.5, 1, 2, 1},
/* fl*/ { 1, 1, 1, 2,.5, 1, 2, 1, 2,.5, 1, 1, 1, 1, 1, 1, 1,.5, 1},
/* bu*/ { 1,.5, 1, 2, 1, 1,.5,.5, 1, 1, 1,.5, 2,.5, 2,.5, 1,.5, 1},
/* ro*/ { 1, 2, 1, 1, 1, 2,.5, 2, 2, 1,.5, 1, 1, 1, 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