QTfrontend/model/ammoSchemeModel.cpp
changeset 10549 6b08a29cadea
parent 10310 22f541fbde32
child 10721 9b789de8e5df
equal deleted inserted replaced
10548:28584bcb73a2 10549:6b08a29cadea
    82                          << "Tunnel Hogs"
    82                          << "Tunnel Hogs"
    83                          << "Fort Mode"
    83                          << "Fort Mode"
    84                          << "Timeless"
    84                          << "Timeless"
    85                          << "Thinking with Portals"
    85                          << "Thinking with Portals"
    86                          << "King Mode"
    86                          << "King Mode"
       
    87 						 << "Construction Mode"
    87                          ;
    88                          ;
    88 
    89 
    89     numberOfDefaultSchemes = predefSchemesNames.size();
    90     numberOfDefaultSchemes = predefSchemesNames.size();
    90 
    91 
    91     spNames = QStringList()
    92     spNames = QStringList()
   602             << QVariant(100)           // get away time  40
   603             << QVariant(100)           // get away time  40
   603             << QVariant(0)             // world edge     41
   604             << QVariant(0)             // world edge     41
   604             << QVariant()              // scriptparam    42
   605             << QVariant()              // scriptparam    42
   605             ;
   606             ;
   606 
   607 
   607 
   608 	QList<QVariant> construction;
       
   609     construction
       
   610             << predefSchemesNames[11]  // name           0
       
   611             << QVariant(false)         // fortsmode      1
       
   612             << QVariant(false)         // team divide    2
       
   613             << QVariant(false)         // solid land     3
       
   614             << QVariant(false)         // border         4
       
   615             << QVariant(false)         // low gravity    5
       
   616             << QVariant(false)         // laser sight    6
       
   617             << QVariant(false)         // invulnerable   7
       
   618             << QVariant(false)         // reset health   8
       
   619             << QVariant(false)         // vampiric       9
       
   620             << QVariant(false)         // karma          10
       
   621             << QVariant(false)         // artillery      11
       
   622             << QVariant(true)          // random order   12
       
   623             << QVariant(false)          // king           13
       
   624             << QVariant(false)         // place hog      14
       
   625             << QVariant(false)         // shared ammo    15
       
   626             << QVariant(true)         // disable girders 16
       
   627             << QVariant(true)         // disable land objects 17
       
   628             << QVariant(false)         // AI survival    18
       
   629             << QVariant(true)         // inf. attack    19
       
   630             << QVariant(false)         // reset weps     20
       
   631             << QVariant(true)         // per hog ammo   21
       
   632             << QVariant(false)         // no wind        22
       
   633             << QVariant(false)         // more wind      23
       
   634             << QVariant(false)         // tag team       24
       
   635             << QVariant(false)         // bottom border  25
       
   636             << QVariant(100)           // damage modfier 26
       
   637             << QVariant(45)            // turn time      27
       
   638             << QVariant(100)           // init health    28
       
   639             << QVariant(15)            // sudden death   29
       
   640             << QVariant(5)             // case prob      30
       
   641             << QVariant(3)             // mines time     31
       
   642             << QVariant(0)             // mines number   32
       
   643             << QVariant(0)             // mine dud pct   33
       
   644             << QVariant(0)             // explosives     34
       
   645             << QVariant(35)            // health case pct 35
       
   646             << QVariant(25)            // health case amt 36
       
   647             << QVariant(47)            // water rise amt 37
       
   648             << QVariant(5)             // health dec amt 38
       
   649             << QVariant(100)           // rope modfier   39
       
   650             << QVariant(100)           // get away time  40
       
   651             << QVariant(0)             // world edge     41
       
   652             << QVariant()              // scriptparam    42
       
   653             ;
       
   654 			
   608     schemes.append(defaultScheme);
   655     schemes.append(defaultScheme);
   609     schemes.append(proMode);
   656     schemes.append(proMode);
   610     schemes.append(shoppa);
   657     schemes.append(shoppa);
   611     schemes.append(cleanslate);
   658     schemes.append(cleanslate);
   612     schemes.append(minefield);
   659     schemes.append(minefield);
   614     schemes.append(tunnelhogs);
   661     schemes.append(tunnelhogs);
   615     schemes.append(forts);
   662     schemes.append(forts);
   616     schemes.append(timeless);
   663     schemes.append(timeless);
   617     schemes.append(thinkingportals);
   664     schemes.append(thinkingportals);
   618     schemes.append(kingmode);
   665     schemes.append(kingmode);
       
   666 	schemes.append(construction);
   619 
   667 
   620 
   668 
   621     int size = fileConfig.beginReadArray("schemes");
   669     int size = fileConfig.beginReadArray("schemes");
   622     for (int i = 0; i < size; ++i)
   670     for (int i = 0; i < size; ++i)
   623     {
   671     {