QTfrontend/gamecfgwidget.cpp
changeset 2881 70d7976fa829
parent 2762 2fbc8d35eb52
child 2882 b9aceb3fe3d6
equal deleted inserted replaced
2880:e95c2f489345 2881:70d7976fa829
   124 		result |= 0x2000;
   124 		result |= 0x2000;
   125 	if (schemeData(13).toBool())
   125 	if (schemeData(13).toBool())
   126 		result |= 0x4000;
   126 		result |= 0x4000;
   127 	if (schemeData(14).toBool())
   127 	if (schemeData(14).toBool())
   128 		result |= 0x8000;
   128 		result |= 0x8000;
       
   129 	if (schemeData(15).toBool())
       
   130 		result |= 0x10000;
   129 
   131 
   130 	return result;
   132 	return result;
   131 }
   133 }
   132 
   134 
   133 quint32 GameCFGWidget::getInitHealth() const
   135 quint32 GameCFGWidget::getInitHealth() const
   134 {
   136 {
   135 	return schemeData(17).toInt();
   137 	return schemeData(18).toInt();
   136 }
   138 }
   137 
   139 
   138 QStringList GameCFGWidget::getFullConfig() const
   140 QStringList GameCFGWidget::getFullConfig() const
   139 {
   141 {
   140 	QStringList sl;
   142 	QStringList sl;
   141 	sl.append("eseed " + pMapContainer->getCurrentSeed());
   143 	sl.append("eseed " + pMapContainer->getCurrentSeed());
   142 	sl.append(QString("e$gmflags %1").arg(getGameFlags()));
   144 	sl.append(QString("e$gmflags %1").arg(getGameFlags()));
   143 	sl.append(QString("e$damagepct %1").arg(schemeData(15).toInt()));
   145 	sl.append(QString("e$damagepct %1").arg(schemeData(16).toInt()));
   144 	sl.append(QString("e$turntime %1").arg(schemeData(16).toInt() * 1000));
   146 	sl.append(QString("e$turntime %1").arg(schemeData(17).toInt() * 1000));
   145 	sl.append(QString("e$minestime %1").arg(schemeData(20).toInt() * 1000));
   147 	sl.append(QString("e$minestime %1").arg(schemeData(21).toInt() * 1000));
   146 	sl.append(QString("e$landadds %1").arg(schemeData(21).toInt()));
   148 	sl.append(QString("e$landadds %1").arg(schemeData(22).toInt()));
   147 	sl.append(QString("e$sd_turns %1").arg(schemeData(18).toInt()));
   149 	sl.append(QString("e$sd_turns %1").arg(schemeData(19).toInt()));
   148 	sl.append(QString("e$casefreq %1").arg(schemeData(19).toInt()));
   150 	sl.append(QString("e$casefreq %1").arg(schemeData(20).toInt()));
   149 	sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()));
   151 	sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()));
   150 
   152 
   151 	QString currentMap = pMapContainer->getCurrentMap();
   153 	QString currentMap = pMapContainer->getCurrentMap();
   152 	if (currentMap.size() > 0)
   154 	if (currentMap.size() > 0)
   153 		sl.append("emap " + currentMap);
   155 		sl.append("emap " + currentMap);