equal
deleted
inserted
replaced
60 << QVariant(35) // health case pct 34 |
60 << QVariant(35) // health case pct 34 |
61 << QVariant(25) // health case amt 35 |
61 << QVariant(25) // health case amt 35 |
62 << QVariant(47) // water rise amt 36 |
62 << QVariant(47) // water rise amt 36 |
63 << QVariant(5) // health dec amt 37 |
63 << QVariant(5) // health dec amt 37 |
64 << QVariant(100) // rope modfier 38 |
64 << QVariant(100) // rope modfier 38 |
|
65 << QVariant(100) // get away time 39 |
65 ; |
66 ; |
66 |
67 |
67 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
68 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
68 QAbstractTableModel(parent), |
69 QAbstractTableModel(parent), |
69 fileConfig(fileName, QSettings::IniFormat) |
70 fileConfig(fileName, QSettings::IniFormat) |
121 << "explosives" // 33 |
122 << "explosives" // 33 |
122 << "healthprobability" // 34 |
123 << "healthprobability" // 34 |
123 << "healthcaseamount" // 35 |
124 << "healthcaseamount" // 35 |
124 << "waterrise" // 36 |
125 << "waterrise" // 36 |
125 << "healthdecrease" // 37 |
126 << "healthdecrease" // 37 |
126 << "ropepct" // 38 |
127 << "ropepct" // 38 |
|
128 << "getawaytime" // 39 |
127 ; |
129 ; |
128 |
130 |
129 QList<QVariant> proMode; |
131 QList<QVariant> proMode; |
130 proMode |
132 proMode |
131 << predefSchemesNames[1] // name 0 |
133 << predefSchemesNames[1] // name 0 |
164 << QVariant(2) // explosives 33 |
166 << QVariant(2) // explosives 33 |
165 << QVariant(35) // health case pct 34 |
167 << QVariant(35) // health case pct 34 |
166 << QVariant(25) // health case amt 35 |
168 << QVariant(25) // health case amt 35 |
167 << QVariant(47) // water rise amt 36 |
169 << QVariant(47) // water rise amt 36 |
168 << QVariant(5) // health dec amt 37 |
170 << QVariant(5) // health dec amt 37 |
169 << QVariant(100) // rope modfier 38 |
171 << QVariant(100) // rope modfier 38 |
|
172 << QVariant(100) // get away time 39 |
170 ; |
173 ; |
171 |
174 |
172 QList<QVariant> shoppa; |
175 QList<QVariant> shoppa; |
173 shoppa |
176 shoppa |
174 << predefSchemesNames[2] // name 0 |
177 << predefSchemesNames[2] // name 0 |
207 << QVariant(0) // explosives 33 |
210 << QVariant(0) // explosives 33 |
208 << QVariant(0) // health case pct 34 |
211 << QVariant(0) // health case pct 34 |
209 << QVariant(25) // health case amt 35 |
212 << QVariant(25) // health case amt 35 |
210 << QVariant(47) // water rise amt 36 |
213 << QVariant(47) // water rise amt 36 |
211 << QVariant(5) // health dec amt 37 |
214 << QVariant(5) // health dec amt 37 |
212 << QVariant(100) // rope modfier 38 |
215 << QVariant(100) // rope modfier 38 |
|
216 << QVariant(100) // get away time 39 |
213 ; |
217 ; |
214 |
218 |
215 QList<QVariant> cleanslate; |
219 QList<QVariant> cleanslate; |
216 cleanslate |
220 cleanslate |
217 << predefSchemesNames[3] // name 0 |
221 << predefSchemesNames[3] // name 0 |
250 << QVariant(2) // explosives 33 |
254 << QVariant(2) // explosives 33 |
251 << QVariant(35) // health case pct 34 |
255 << QVariant(35) // health case pct 34 |
252 << QVariant(25) // health case amt 35 |
256 << QVariant(25) // health case amt 35 |
253 << QVariant(47) // water rise amt 36 |
257 << QVariant(47) // water rise amt 36 |
254 << QVariant(5) // health dec amt 37 |
258 << QVariant(5) // health dec amt 37 |
255 << QVariant(100) // rope modfier 38 |
259 << QVariant(100) // rope modfier 38 |
|
260 << QVariant(100) // get away time 39 |
256 ; |
261 ; |
257 |
262 |
258 QList<QVariant> minefield; |
263 QList<QVariant> minefield; |
259 minefield |
264 minefield |
260 << predefSchemesNames[4] // name 0 |
265 << predefSchemesNames[4] // name 0 |
293 << QVariant(0) // explosives 33 |
298 << QVariant(0) // explosives 33 |
294 << QVariant(35) // health case pct 34 |
299 << QVariant(35) // health case pct 34 |
295 << QVariant(25) // health case amt 35 |
300 << QVariant(25) // health case amt 35 |
296 << QVariant(47) // water rise amt 36 |
301 << QVariant(47) // water rise amt 36 |
297 << QVariant(5) // health dec amt 37 |
302 << QVariant(5) // health dec amt 37 |
298 << QVariant(100) // rope modfier 38 |
303 << QVariant(100) // rope modfier 38 |
|
304 << QVariant(100) // get away time 39 |
299 ; |
305 ; |
300 |
306 |
301 QList<QVariant> barrelmayhem; |
307 QList<QVariant> barrelmayhem; |
302 barrelmayhem |
308 barrelmayhem |
303 << predefSchemesNames[5] // name 0 |
309 << predefSchemesNames[5] // name 0 |
336 << QVariant(80) // explosives 33 |
342 << QVariant(80) // explosives 33 |
337 << QVariant(35) // health case pct 34 |
343 << QVariant(35) // health case pct 34 |
338 << QVariant(25) // health case amt 35 |
344 << QVariant(25) // health case amt 35 |
339 << QVariant(47) // water rise amt 36 |
345 << QVariant(47) // water rise amt 36 |
340 << QVariant(5) // health dec amt 37 |
346 << QVariant(5) // health dec amt 37 |
341 << QVariant(100) // rope modfier 38 |
347 << QVariant(100) // rope modfier 38 |
|
348 << QVariant(100) // get away time 39 |
342 ; |
349 ; |
343 |
350 |
344 QList<QVariant> tunnelhogs; |
351 QList<QVariant> tunnelhogs; |
345 tunnelhogs |
352 tunnelhogs |
346 << predefSchemesNames[6] // name 0 |
353 << predefSchemesNames[6] // name 0 |
379 << QVariant(10) // explosives 33 |
386 << QVariant(10) // explosives 33 |
380 << QVariant(35) // health case pct 34 |
387 << QVariant(35) // health case pct 34 |
381 << QVariant(25) // health case amt 35 |
388 << QVariant(25) // health case amt 35 |
382 << QVariant(47) // water rise amt 36 |
389 << QVariant(47) // water rise amt 36 |
383 << QVariant(5) // health dec amt 37 |
390 << QVariant(5) // health dec amt 37 |
384 << QVariant(100) // rope modfier 38 |
391 << QVariant(100) // rope modfier 38 |
|
392 << QVariant(100) // get away time 39 |
385 ; |
393 ; |
386 |
394 |
387 QList<QVariant> forts; |
395 QList<QVariant> forts; |
388 forts |
396 forts |
389 << predefSchemesNames[7] // name 0 |
397 << predefSchemesNames[7] // name 0 |
422 << QVariant(0) // explosives 33 |
430 << QVariant(0) // explosives 33 |
423 << QVariant(35) // health case pct 34 |
431 << QVariant(35) // health case pct 34 |
424 << QVariant(25) // health case amt 35 |
432 << QVariant(25) // health case amt 35 |
425 << QVariant(47) // water rise amt 36 |
433 << QVariant(47) // water rise amt 36 |
426 << QVariant(5) // health dec amt 37 |
434 << QVariant(5) // health dec amt 37 |
427 << QVariant(100) // rope modfier 38 |
435 << QVariant(100) // rope modfier 38 |
|
436 << QVariant(100) // get away time 39 |
428 ; |
437 ; |
429 |
438 |
430 QList<QVariant> timeless; |
439 QList<QVariant> timeless; |
431 timeless |
440 timeless |
432 << predefSchemesNames[8] // name 0 |
441 << predefSchemesNames[8] // name 0 |
465 << QVariant(2) // explosives 33 |
474 << QVariant(2) // explosives 33 |
466 << QVariant(35) // health case pct 34 |
475 << QVariant(35) // health case pct 34 |
467 << QVariant(30) // health case amt 35 |
476 << QVariant(30) // health case amt 35 |
468 << QVariant(0) // water rise amt 36 |
477 << QVariant(0) // water rise amt 36 |
469 << QVariant(0) // health dec amt 37 |
478 << QVariant(0) // health dec amt 37 |
470 << QVariant(100) // rope modfier 38 |
479 << QVariant(100) // rope modfier 38 |
|
480 << QVariant(100) // get away time 39 |
471 ; |
481 ; |
472 |
482 |
473 QList<QVariant> thinkingportals; |
483 QList<QVariant> thinkingportals; |
474 thinkingportals |
484 thinkingportals |
475 << predefSchemesNames[9] // name 0 |
485 << predefSchemesNames[9] // name 0 |
508 << QVariant(5) // explosives 33 |
518 << QVariant(5) // explosives 33 |
509 << QVariant(25) // health case pct 34 |
519 << QVariant(25) // health case pct 34 |
510 << QVariant(25) // health case amt 35 |
520 << QVariant(25) // health case amt 35 |
511 << QVariant(47) // water rise amt 36 |
521 << QVariant(47) // water rise amt 36 |
512 << QVariant(5) // health dec amt 37 |
522 << QVariant(5) // health dec amt 37 |
513 << QVariant(100) // rope modfier 38 |
523 << QVariant(100) // rope modfier 38 |
|
524 << QVariant(100) // get away time 39 |
514 ; |
525 ; |
515 |
526 |
516 QList<QVariant> kingmode; |
527 QList<QVariant> kingmode; |
517 kingmode |
528 kingmode |
518 << predefSchemesNames[10] // name 0 |
529 << predefSchemesNames[10] // name 0 |
551 << QVariant(2) // explosives 33 |
562 << QVariant(2) // explosives 33 |
552 << QVariant(35) // health case pct 34 |
563 << QVariant(35) // health case pct 34 |
553 << QVariant(25) // health case amt 35 |
564 << QVariant(25) // health case amt 35 |
554 << QVariant(47) // water rise amt 36 |
565 << QVariant(47) // water rise amt 36 |
555 << QVariant(5) // health dec amt 37 |
566 << QVariant(5) // health dec amt 37 |
556 << QVariant(100) // rope modfier 38 |
567 << QVariant(100) // rope modfier 38 |
|
568 << QVariant(100) // get away time 39 |
557 ; |
569 ; |
558 |
570 |
559 |
571 |
560 schemes.append(defaultScheme); |
572 schemes.append(defaultScheme); |
561 schemes.append(proMode); |
573 schemes.append(proMode); |
757 |
769 |
758 for(int i = 0; i < cfg.size(); ++i) |
770 for(int i = 0; i < cfg.size(); ++i) |
759 netScheme[i] = QVariant(cfg[i]); |
771 netScheme[i] = QVariant(cfg[i]); |
760 |
772 |
761 reset(); |
773 reset(); |
762 } |
774 } |