QTfrontend/model/ammoSchemeModel.cpp
changeset 13025 261b8fd14235
parent 12961 1940f662b8c5
child 13026 ca7fdb431b34
equal deleted inserted replaced
13024:a568bc16a99a 13025:261b8fd14235
    83                          << "Tunnel Hogs"
    83                          << "Tunnel Hogs"
    84                          << "Timeless"
    84                          << "Timeless"
    85                          << "Thinking with Portals"
    85                          << "Thinking with Portals"
    86                          << "King Mode"
    86                          << "King Mode"
    87                          << "Construction Mode"
    87                          << "Construction Mode"
       
    88                          << "Space Invasion"
    88                          << "HedgeEditor"
    89                          << "HedgeEditor"
    89                          ;
    90                          ;
    90 
    91 
    91     numberOfDefaultSchemes = predefSchemesNames.size();
    92     numberOfDefaultSchemes = predefSchemesNames.size();
    92 
    93 
   615             << QVariant(100)           // get away time  41
   616             << QVariant(100)           // get away time  41
   616             << QVariant(0)             // world edge     42
   617             << QVariant(0)             // world edge     42
   617             << QVariant()              // scriptparam    43
   618             << QVariant()              // scriptparam    43
   618             ;
   619             ;
   619 
   620 
       
   621     QList<QVariant> spaceinvasion;
       
   622     spaceinvasion
       
   623             << predefSchemesNames[11]  // name           0
       
   624             << QVariant(false)         // fortsmode      1
       
   625             << QVariant(false)         // team divide    2
       
   626             << QVariant(false)         // solid land     3
       
   627             << QVariant(false)         // border         4
       
   628             << QVariant(false)         // low gravity    5
       
   629             << QVariant(false)         // laser sight    6
       
   630             << QVariant(false)         // invulnerable   7
       
   631             << QVariant(false)         // reset health   8
       
   632             << QVariant(false)         // vampiric       9
       
   633             << QVariant(false)         // karma          10
       
   634             << QVariant(false)         // artillery      11
       
   635             << QVariant(true)          // random order   12
       
   636             << QVariant(false)         // king           13
       
   637             << QVariant(false)         // place hog      14
       
   638             << QVariant(false)         // shared ammo    15
       
   639             << QVariant(true)          // disable girders 16
       
   640             << QVariant(false)         // disable land objects 17
       
   641             << QVariant(false)         // AI survival    18
       
   642             << QVariant(false)         // inf. attack    19
       
   643             << QVariant(false)         // reset weps     20
       
   644             << QVariant(false)         // per hog ammo   21
       
   645             << QVariant(false)         // no wind        22
       
   646             << QVariant(false)         // more wind      23
       
   647             << QVariant(false)         // tag team       24
       
   648             << QVariant(false)         // bottom border  25
       
   649             << QVariant(100)           // damage modfier 26
       
   650             << QVariant(45)            // turn time      27
       
   651             << QVariant(100)           // init health    28
       
   652             << QVariant(50)            // sudden death   29
       
   653             << QVariant(0)             // case prob      30
       
   654             << QVariant(3)             // mines time     31
       
   655             << QVariant(0)             // mines number   32
       
   656             << QVariant(0)             // mine dud pct   33
       
   657             << QVariant(0)             // explosives     34
       
   658             << QVariant(0)             // air mines      35
       
   659             << QVariant(0)             // health case pct 36
       
   660             << QVariant(25)            // health case amt 37
       
   661             << QVariant(0)             // water rise amt 38
       
   662             << QVariant(0)             // health dec amt 39
       
   663             << QVariant(100)           // rope modfier   40
       
   664             << QVariant(100)           // get away time  41
       
   665             << QVariant(0)             // world edge     42
       
   666             << QVariant()              // scriptparam    43
       
   667             ;
       
   668 
   620     QList<QVariant> hedgeeditor;
   669     QList<QVariant> hedgeeditor;
   621     hedgeeditor
   670     hedgeeditor
   622             << predefSchemesNames[11]  // name           0
   671             << predefSchemesNames[12]  // name           0
   623             << QVariant(false)         // fortsmode      1
   672             << QVariant(false)         // fortsmode      1
   624             << QVariant(false)         // team divide    2
   673             << QVariant(false)         // team divide    2
   625             << QVariant(false)         // solid land     3
   674             << QVariant(false)         // solid land     3
   626             << QVariant(false)         // border         4
   675             << QVariant(false)         // border         4
   627             << QVariant(false)         // low gravity    5
   676             << QVariant(false)         // low gravity    5
   676     schemes.append(tunnelhogs);
   725     schemes.append(tunnelhogs);
   677     schemes.append(timeless);
   726     schemes.append(timeless);
   678     schemes.append(thinkingportals);
   727     schemes.append(thinkingportals);
   679     schemes.append(kingmode);
   728     schemes.append(kingmode);
   680     schemes.append(construction);
   729     schemes.append(construction);
       
   730     schemes.append(spaceinvasion);
   681     schemes.append(hedgeeditor);
   731     schemes.append(hedgeeditor);
   682 
   732 
   683     if (!QDir(cfgdir->absolutePath() + "/Schemes").exists()) QDir().mkdir(cfgdir->absolutePath() + "/Schemes");
   733     if (!QDir(cfgdir->absolutePath() + "/Schemes").exists()) QDir().mkdir(cfgdir->absolutePath() + "/Schemes");
   684     if (!QDir(directory).exists()) {
   734     if (!QDir(directory).exists()) {
   685         QDir().mkdir(directory);
   735         QDir().mkdir(directory);