Add infos into target window
[ryzomcore.git] / ryzom / server / src / sabrina / combat_tables.h
bloba8554750991dcac8f533128e8f2c9c35d0e58ff3
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 struct
19 int deltaLevel;
20 float percentSuccess;
21 int maxLevelBoost;
22 float XPMultiplier;
24 TableChanceMeleeHitByAdversaryLevel[]=
26 {7, 95.0f, 0, 2.1f},
27 {6, 95.0f, 0, 2.1f},
28 {5, 95.0f, 0, 2.1f},
29 {4, 90.0f, 0, 1.9f},
30 {3, 80.0f, 0, 1.7f},
31 {2, 70.0f, 0, 1.5f},
32 {1, 60.0f, 1, 1.2f},
33 {0, 50.0f, 0, 1.0f},
34 {-1, 40.0f, 0, 0.8f},
35 {-2, 30.0f, 0, 0.3f},
36 {-3, 20.0f, 0, 0.1f},
37 {-4, 10.0f, 0, 0.0f},
38 {-5, 5.0f, 0, 0.0f}
41 struct
43 int deltaLevel;
44 float percentSuccess;
45 int maxLevelBoost;
46 float XPMultiplier;
48 TableChanceSpellHitByAdversaryLevel[]=
50 {7, 95.0f, 0, 2.1f},
51 {6, 95.0f, 0, 2.1f},
52 {5, 95.0f, 0, 2.1f},
53 {4, 90.0f, 0, 1.9f},
54 {3, 80.0f, 0, 1.7f},
55 {2, 70.0f, 0, 1.5f},
56 {1, 60.0f, 1, 1.2f},
57 {0, 50.0f, 0, 1.0f},
58 {-1, 40.0f, 0, 0.8f},
59 {-2, 30.0f, 0, 0.3f},
60 {-3, 20.0f, 0, 0.1f},
61 {-4, 10.0f, 0, 0.0f},
62 {-5, 5.0f, 0, 0.0f}
65 // note on size modifiers
66 // attacker is smaller than defender +1
67 // attacker is a bit bigger -2
68 // attacker is much bigger -4
71 struct
73 int quality;
74 int rateOfFire;
75 float damageFactor;
76 float secondaryDamageFactor; // damage factor when entity level > weapon quality
78 TableLightMeleeWeaponGenerics[]=
80 {1,1,6.0f,2.5f},
81 {2,1,3.75f,2.25f},
82 {3,1,3.0f,2.25f},
83 {4,1,2.25f,2.25f},
84 {5,1,2.25f,2.25f},
85 {6,1,2.25f,2.25f},
86 {7,1,2.25f,2.25f},
87 {8,1,3.0f,3.0f},
88 {9,1,3.0f,3.0f},
89 {10,1,3.0f,3.0f},
90 {11,1,3.75f,3.75f},
91 {12,1,3.75f,3.75f},
92 {13,1,3.75f,3.75f},
93 {14,1,4.5f,4.5f},
94 {15,1,5.25f,5.25f},
95 {16,1,6.0f,6.0f},
96 {17,1,6.75f,6.75f},
97 {18,1,7.5f,7.5f},
98 {19,1,8.25f,8.25f},
99 {20,1,9.75f,9.75f},
100 {21,1,11.25f,11.25f},
102 TableMediumMeleeWeaponGenerics[]=
104 {1,1,8.0f,3.7f},
105 {2,1,5.0f,3.0f},
106 {3,1,4.0f,3.0f},
107 {4,1,3.0f,3.0f},
108 {5,1,3.0f,3.0f},
109 {6,1,3.0f,3.0f},
110 {7,1,3.0f,3.0f},
111 {8,1,4.0f,4.0f},
112 {9,1,4.0f,4.0f},
113 {10,1,4.0f,4.0f},
114 {11,1,5.0f,5.0f},
115 {12,1,5.0f,5.0f},
116 {13,1,5.0f,5.0f},
117 {14,1,6.0f,6.0f},
118 {15,1,7.0f,7.0f},
119 {16,1,8.0f,8.0f},
120 {17,1,9.0f,9.0f},
121 {18,1,10.0f,10.0f},
122 {19,1,11.0f,11.0f},
123 {20,1,13.0f,13.0f},
124 {21,1,15.0f,15.0f},
126 TableHeavyMeleeWeaponGenerics[]=
128 {1,1,17.92f,8.5f},
129 {2,1,11.2f,7.0f},
130 {3,1,8.96f,7.0f},
131 {4,1,6.72f,6.72f},
132 {5,1,6.72f,6.72f},
133 {6,1,6.72f,6.72f},
134 {7,1,6.72f,6.72f},
135 {8,1,8.96f,8.96f},
136 {9,1,8.96f,8.96f},
137 {10,1,8.96f,8.96f},
138 {11,1,11.2f,11.2f},
139 {12,1,11.2f,11.2f},
140 {13,1,11.2f,11.2f},
141 {14,1,13.44f,13.44f},
142 {15,1,15.68f,15.68f},
143 {16,1,17.92f,17.92f},
144 {17,1,20.16f,20.16f},
145 {18,1,22.4f,22.4f},
146 {19,1,24.64f,24.64f},
147 {20,1,29.12f,29.12f},
148 {21,1,33.6f,33.6f},
151 struct
153 int quality ;
154 int percentProtection;
155 int maxProtection ;
157 TableLightArmorGenerics[]=
159 {1,20,2},
160 {2,20,2},
161 {3,20,2},
162 {4,20,3},
163 {5,20,3},
164 {6,20,4},
165 {7,20,5},
166 {8,20,6},
167 {9,20,7},
168 {10,20,8},
169 {11,20,10},
170 {12,20,12},
171 {13,20,14},
172 {14,20,17},
173 {15,20,21},
174 {16,20,25},
175 {17,20,30},
176 {18,20,35},
177 {19,20,43},
178 {20,20,51},
179 {21,20,61},
181 TableMediumArmorGenerics[]=
183 {1,35,3},
184 {2,35,3},
185 {3,35,4},
186 {4,35,5},
187 {5,35,6},
188 {6,35,7},
189 {7,35,8},
190 {8,35,10},
191 {9,35,12},
192 {10,35,14},
193 {11,35,17},
194 {12,35,21},
195 {13,35,25},
196 {14,35,30},
197 {15,35,36},
198 {16,35,43},
199 {17,35,52},
200 {18,35,62},
201 {19,35,75},
202 {20,35,89},
203 {21,35,107},
205 TableHeavyArmorGenerics[]=
207 {1,50,4},
208 {2,50,5},
209 {3,50,6},
210 {4,50,7},
211 {5,50,8},
212 {6,50,10},
213 {7,50,12},
214 {8,50,14},
215 {9,50,17},
216 {10,50,21},
217 {11,50,25},
218 {12,50,30},
219 {13,50,36},
220 {14,50,43},
221 {15,50,51},
222 {16,50,62},
223 {17,50,74},
224 {18,50,89},
225 {19,50,106},
226 {20,50,128},
227 {21,50,153},