209 result |= 0x00400000; // per hog ammo |
209 result |= 0x00400000; // per hog ammo |
210 if (schemeData(22).toBool()) |
210 if (schemeData(22).toBool()) |
211 result |= 0x00800000; // no wind |
211 result |= 0x00800000; // no wind |
212 if (schemeData(23).toBool()) |
212 if (schemeData(23).toBool()) |
213 result |= 0x01000000; // more wind |
213 result |= 0x01000000; // more wind |
|
214 if (schemeData(24).toBool()) |
|
215 result |= 0x02000000; // tag team |
214 |
216 |
215 return result; |
217 return result; |
216 } |
218 } |
217 |
219 |
218 quint32 GameCFGWidget::getInitHealth() const |
220 quint32 GameCFGWidget::getInitHealth() const |
219 { |
221 { |
220 return schemeData(26).toInt(); |
222 return schemeData(27).toInt(); |
221 } |
223 } |
222 |
224 |
223 QByteArray GameCFGWidget::getFullConfig() const |
225 QByteArray GameCFGWidget::getFullConfig() const |
224 { |
226 { |
225 QList<QByteArray> bcfg; |
227 QList<QByteArray> bcfg; |
226 int mapgen = pMapContainer->get_mapgen(); |
228 int mapgen = pMapContainer->get_mapgen(); |
227 |
229 |
228 bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8(); |
230 bcfg << QString("eseed " + pMapContainer->getCurrentSeed()).toUtf8(); |
229 bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8(); |
231 bcfg << QString("e$gmflags %1").arg(getGameFlags()).toUtf8(); |
230 bcfg << QString("e$damagepct %1").arg(schemeData(24).toInt()).toUtf8(); |
232 bcfg << QString("e$damagepct %1").arg(schemeData(25).toInt()).toUtf8(); |
231 bcfg << QString("e$turntime %1").arg(schemeData(25).toInt() * 1000).toUtf8(); |
233 bcfg << QString("e$turntime %1").arg(schemeData(26).toInt() * 1000).toUtf8(); |
232 bcfg << QString("e$sd_turns %1").arg(schemeData(27).toInt()).toUtf8(); |
234 bcfg << QString("e$sd_turns %1").arg(schemeData(28).toInt()).toUtf8(); |
233 bcfg << QString("e$casefreq %1").arg(schemeData(28).toInt()).toUtf8(); |
235 bcfg << QString("e$casefreq %1").arg(schemeData(29).toInt()).toUtf8(); |
234 bcfg << QString("e$minestime %1").arg(schemeData(29).toInt() * 1000).toUtf8(); |
236 bcfg << QString("e$minestime %1").arg(schemeData(30).toInt() * 1000).toUtf8(); |
235 bcfg << QString("e$minesnum %1").arg(schemeData(30).toInt()).toUtf8(); |
237 bcfg << QString("e$minesnum %1").arg(schemeData(31).toInt()).toUtf8(); |
236 bcfg << QString("e$minedudpct %1").arg(schemeData(31).toInt()).toUtf8(); |
238 bcfg << QString("e$minedudpct %1").arg(schemeData(32).toInt()).toUtf8(); |
237 bcfg << QString("e$explosives %1").arg(schemeData(32).toInt()).toUtf8(); |
239 bcfg << QString("e$explosives %1").arg(schemeData(33).toInt()).toUtf8(); |
238 bcfg << QString("e$healthprob %1").arg(schemeData(33).toInt()).toUtf8(); |
240 bcfg << QString("e$healthprob %1").arg(schemeData(34).toInt()).toUtf8(); |
239 bcfg << QString("e$hcaseamount %1").arg(schemeData(34).toInt()).toUtf8(); |
241 bcfg << QString("e$hcaseamount %1").arg(schemeData(35).toInt()).toUtf8(); |
240 bcfg << QString("e$waterrise %1").arg(schemeData(35).toInt()).toUtf8(); |
242 bcfg << QString("e$waterrise %1").arg(schemeData(36).toInt()).toUtf8(); |
241 bcfg << QString("e$healthdec %1").arg(schemeData(36).toInt()).toUtf8(); |
243 bcfg << QString("e$healthdec %1").arg(schemeData(37).toInt()).toUtf8(); |
242 bcfg << QString("e$ropepct %1").arg(schemeData(37).toInt()).toUtf8(); |
244 bcfg << QString("e$ropepct %1").arg(schemeData(38).toInt()).toUtf8(); |
243 bcfg << QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()).toUtf8(); |
245 bcfg << QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter()).toUtf8(); |
244 bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8(); |
246 bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8(); |
245 |
247 |
246 switch (mapgen) |
248 switch (mapgen) |
247 { |
249 { |