155 return result; |
155 return result; |
156 } |
156 } |
157 |
157 |
158 quint32 GameCFGWidget::getInitHealth() const |
158 quint32 GameCFGWidget::getInitHealth() const |
159 { |
159 { |
160 return schemeData(24).toInt(); |
160 return schemeData(25).toInt(); |
161 } |
161 } |
162 |
162 |
163 QStringList GameCFGWidget::getFullConfig() const |
163 QStringList GameCFGWidget::getFullConfig() const |
164 { |
164 { |
165 QStringList sl; |
165 QStringList sl; |
166 sl.append("eseed " + pMapContainer->getCurrentSeed()); |
166 sl.append("eseed " + pMapContainer->getCurrentSeed()); |
167 sl.append(QString("e$gmflags %1").arg(getGameFlags())); |
167 sl.append(QString("e$gmflags %1").arg(getGameFlags())); |
168 sl.append(QString("e$damagepct %1").arg(schemeData(22).toInt())); |
168 sl.append(QString("e$damagepct %1").arg(schemeData(23).toInt())); |
169 sl.append(QString("e$turntime %1").arg(schemeData(23).toInt() * 1000)); |
169 sl.append(QString("e$turntime %1").arg(schemeData(24).toInt() * 1000)); |
170 sl.append(QString("e$minestime %1").arg(schemeData(27).toInt())); |
170 sl.append(QString("e$sd_turns %1").arg(schemeData(26).toInt())); |
171 sl.append(QString("e$minesnum %1").arg(schemeData(28).toInt())); |
171 sl.append(QString("e$casefreq %1").arg(schemeData(27).toInt())); |
172 sl.append(QString("e$sd_turns %1").arg(schemeData(25).toInt())); |
172 sl.append(QString("e$minestime %1").arg(schemeData(28).toInt())); |
173 sl.append(QString("e$casefreq %1").arg(schemeData(26).toInt())); |
173 sl.append(QString("e$minesnum %1").arg(schemeData(29).toInt())); |
174 sl.append(QString("e$minedudpct %1").arg(schemeData(29).toInt())); |
174 sl.append(QString("e$minedudpct %1").arg(schemeData(30).toInt())); |
175 sl.append(QString("e$explosives %1").arg(schemeData(30).toInt())); |
175 sl.append(QString("e$explosives %1").arg(schemeData(31).toInt())); |
176 sl.append(QString("e$healthprob %1").arg(schemeData(31).toInt())); |
176 sl.append(QString("e$healthprob %1").arg(schemeData(32).toInt())); |
177 sl.append(QString("e$hcaseamount %1").arg(schemeData(32).toInt())); |
177 sl.append(QString("e$hcaseamount %1").arg(schemeData(33).toInt())); |
178 sl.append(QString("e$waterrise %1").arg(schemeData(33).toInt())); |
178 sl.append(QString("e$waterrise %1").arg(schemeData(34).toInt())); |
179 sl.append(QString("e$healthdec %1").arg(schemeData(34).toInt())); |
179 sl.append(QString("e$healthdec %1").arg(schemeData(35).toInt())); |
180 sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter())); |
180 sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter())); |
181 sl.append(QString("e$mapgen %1").arg(pMapContainer->get_mapgen())); |
181 sl.append(QString("e$mapgen %1").arg(pMapContainer->get_mapgen())); |
182 sl.append(QString("e$maze_size %1").arg(pMapContainer->get_maze_size())); |
182 sl.append(QString("e$maze_size %1").arg(pMapContainer->get_maze_size())); |
183 |
183 |
184 QString currentMap = pMapContainer->getCurrentMap(); |
184 QString currentMap = pMapContainer->getCurrentMap(); |