426 << QVariant(30) // health case amt 32 |
429 << QVariant(30) // health case amt 32 |
427 << QVariant(0) // water rise amt 33 |
430 << QVariant(0) // water rise amt 33 |
428 << QVariant(0) // health dec amt 34 |
431 << QVariant(0) // health dec amt 34 |
429 ; |
432 ; |
430 |
433 |
|
434 QList<QVariant> thinkingportals; |
|
435 thinkingportals |
|
436 << predefSchemesNames[9] // name 0 |
|
437 << QVariant(false) // fortsmode 1 |
|
438 << QVariant(false) // team divide 2 |
|
439 << QVariant(false) // solid land 3 |
|
440 << QVariant(false) // border 4 |
|
441 << QVariant(false) // low gravity 5 |
|
442 << QVariant(false) // laser sight 6 |
|
443 << QVariant(false) // invulnerable 7 |
|
444 << QVariant(false) // reset health 8 |
|
445 << QVariant(false) // vampiric 9 |
|
446 << QVariant(false) // karma 10 |
|
447 << QVariant(true) // artillery 11 |
|
448 << QVariant(true) // random order 12 |
|
449 << QVariant(false) // king 13 |
|
450 << QVariant(false) // place hog 14 |
|
451 << QVariant(false) // shared ammo 15 |
|
452 << QVariant(false) // disable girders 16 |
|
453 << QVariant(false) // disable land objects 17 |
|
454 << QVariant(false) // AI survival 18 |
|
455 << QVariant(false) // inf. attack 19 |
|
456 << QVariant(false) // reset weps 20 |
|
457 << QVariant(false) // per hog ammo 21 |
|
458 << QVariant(100) // damage modfier 22 |
|
459 << QVariant(45) // turn time 23 |
|
460 << QVariant(100) // init health 24 |
|
461 << QVariant(15) // sudden death 25 |
|
462 << QVariant(2) // case prob 26 |
|
463 << QVariant(3) // mines time 27 |
|
464 << QVariant(5) // mines number 28 |
|
465 << QVariant(0) // mine dud pct 29 |
|
466 << QVariant(5) // explosives 30 |
|
467 << QVariant(25) // health case pct 31 |
|
468 << QVariant(25) // health case amt 32 |
|
469 << QVariant(47) // water rise amt 33 |
|
470 << QVariant(5) // health dec amt 34 |
|
471 ; |
|
472 |
|
473 QList<QVariant> kingmode; |
|
474 kingmode |
|
475 << predefSchemesNames[10] // name 0 |
|
476 << QVariant(false) // fortsmode 1 |
|
477 << QVariant(false) // team divide 2 |
|
478 << QVariant(false) // solid land 3 |
|
479 << QVariant(false) // border 4 |
|
480 << QVariant(false) // low gravity 5 |
|
481 << QVariant(false) // laser sight 6 |
|
482 << QVariant(false) // invulnerable 7 |
|
483 << QVariant(false) // reset health 8 |
|
484 << QVariant(false) // vampiric 9 |
|
485 << QVariant(false) // karma 10 |
|
486 << QVariant(false) // artillery 11 |
|
487 << QVariant(true) // random order 12 |
|
488 << QVariant(true) // king 13 |
|
489 << QVariant(true) // place hog 14 |
|
490 << QVariant(true) // shared ammo 15 |
|
491 << QVariant(false) // disable girders 16 |
|
492 << QVariant(false) // disable land objects 17 |
|
493 << QVariant(false) // AI survival 18 |
|
494 << QVariant(false) // inf. attack 19 |
|
495 << QVariant(false) // reset weps 20 |
|
496 << QVariant(false) // per hog ammo 21 |
|
497 << QVariant(100) // damage modfier 22 |
|
498 << QVariant(45) // turn time 23 |
|
499 << QVariant(100) // init health 24 |
|
500 << QVariant(15) // sudden death 25 |
|
501 << QVariant(5) // case prob 26 |
|
502 << QVariant(3) // mines time 27 |
|
503 << QVariant(3) // mines number 28 |
|
504 << QVariant(20) // mine dud pct 29 |
|
505 << QVariant(3) // explosives 30 |
|
506 << QVariant(35) // health case pct 31 |
|
507 << QVariant(30) // health case amt 32 |
|
508 << QVariant(30) // water rise amt 33 |
|
509 << QVariant(5) // health dec amt 34 |
|
510 ; |
|
511 |
|
512 |
431 schemes.append(defaultScheme); |
513 schemes.append(defaultScheme); |
432 schemes.append(proMode); |
514 schemes.append(proMode); |
433 schemes.append(shoppa); |
515 schemes.append(shoppa); |
434 schemes.append(cleanslate); |
516 schemes.append(cleanslate); |
435 schemes.append(minefield); |
517 schemes.append(minefield); |
436 schemes.append(barrelmayhem); |
518 schemes.append(barrelmayhem); |
437 schemes.append(tunnelhogs); |
519 schemes.append(tunnelhogs); |
438 schemes.append(forts); |
520 schemes.append(forts); |
439 schemes.append(timeless); |
521 schemes.append(timeless); |
|
522 schemes.append(thinkingportals); |
|
523 schemes.append(kingmode); |
440 |
524 |
441 |
525 |
442 int size = fileConfig.beginReadArray("schemes"); |
526 int size = fileConfig.beginReadArray("schemes"); |
443 for (int i = 0; i < size; ++i) { |
527 for (int i = 0; i < size; ++i) { |
444 fileConfig.setArrayIndex(i); |
528 fileConfig.setArrayIndex(i); |