213 result |= 0x00800000; // no wind |
213 result |= 0x00800000; // no wind |
214 if (schemeData(23).toBool()) |
214 if (schemeData(23).toBool()) |
215 result |= 0x01000000; // more wind |
215 result |= 0x01000000; // more wind |
216 if (schemeData(24).toBool()) |
216 if (schemeData(24).toBool()) |
217 result |= 0x02000000; // tag team |
217 result |= 0x02000000; // tag team |
|
218 if (schemeData(25).toBool()) |
|
219 result |= 0x04000000; // bottom border |
218 |
220 |
219 return result; |
221 return result; |
220 } |
222 } |
221 |
223 |
222 quint32 GameCFGWidget::getInitHealth() const |
224 quint32 GameCFGWidget::getInitHealth() const |
223 { |
225 { |
224 return schemeData(27).toInt(); |
226 return schemeData(28).toInt(); |
225 } |
227 } |
226 |
228 |
227 QByteArray GameCFGWidget::getFullConfig() const |
229 QByteArray GameCFGWidget::getFullConfig() const |
228 { |
230 { |
229 QList<QByteArray> bcfg; |
231 QList<QByteArray> bcfg; |
243 bcfg << QString("escript Scripts/Multiplayer/%1.lua").arg(Scripts->itemData(Scripts->currentIndex()).toList()[0].toString()).toUtf8(); |
245 bcfg << QString("escript Scripts/Multiplayer/%1.lua").arg(Scripts->itemData(Scripts->currentIndex()).toList()[0].toString()).toUtf8(); |
244 } |
246 } |
245 |
247 |
246 bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8(); |
248 bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8(); |
247 bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8(); |
249 bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8(); |
248 bcfg << QString("e$damagepct %1").arg(schemeData(25).toInt()).toUtf8(); |
250 bcfg << QString("e$damagepct %1").arg(schemeData(26).toInt()).toUtf8(); |
249 bcfg << QString("e$turntime %1").arg(schemeData(26).toInt() * 1000).toUtf8(); |
251 bcfg << QString("e$turntime %1").arg(schemeData(27).toInt() * 1000).toUtf8(); |
250 bcfg << QString("e$sd_turns %1").arg(schemeData(28).toInt()).toUtf8(); |
252 bcfg << QString("e$sd_turns %1").arg(schemeData(29).toInt()).toUtf8(); |
251 bcfg << QString("e$casefreq %1").arg(schemeData(29).toInt()).toUtf8(); |
253 bcfg << QString("e$casefreq %1").arg(schemeData(30).toInt()).toUtf8(); |
252 bcfg << QString("e$minestime %1").arg(schemeData(30).toInt() * 1000).toUtf8(); |
254 bcfg << QString("e$minestime %1").arg(schemeData(31).toInt() * 1000).toUtf8(); |
253 bcfg << QString("e$minesnum %1").arg(schemeData(31).toInt()).toUtf8(); |
255 bcfg << QString("e$minesnum %1").arg(schemeData(32).toInt()).toUtf8(); |
254 bcfg << QString("e$minedudpct %1").arg(schemeData(32).toInt()).toUtf8(); |
256 bcfg << QString("e$minedudpct %1").arg(schemeData(33).toInt()).toUtf8(); |
255 bcfg << QString("e$explosives %1").arg(schemeData(33).toInt()).toUtf8(); |
257 bcfg << QString("e$explosives %1").arg(schemeData(34).toInt()).toUtf8(); |
256 bcfg << QString("e$healthprob %1").arg(schemeData(34).toInt()).toUtf8(); |
258 bcfg << QString("e$healthprob %1").arg(schemeData(35).toInt()).toUtf8(); |
257 bcfg << QString("e$hcaseamount %1").arg(schemeData(35).toInt()).toUtf8(); |
259 bcfg << QString("e$hcaseamount %1").arg(schemeData(36).toInt()).toUtf8(); |
258 bcfg << QString("e$waterrise %1").arg(schemeData(36).toInt()).toUtf8(); |
260 bcfg << QString("e$waterrise %1").arg(schemeData(37).toInt()).toUtf8(); |
259 bcfg << QString("e$healthdec %1").arg(schemeData(37).toInt()).toUtf8(); |
261 bcfg << QString("e$healthdec %1").arg(schemeData(38).toInt()).toUtf8(); |
260 bcfg << QString("e$ropepct %1").arg(schemeData(38).toInt()).toUtf8(); |
262 bcfg << QString("e$ropepct %1").arg(schemeData(39).toInt()).toUtf8(); |
261 bcfg << QString("e$getawaytime %1").arg(schemeData(39).toInt()).toUtf8(); |
263 bcfg << QString("e$getawaytime %1").arg(schemeData(40).toInt()).toUtf8(); |
262 bcfg << QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()).toUtf8(); |
264 bcfg << QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()).toUtf8(); |
263 bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8(); |
265 bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8(); |
264 |
266 |
265 switch (mapgen) |
267 switch (mapgen) |
266 { |
268 { |