Sacred 2:How is a character's natural Vitality calculated?
It all starts in blueprint.txt. There is a bonus called crbonus_attr_vit_pc.
newBonus = { -- name = "crbonus_attr_vit_pc", rating = 0, basedonskill = "SKILL_INVALID", type = "BONUS_STATS", spez = "STAT_VIT", spez2 = "", usagebits = 65535, minconstraints = {1,0,0}, difficultyvaluerange0 = {0,23,525}, difficultyvaluerange1 = {1,23,525}, difficultyvaluerange2 = {2,23,525}, difficultyvaluerange3 = {3,23,525}, difficultyvaluerange4 = {4,23,525}, } mgr.createBonus(34, newBonus);
In creatures.txt, each character receives this bonus at a different "intensity" value.
The Dragon Mage:
mgr.addCreatureBonus( 1949, { intensity = 960, bonus = 34, })
The Dryad:
mgr.addCreatureBonus( 94, { intensity = 900, bonus = 34, })
The High Elf:
mgr.addCreatureBonus( 209, { intensity = 800, bonus = 34, })
The Inquisitor:
mgr.addCreatureBonus( 51, { intensity = 950, bonus = 34, })
The Seraphim:
mgr.addCreatureBonus( 1, { intensity = 1000, bonus = 34, })
The Shadow Warrior:
mgr.addCreatureBonus( 93, { intensity = 1120, bonus = 34, })
The Temple Guardian:
mgr.addCreatureBonus( 210, { intensity = 900, bonus = 34, })
TODO Guide on how to interpret blueprint bonuses.
The generic formula for blueprint bonuses is:
ValueOfBonus = FLOOR((FLOOR((ValueAt200 - ValueAt0) * (1 / 200) * CreatureOrItemLevel) + ValueAt0) * Intensity * 0.001)
For Vitality (and attributes in general), there are no additional operations to perform:
Vitality = ValueOfBonus
We can adapt and simplify the formula like so:
Vitality = FLOOR((FLOOR((ValueAt200 - ValueAt0) * (1 / 200) * CharacterLevel) + ValueAt0) * Intensity * 0.001)
Vitality = FLOOR((FLOOR((525 - 23) * (1 / 200) * CharacterLevel) + 23) * Intensity * 0.001)
Vitality = FLOOR((FLOOR(502 * (1 / 200) * CharacterLevel) + 23) * Intensity * 0.001)
Vitality = FLOOR((FLOOR(2.51 * CharacterLevel) + 23) * Intensity * 0.001)
By using the formula, we can fill in the following table:
Character level | Vitality | ||||||
Dragon Mage | Dryad | High Elf | Inquisitor | Seraphim | Shadow Warrior | Temple Guardian | |
1 | 24 | 22 | 20 | 23 | 25 | 28 | 22 |
2 | 26 | 25 | 22 | 26 | 28 | 31 | 25 |
3 | 28 | 27 | 24 | 28 | 30 | 33 | 27 |
4 | 31 | 29 | 26 | 31 | 33 | 36 | 29 |
5 | 33 | 31 | 28 | 33 | 35 | 39 | 31 |
6 | 36 | 34 | 30 | 36 | 38 | 42 | 34 |
7 | 38 | 36 | 32 | 38 | 40 | 44 | 36 |
8 | 41 | 38 | 34 | 40 | 43 | 48 | 38 |
9 | 43 | 40 | 36 | 42 | 45 | 50 | 40 |
10 | 46 | 43 | 38 | 45 | 48 | 53 | 43 |
11 | 48 | 45 | 40 | 47 | 50 | 56 | 45 |
12 | 50 | 47 | 42 | 50 | 53 | 59 | 47 |
13 | 52 | 49 | 44 | 52 | 55 | 61 | 49 |
14 | 55 | 52 | 46 | 55 | 58 | 64 | 52 |
15 | 57 | 54 | 48 | 57 | 60 | 67 | 54 |
16 | 60 | 56 | 50 | 59 | 63 | 70 | 56 |
17 | 62 | 58 | 52 | 61 | 65 | 72 | 58 |
18 | 65 | 61 | 54 | 64 | 68 | 76 | 61 |
19 | 67 | 63 | 56 | 66 | 70 | 78 | 63 |
20 | 70 | 65 | 58 | 69 | 73 | 81 | 65 |
21 | 72 | 67 | 60 | 71 | 75 | 84 | 67 |
22 | 74 | 70 | 62 | 74 | 78 | 87 | 70 |
23 | 76 | 72 | 64 | 76 | 80 | 89 | 72 |
24 | 79 | 74 | 66 | 78 | 83 | 92 | 74 |
25 | 81 | 76 | 68 | 80 | 85 | 95 | 76 |
26 | 84 | 79 | 70 | 83 | 88 | 98 | 79 |
27 | 86 | 81 | 72 | 85 | 90 | 100 | 81 |
28 | 89 | 83 | 74 | 88 | 93 | 104 | 83 |
29 | 91 | 85 | 76 | 90 | 95 | 106 | 85 |
30 | 94 | 88 | 78 | 93 | 98 | 109 | 88 |
31 | 96 | 90 | 80 | 95 | 100 | 112 | 90 |
32 | 98 | 92 | 82 | 97 | 103 | 115 | 92 |
33 | 100 | 94 | 84 | 99 | 105 | 117 | 94 |
34 | 103 | 97 | 86 | 102 | 108 | 120 | 97 |
35 | 105 | 99 | 88 | 104 | 110 | 123 | 99 |
36 | 108 | 101 | 90 | 107 | 113 | 126 | 101 |
37 | 110 | 103 | 92 | 109 | 115 | 128 | 103 |
38 | 113 | 106 | 94 | 112 | 118 | 132 | 106 |
39 | 115 | 108 | 96 | 114 | 120 | 134 | 108 |
40 | 118 | 110 | 98 | 116 | 123 | 137 | 110 |
41 | 120 | 112 | 100 | 118 | 125 | 140 | 112 |
42 | 122 | 115 | 102 | 121 | 128 | 143 | 115 |
43 | 124 | 117 | 104 | 123 | 130 | 145 | 117 |
44 | 127 | 119 | 106 | 126 | 133 | 148 | 119 |
45 | 129 | 121 | 108 | 128 | 135 | 151 | 121 |
46 | 132 | 124 | 110 | 131 | 138 | 154 | 124 |
47 | 134 | 126 | 112 | 133 | 140 | 156 | 126 |
48 | 137 | 128 | 114 | 135 | 143 | 160 | 128 |
49 | 139 | 130 | 116 | 137 | 145 | 162 | 130 |
50 | 142 | 133 | 118 | 140 | 148 | 165 | 133 |
51 | 144 | 135 | 120 | 143 | 151 | 169 | 135 |
52 | 146 | 137 | 122 | 145 | 153 | 171 | 137 |
53 | 149 | 140 | 124 | 148 | 156 | 174 | 140 |
54 | 151 | 142 | 126 | 150 | 158 | 176 | 142 |
55 | 154 | 144 | 128 | 152 | 161 | 180 | 144 |
56 | 156 | 146 | 130 | 154 | 163 | 182 | 146 |
57 | 159 | 149 | 132 | 157 | 166 | 185 | 149 |
58 | 161 | 151 | 134 | 159 | 168 | 188 | 151 |
59 | 164 | 153 | 136 | 162 | 171 | 191 | 153 |
60 | 166 | 155 | 138 | 164 | 173 | 193 | 155 |
61 | 168 | 158 | 140 | 167 | 176 | 197 | 158 |
62 | 170 | 160 | 142 | 169 | 178 | 199 | 160 |
63 | 173 | 162 | 144 | 171 | 181 | 202 | 162 |
64 | 175 | 164 | 146 | 173 | 183 | 204 | 164 |
65 | 178 | 167 | 148 | 176 | 186 | 208 | 167 |
66 | 180 | 169 | 150 | 178 | 188 | 210 | 169 |
67 | 183 | 171 | 152 | 181 | 191 | 213 | 171 |
68 | 185 | 173 | 154 | 183 | 193 | 216 | 173 |
69 | 188 | 176 | 156 | 186 | 196 | 219 | 176 |
70 | 190 | 178 | 158 | 188 | 198 | 221 | 178 |
71 | 192 | 180 | 160 | 190 | 201 | 225 | 180 |
72 | 194 | 182 | 162 | 192 | 203 | 227 | 182 |
73 | 197 | 185 | 164 | 195 | 206 | 230 | 185 |
74 | 199 | 187 | 166 | 197 | 208 | 232 | 187 |
75 | 202 | 189 | 168 | 200 | 211 | 236 | 189 |
76 | 204 | 191 | 170 | 202 | 213 | 238 | 191 |
77 | 207 | 194 | 172 | 205 | 216 | 241 | 194 |
78 | 209 | 196 | 174 | 207 | 218 | 244 | 196 |
79 | 212 | 198 | 176 | 209 | 221 | 247 | 198 |
80 | 214 | 200 | 178 | 211 | 223 | 249 | 200 |
81 | 216 | 203 | 180 | 214 | 226 | 253 | 203 |
82 | 218 | 205 | 182 | 216 | 228 | 255 | 205 |
83 | 221 | 207 | 184 | 219 | 231 | 258 | 207 |
84 | 223 | 209 | 186 | 221 | 233 | 260 | 209 |
85 | 226 | 212 | 188 | 224 | 236 | 264 | 212 |
86 | 228 | 214 | 190 | 226 | 238 | 266 | 214 |
87 | 231 | 216 | 192 | 228 | 241 | 269 | 216 |
88 | 233 | 218 | 194 | 230 | 243 | 272 | 218 |
89 | 236 | 221 | 196 | 233 | 246 | 275 | 221 |
90 | 238 | 223 | 198 | 235 | 248 | 277 | 223 |
91 | 240 | 225 | 200 | 238 | 251 | 281 | 225 |
92 | 242 | 227 | 202 | 240 | 253 | 283 | 227 |
93 | 245 | 230 | 204 | 243 | 256 | 286 | 230 |
94 | 247 | 232 | 206 | 245 | 258 | 288 | 232 |
95 | 250 | 234 | 208 | 247 | 261 | 292 | 234 |
96 | 252 | 236 | 210 | 249 | 263 | 294 | 236 |
97 | 255 | 239 | 212 | 252 | 266 | 297 | 239 |
98 | 257 | 241 | 214 | 254 | 268 | 300 | 241 |
99 | 260 | 243 | 216 | 257 | 271 | 303 | 243 |
100 | 263 | 246 | 219 | 260 | 274 | 306 | 246 |
101 | 264 | 248 | 220 | 262 | 276 | 309 | 248 |
102 | 267 | 251 | 223 | 265 | 279 | 312 | 251 |
103 | 269 | 252 | 224 | 266 | 281 | 314 | 252 |
104 | 272 | 255 | 227 | 269 | 284 | 318 | 255 |
105 | 274 | 257 | 228 | 271 | 286 | 320 | 257 |
106 | 277 | 260 | 231 | 274 | 289 | 323 | 260 |
107 | 279 | 261 | 232 | 276 | 291 | 325 | 261 |
108 | 282 | 264 | 235 | 279 | 294 | 329 | 264 |
109 | 284 | 266 | 236 | 281 | 296 | 331 | 266 |
110 | 287 | 269 | 239 | 284 | 299 | 334 | 269 |
111 | 288 | 270 | 240 | 285 | 301 | 337 | 270 |
112 | 291 | 273 | 243 | 288 | 304 | 340 | 273 |
113 | 293 | 275 | 244 | 290 | 306 | 342 | 275 |
114 | 296 | 278 | 247 | 293 | 309 | 346 | 278 |
115 | 298 | 279 | 248 | 295 | 311 | 348 | 279 |
116 | 301 | 282 | 251 | 298 | 314 | 351 | 282 |
117 | 303 | 284 | 252 | 300 | 316 | 353 | 284 |
118 | 306 | 287 | 255 | 303 | 319 | 357 | 287 |
119 | 308 | 288 | 256 | 304 | 321 | 359 | 288 |
120 | 311 | 291 | 259 | 307 | 324 | 362 | 291 |
121 | 312 | 293 | 260 | 309 | 326 | 365 | 293 |
122 | 315 | 296 | 263 | 312 | 329 | 368 | 296 |
123 | 317 | 297 | 264 | 314 | 331 | 370 | 297 |
124 | 320 | 300 | 267 | 317 | 334 | 374 | 300 |
125 | 322 | 302 | 268 | 319 | 336 | 376 | 302 |
126 | 325 | 305 | 271 | 322 | 339 | 379 | 305 |
127 | 327 | 306 | 272 | 323 | 341 | 381 | 306 |
128 | 330 | 309 | 275 | 326 | 344 | 385 | 309 |
129 | 332 | 311 | 276 | 328 | 346 | 387 | 311 |
130 | 335 | 314 | 279 | 331 | 349 | 390 | 314 |
131 | 336 | 315 | 280 | 333 | 351 | 393 | 315 |
132 | 339 | 318 | 283 | 336 | 354 | 396 | 318 |
133 | 341 | 320 | 284 | 338 | 356 | 398 | 320 |
134 | 344 | 323 | 287 | 341 | 359 | 402 | 323 |
135 | 346 | 324 | 288 | 342 | 361 | 404 | 324 |
136 | 349 | 327 | 291 | 345 | 364 | 407 | 327 |
137 | 351 | 329 | 292 | 347 | 366 | 409 | 329 |
138 | 354 | 332 | 295 | 350 | 369 | 413 | 332 |
139 | 356 | 333 | 296 | 352 | 371 | 415 | 333 |
140 | 359 | 336 | 299 | 355 | 374 | 418 | 336 |
141 | 360 | 338 | 300 | 357 | 376 | 421 | 338 |
142 | 363 | 341 | 303 | 360 | 379 | 424 | 341 |
143 | 365 | 342 | 304 | 361 | 381 | 426 | 342 |
144 | 368 | 345 | 307 | 364 | 384 | 430 | 345 |
145 | 370 | 347 | 308 | 366 | 386 | 432 | 347 |
146 | 373 | 350 | 311 | 369 | 389 | 435 | 350 |
147 | 375 | 351 | 312 | 371 | 391 | 437 | 351 |
148 | 378 | 354 | 315 | 374 | 394 | 441 | 354 |
149 | 380 | 356 | 316 | 376 | 396 | 443 | 356 |
150 | 383 | 359 | 319 | 379 | 399 | 446 | 359 |
151 | 385 | 361 | 321 | 381 | 402 | 450 | 361 |
152 | 387 | 363 | 323 | 383 | 404 | 452 | 363 |
153 | 390 | 366 | 325 | 386 | 407 | 455 | 366 |
154 | 392 | 368 | 327 | 388 | 409 | 458 | 368 |
155 | 395 | 370 | 329 | 391 | 412 | 461 | 370 |
156 | 397 | 372 | 331 | 393 | 414 | 463 | 372 |
157 | 400 | 375 | 333 | 396 | 417 | 467 | 375 |
158 | 402 | 377 | 335 | 398 | 419 | 469 | 377 |
159 | 405 | 379 | 337 | 400 | 422 | 472 | 379 |
160 | 407 | 381 | 339 | 402 | 424 | 474 | 381 |
161 | 409 | 384 | 341 | 405 | 427 | 478 | 384 |
162 | 411 | 386 | 343 | 407 | 429 | 480 | 386 |
163 | 414 | 388 | 345 | 410 | 432 | 483 | 388 |
164 | 416 | 390 | 347 | 412 | 434 | 486 | 390 |
165 | 419 | 393 | 349 | 415 | 437 | 489 | 393 |
166 | 421 | 395 | 351 | 417 | 439 | 491 | 395 |
167 | 424 | 397 | 353 | 419 | 442 | 495 | 397 |
168 | 426 | 399 | 355 | 421 | 444 | 497 | 399 |
169 | 429 | 402 | 357 | 424 | 447 | 500 | 402 |
170 | 431 | 404 | 359 | 426 | 449 | 502 | 404 |
171 | 433 | 406 | 361 | 429 | 452 | 506 | 406 |
172 | 435 | 408 | 363 | 431 | 454 | 508 | 408 |
173 | 438 | 411 | 365 | 434 | 457 | 511 | 411 |
174 | 440 | 413 | 367 | 436 | 459 | 514 | 413 |
175 | 443 | 415 | 369 | 438 | 462 | 517 | 415 |
176 | 445 | 417 | 371 | 440 | 464 | 519 | 417 |
177 | 448 | 420 | 373 | 443 | 467 | 523 | 420 |
178 | 450 | 422 | 375 | 445 | 469 | 525 | 422 |
179 | 453 | 424 | 377 | 448 | 472 | 528 | 424 |
180 | 455 | 426 | 379 | 450 | 474 | 530 | 426 |
181 | 457 | 429 | 381 | 453 | 477 | 534 | 429 |
182 | 459 | 431 | 383 | 455 | 479 | 536 | 431 |
183 | 462 | 433 | 385 | 457 | 482 | 539 | 433 |
184 | 464 | 435 | 387 | 459 | 484 | 542 | 435 |
185 | 467 | 438 | 389 | 462 | 487 | 545 | 438 |
186 | 469 | 440 | 391 | 464 | 489 | 547 | 440 |
187 | 472 | 442 | 393 | 467 | 492 | 551 | 442 |
188 | 474 | 444 | 395 | 469 | 494 | 553 | 444 |
189 | 477 | 447 | 397 | 472 | 497 | 556 | 447 |
190 | 479 | 449 | 399 | 474 | 499 | 558 | 449 |
191 | 481 | 451 | 401 | 476 | 502 | 562 | 451 |
192 | 483 | 453 | 403 | 478 | 504 | 564 | 453 |
193 | 486 | 456 | 405 | 481 | 507 | 567 | 456 |
194 | 488 | 458 | 407 | 483 | 509 | 570 | 458 |
195 | 491 | 460 | 409 | 486 | 512 | 573 | 460 |
196 | 493 | 462 | 411 | 488 | 514 | 575 | 462 |
197 | 496 | 465 | 413 | 491 | 517 | 579 | 465 |
198 | 498 | 467 | 415 | 493 | 519 | 581 | 467 |
199 | 501 | 469 | 417 | 495 | 522 | 584 | 469 |
200 | 504 | 472 | 420 | 498 | 525 | 588 | 472 |