1 | #include "ability.hpp" |
---|
2 | #include "chars.hpp" |
---|
3 | |
---|
4 | /*int abil[TOTAL_OBJECTS*TOTAL_ABILITIES]= { |
---|
5 | / hp starta stopa jumpxv jumpyv crouch_tops run_tops jmp_tops wlk_tops / |
---|
6 | / human / 50, 3, 4, 8, -24, 3, 6, 8, 4, |
---|
7 | / iguana / 4, 3, 4, 10, -34, 0, 8, 10, 6, |
---|
8 | / who / 2, 2, 4, 20, 0, 0, 18, 20, 18, |
---|
9 | |
---|
10 | / account1 / 3, 3, 4, 10, -20, 0, 6, 8, 5, |
---|
11 | / cop / 6, 3, 4, 10, -14, 0, 6, 20, 6, |
---|
12 | / laser / 2, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
13 | / elevator / 2, 2, 2, 0, 0, 0, 1, 1, 1, |
---|
14 | / sensor / 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
15 | / elcontrol / 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
16 | / no type / 0, 0, 0, 0, 0, 0, 0, 0, 0 |
---|
17 | } ;*/ |
---|
18 | |
---|
19 | |
---|
20 | char *ability_names[TOTAL_ABILITIES]= |
---|
21 | {"start_hp","start_accel","stop_accel", |
---|
22 | "jump_xvel","jump_yvel", |
---|
23 | "run_top_speed","jump_top_speed", |
---|
24 | "tint_color", |
---|
25 | "push_xrange", |
---|
26 | "walk_top_speed"}; |
---|
27 | |
---|
28 | |
---|
29 | long abil_def[TOTAL_ABILITIES]= |
---|
30 | {6, 3, 4, 2, -16, 10, 6, 0, |
---|
31 | /* hp starta stopa jumpxv jumpyv run_tops jmp_tops blood_type */ |
---|
32 | |
---|
33 | /* push_xrange wlk_tops */ |
---|
34 | 0, 6 }; |
---|
35 | |
---|
36 | long get_ability_default(ability a) |
---|
37 | { |
---|
38 | return abil_def[a]; |
---|
39 | } |
---|
40 | |
---|
41 | long get_ability(int who, ability a) |
---|
42 | { |
---|
43 | return figures[who]->abil[a]; |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | |
---|