206 << QVariant(false) // disable land objects 17 |
208 << QVariant(false) // disable land objects 17 |
207 << QVariant(false) // AI survival 18 |
209 << QVariant(false) // AI survival 18 |
208 << QVariant(true) // inf. attack 19 |
210 << QVariant(true) // inf. attack 19 |
209 << QVariant(true) // reset weps 20 |
211 << QVariant(true) // reset weps 20 |
210 << QVariant(false) // per hog ammo 21 |
212 << QVariant(false) // per hog ammo 21 |
211 << QVariant(100) // damage modfier 22 |
213 << QVariant(120) // damage modfier 22 |
212 << QVariant(45) // turn time 23 |
214 << QVariant(45) // turn time 23 |
213 << QVariant(100) // init health 24 |
215 << QVariant(100) // init health 24 |
214 << QVariant(15) // sudden death 25 |
216 << QVariant(15) // sudden death 25 |
215 << QVariant(5) // case prob 26 |
217 << QVariant(5) // case prob 26 |
216 << QVariant(3) // mines time 27 |
218 << QVariant(3) // mines time 27 |
217 << QVariant(4) // mines number 28 |
219 << QVariant(4) // mines number 28 |
218 << QVariant(0) // mine dud pct 29 |
220 << QVariant(0) // mine dud pct 29 |
219 << QVariant(2) // explosives 30 |
221 << QVariant(2) // explosives 30 |
220 << QVariant(35) // health case pct 31 |
222 << QVariant(25) // health case pct 31 |
221 << QVariant(25) // health case amt 32 |
223 << QVariant(50) // health case amt 32 |
222 ; |
224 ; |
223 |
225 |
224 QList<QVariant> minefield; |
226 QList<QVariant> minefield; |
225 minefield |
227 minefield |
226 << predefSchemesNames[4] // name 0 |
228 << predefSchemesNames[4] // name 0 |
328 << QVariant(10) // mines number 28 |
330 << QVariant(10) // mines number 28 |
329 << QVariant(10) // mine dud pct 29 |
331 << QVariant(10) // mine dud pct 29 |
330 << QVariant(10) // explosives 30 |
332 << QVariant(10) // explosives 30 |
331 << QVariant(35) // health case pct 31 |
333 << QVariant(35) // health case pct 31 |
332 << QVariant(25) // health case amt 32 |
334 << QVariant(25) // health case amt 32 |
|
335 ; |
|
336 |
|
337 QList<QVariant> forts; |
|
338 forts |
|
339 << predefSchemesNames[7] // name 0 |
|
340 << QVariant(true) // fortsmode 1 |
|
341 << QVariant(true) // team divide 2 |
|
342 << QVariant(false) // solid land 3 |
|
343 << QVariant(false) // border 4 |
|
344 << QVariant(true) // low gravity 5 |
|
345 << QVariant(false) // laser sight 6 |
|
346 << QVariant(false) // invulnerable 7 |
|
347 << QVariant(false) // reset health 8 |
|
348 << QVariant(false) // vampiric 9 |
|
349 << QVariant(false) // karma 10 |
|
350 << QVariant(false) // artillery 11 |
|
351 << QVariant(true) // random order 12 |
|
352 << QVariant(false) // king 13 |
|
353 << QVariant(false) // place hog 14 |
|
354 << QVariant(false) // shared ammo 15 |
|
355 << QVariant(false) // disable girders 16 |
|
356 << QVariant(false) // disable land objects 17 |
|
357 << QVariant(false) // AI survival 18 |
|
358 << QVariant(false) // inf. attack 19 |
|
359 << QVariant(false) // reset weps 20 |
|
360 << QVariant(false) // per hog ammo 21 |
|
361 << QVariant(100) // damage modfier 22 |
|
362 << QVariant(45) // turn time 23 |
|
363 << QVariant(100) // init health 24 |
|
364 << QVariant(15) // sudden death 25 |
|
365 << QVariant(5) // case prob 26 |
|
366 << QVariant(3) // mines time 27 |
|
367 << QVariant(0) // mines number 28 |
|
368 << QVariant(0) // mine dud pct 29 |
|
369 << QVariant(0) // explosives 30 |
|
370 << QVariant(35) // health case pct 31 |
|
371 << QVariant(25) // health case amt 32 |
|
372 ; |
|
373 |
|
374 QList<QVariant> timeless; |
|
375 timeless |
|
376 << predefSchemesNames[8] // name 0 |
|
377 << QVariant(false) // fortsmode 1 |
|
378 << QVariant(false) // team divide 2 |
|
379 << QVariant(false) // solid land 3 |
|
380 << QVariant(false) // border 4 |
|
381 << QVariant(false) // low gravity 5 |
|
382 << QVariant(false) // laser sight 6 |
|
383 << QVariant(false) // invulnerable 7 |
|
384 << QVariant(false) // reset health 8 |
|
385 << QVariant(false) // vampiric 9 |
|
386 << QVariant(false) // karma 10 |
|
387 << QVariant(false) // artillery 11 |
|
388 << QVariant(true) // random order 12 |
|
389 << QVariant(false) // king 13 |
|
390 << QVariant(false) // place hog 14 |
|
391 << QVariant(false) // shared ammo 15 |
|
392 << QVariant(false) // disable girders 16 |
|
393 << QVariant(false) // disable land objects 17 |
|
394 << QVariant(false) // AI survival 18 |
|
395 << QVariant(false) // inf. attack 19 |
|
396 << QVariant(false) // reset weps 20 |
|
397 << QVariant(true) // per hog ammo 21 |
|
398 << QVariant(100) // damage modfier 22 |
|
399 << QVariant(9999) // turn time 23 |
|
400 << QVariant(100) // init health 24 |
|
401 << QVariant(999) // sudden death 25 |
|
402 << QVariant(5) // case prob 26 |
|
403 << QVariant(3) // mines time 27 |
|
404 << QVariant(5) // mines number 28 |
|
405 << QVariant(10) // mine dud pct 29 |
|
406 << QVariant(2) // explosives 30 |
|
407 << QVariant(35) // health case pct 31 |
|
408 << QVariant(30) // health case amt 32 |
333 ; |
409 ; |
334 |
410 |
335 schemes.append(defaultScheme); |
411 schemes.append(defaultScheme); |
336 schemes.append(proMode); |
412 schemes.append(proMode); |
337 schemes.append(shoppa); |
413 schemes.append(shoppa); |
338 schemes.append(cleanslate); |
414 schemes.append(cleanslate); |
339 schemes.append(minefield); |
415 schemes.append(minefield); |
340 schemes.append(barrelmayhem); |
416 schemes.append(barrelmayhem); |
341 schemes.append(tunnelhogs); |
417 schemes.append(tunnelhogs); |
|
418 schemes.append(forts); |
|
419 schemes.append(timeless); |
342 |
420 |
343 |
421 |
344 int size = fileConfig.beginReadArray("schemes"); |
422 int size = fileConfig.beginReadArray("schemes"); |
345 for (int i = 0; i < size; ++i) { |
423 for (int i = 0; i < size; ++i) { |
346 fileConfig.setArrayIndex(i); |
424 fileConfig.setArrayIndex(i); |