equal
deleted
inserted
replaced
54 << QVariant(4) // mines number 28 |
54 << QVariant(4) // mines number 28 |
55 << QVariant(0) // mine dud pct 29 |
55 << QVariant(0) // mine dud pct 29 |
56 << QVariant(2) // explosives 30 |
56 << QVariant(2) // explosives 30 |
57 << QVariant(35) // health case pct 31 |
57 << QVariant(35) // health case pct 31 |
58 << QVariant(25) // health case amt 32 |
58 << QVariant(25) // health case amt 32 |
|
59 << QVariant(47) // water rise amt 33 |
|
60 << QVariant(5) // health dec amt 34 |
59 ; |
61 ; |
60 |
62 |
61 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
63 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
62 QAbstractTableModel(parent), |
64 QAbstractTableModel(parent), |
63 fileConfig(fileName, QSettings::IniFormat) |
65 fileConfig(fileName, QSettings::IniFormat) |
108 << "minesnum" // 28 |
110 << "minesnum" // 28 |
109 << "minedudpct" // 29 |
111 << "minedudpct" // 29 |
110 << "explosives" // 30 |
112 << "explosives" // 30 |
111 << "healthprobability" // 31 |
113 << "healthprobability" // 31 |
112 << "healthcaseamount" // 32 |
114 << "healthcaseamount" // 32 |
|
115 << "waterrise" // 33 |
|
116 << "healthdecrease" // 34 |
113 ; |
117 ; |
114 |
118 |
115 QList<QVariant> proMode; |
119 QList<QVariant> proMode; |
116 proMode |
120 proMode |
117 << predefSchemesNames[1] // name 0 |
121 << predefSchemesNames[1] // name 0 |
145 << QVariant(0) // mines number 28 |
149 << QVariant(0) // mines number 28 |
146 << QVariant(0) // mine dud pct 29 |
150 << QVariant(0) // mine dud pct 29 |
147 << QVariant(2) // explosives 30 |
151 << QVariant(2) // explosives 30 |
148 << QVariant(35) // health case pct 31 |
152 << QVariant(35) // health case pct 31 |
149 << QVariant(25) // health case amt 32 |
153 << QVariant(25) // health case amt 32 |
|
154 << QVariant(47) // water rise amt 33 |
|
155 << QVariant(5) // health dec amt 34 |
150 ; |
156 ; |
151 |
157 |
152 QList<QVariant> shoppa; |
158 QList<QVariant> shoppa; |
153 shoppa |
159 shoppa |
154 << predefSchemesNames[2] // name 0 |
160 << predefSchemesNames[2] // name 0 |
182 << QVariant(0) // mines number 28 |
188 << QVariant(0) // mines number 28 |
183 << QVariant(0) // mine dud pct 29 |
189 << QVariant(0) // mine dud pct 29 |
184 << QVariant(0) // explosives 30 |
190 << QVariant(0) // explosives 30 |
185 << QVariant(0) // health case pct 31 |
191 << QVariant(0) // health case pct 31 |
186 << QVariant(25) // health case amt 32 |
192 << QVariant(25) // health case amt 32 |
|
193 << QVariant(47) // water rise amt 33 |
|
194 << QVariant(5) // health dec amt 34 |
187 ; |
195 ; |
188 |
196 |
189 QList<QVariant> cleanslate; |
197 QList<QVariant> cleanslate; |
190 cleanslate |
198 cleanslate |
191 << predefSchemesNames[3] // name 0 |
199 << predefSchemesNames[3] // name 0 |
219 << QVariant(4) // mines number 28 |
227 << QVariant(4) // mines number 28 |
220 << QVariant(0) // mine dud pct 29 |
228 << QVariant(0) // mine dud pct 29 |
221 << QVariant(2) // explosives 30 |
229 << QVariant(2) // explosives 30 |
222 << QVariant(25) // health case pct 31 |
230 << QVariant(25) // health case pct 31 |
223 << QVariant(50) // health case amt 32 |
231 << QVariant(50) // health case amt 32 |
|
232 << QVariant(47) // water rise amt 33 |
|
233 << QVariant(5) // health dec amt 34 |
224 ; |
234 ; |
225 |
235 |
226 QList<QVariant> minefield; |
236 QList<QVariant> minefield; |
227 minefield |
237 minefield |
228 << predefSchemesNames[4] // name 0 |
238 << predefSchemesNames[4] // name 0 |
256 << QVariant(80) // mines number 28 |
266 << QVariant(80) // mines number 28 |
257 << QVariant(0) // mine dud pct 29 |
267 << QVariant(0) // mine dud pct 29 |
258 << QVariant(0) // explosives 30 |
268 << QVariant(0) // explosives 30 |
259 << QVariant(35) // health case pct 31 |
269 << QVariant(35) // health case pct 31 |
260 << QVariant(25) // health case amt 32 |
270 << QVariant(25) // health case amt 32 |
|
271 << QVariant(47) // water rise amt 33 |
|
272 << QVariant(5) // health dec amt 34 |
261 ; |
273 ; |
262 |
274 |
263 QList<QVariant> barrelmayhem; |
275 QList<QVariant> barrelmayhem; |
264 barrelmayhem |
276 barrelmayhem |
265 << predefSchemesNames[5] // name 0 |
277 << predefSchemesNames[5] // name 0 |
293 << QVariant(0) // mines number 28 |
305 << QVariant(0) // mines number 28 |
294 << QVariant(0) // mine dud pct 29 |
306 << QVariant(0) // mine dud pct 29 |
295 << QVariant(80) // explosives 30 |
307 << QVariant(80) // explosives 30 |
296 << QVariant(35) // health case pct 31 |
308 << QVariant(35) // health case pct 31 |
297 << QVariant(25) // health case amt 32 |
309 << QVariant(25) // health case amt 32 |
|
310 << QVariant(47) // water rise amt 33 |
|
311 << QVariant(5) // health dec amt 34 |
298 ; |
312 ; |
299 |
313 |
300 QList<QVariant> tunnelhogs; |
314 QList<QVariant> tunnelhogs; |
301 tunnelhogs |
315 tunnelhogs |
302 << predefSchemesNames[6] // name 0 |
316 << predefSchemesNames[6] // name 0 |
330 << QVariant(10) // mines number 28 |
344 << QVariant(10) // mines number 28 |
331 << QVariant(10) // mine dud pct 29 |
345 << QVariant(10) // mine dud pct 29 |
332 << QVariant(10) // explosives 30 |
346 << QVariant(10) // explosives 30 |
333 << QVariant(35) // health case pct 31 |
347 << QVariant(35) // health case pct 31 |
334 << QVariant(25) // health case amt 32 |
348 << QVariant(25) // health case amt 32 |
|
349 << QVariant(47) // water rise amt 33 |
|
350 << QVariant(5) // health dec amt 34 |
335 ; |
351 ; |
336 |
352 |
337 QList<QVariant> forts; |
353 QList<QVariant> forts; |
338 forts |
354 forts |
339 << predefSchemesNames[7] // name 0 |
355 << predefSchemesNames[7] // name 0 |
367 << QVariant(0) // mines number 28 |
383 << QVariant(0) // mines number 28 |
368 << QVariant(0) // mine dud pct 29 |
384 << QVariant(0) // mine dud pct 29 |
369 << QVariant(0) // explosives 30 |
385 << QVariant(0) // explosives 30 |
370 << QVariant(35) // health case pct 31 |
386 << QVariant(35) // health case pct 31 |
371 << QVariant(25) // health case amt 32 |
387 << QVariant(25) // health case amt 32 |
|
388 << QVariant(47) // water rise amt 33 |
|
389 << QVariant(5) // health dec amt 34 |
372 ; |
390 ; |
373 |
391 |
374 QList<QVariant> timeless; |
392 QList<QVariant> timeless; |
375 timeless |
393 timeless |
376 << predefSchemesNames[8] // name 0 |
394 << predefSchemesNames[8] // name 0 |
404 << QVariant(5) // mines number 28 |
422 << QVariant(5) // mines number 28 |
405 << QVariant(10) // mine dud pct 29 |
423 << QVariant(10) // mine dud pct 29 |
406 << QVariant(2) // explosives 30 |
424 << QVariant(2) // explosives 30 |
407 << QVariant(35) // health case pct 31 |
425 << QVariant(35) // health case pct 31 |
408 << QVariant(30) // health case amt 32 |
426 << QVariant(30) // health case amt 32 |
|
427 << QVariant(47) // water rise amt 33 |
|
428 << QVariant(5) // health dec amt 34 |
409 ; |
429 ; |
410 |
430 |
411 schemes.append(defaultScheme); |
431 schemes.append(defaultScheme); |
412 schemes.append(proMode); |
432 schemes.append(proMode); |
413 schemes.append(shoppa); |
433 schemes.append(shoppa); |