1 | /* |
1 | /* |
2 | * static char *rcsid_living_c = |
2 | * static char *rcsid_living_c = |
3 | * "$Id: living.c,v 1.7 2006/03/21 05:36:56 root Exp $"; |
3 | * "$Id: living.c,v 1.8 2006/06/25 22:19:41 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
68 | * at .667 |
68 | * at .667 |
69 | * This is figured by diff=(y-1)/(1+y), and for buy, it is 1+diff, for sell |
69 | * This is figured by diff=(y-1)/(1+y), and for buy, it is 1+diff, for sell |
70 | * it is 1-diff |
70 | * it is 1-diff |
71 | */ |
71 | */ |
72 | |
72 | |
73 | const float cha_bonus[MAX_STAT + 1]={10.0, 10.0, 9.0, 8.0, 7.0, 6.0, /*<-5*/ |
73 | const float cha_bonus[MAX_STAT + 1] = { 10.0, |
74 | 5.0, 4.5, 4.0, 3.5, 3.0, /*<-10*/ 2.9, 2.8, 2.7, 2.6, 2.5, /*<-15*/ |
74 | 10.0, 9.0, 8.0, 7.0, 6.0, /* 5 */ |
75 | 2.4, 2.3, 2.2, 2.1, 2.0, /*<-20*/ 1.95, 1.90, 1.85, 1.80, 1.75, /*25 */ |
75 | 5.0, 4.5, 4.0, 3.5, 3.0, /* 10 */ |
|
|
76 | 2.9, 2.8, 2.7, 2.6, 2.5, /* 15 */ |
|
|
77 | 2.4, 2.3, 2.2, 2.1, 2.0, /* 20 */ |
|
|
78 | 1.9, 1.8, 1.7, 1.6, 1.5, /* 25 */ |
76 | 1.70, 1.65, 1.60, 1.55, 1.50 /*30 */ |
79 | 1.4, 1.3, 1.2, 1.1, 1.0 /* 30 */ |
77 | }; |
80 | }; |
78 | |
81 | |
79 | const int dex_bonus[MAX_STAT + 1]={ |
82 | const int dex_bonus[MAX_STAT + 1]={ |
80 | -4,-3,-2,-2,-1,-1,-1,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,6,6,7 |
83 | -4,-3,-2,-2,-1,-1,-1,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,6,6,7 |
81 | }; |
84 | }; |
82 | |
85 | |
83 | /* speed_bonus uses dex as its stat */ |
86 | /* speed_bonus uses dex as its stat */ |
84 | const float speed_bonus[MAX_STAT + 1]={ |
87 | const float speed_bonus[MAX_STAT + 1]={ |
85 | -0.4, -0.4, -0.3, -0.3, -0.2, -0.2, -0.2, -0.1, -0.1, -0.1, -0.05, 0, 0, 0, |
88 | -0.4, -0.35, -0.3, -0.25, -0.2, -0.16, -0.12, -0.09, -0.06, -0.03, -0.01, 0, 0.01, 0.03, |
86 | 0.05, 0.1, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.2, 1.4, |
89 | 0.05, 0.1, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.2, 1.4, |
87 | 1.6, 1.8, 2.0, 2.5, 3.0 |
90 | 1.6, 1.8, 2.0, 2.5, 3.0 |
88 | }; |
91 | }; |
89 | |
92 | |
90 | /* dam_bonus, thaco_bonus, max_carry, weight limit all are based on |
93 | /* dam_bonus, thaco_bonus, max_carry, weight limit all are based on |