-
Notifications
You must be signed in to change notification settings - Fork 0
/
raw_start_pos.php
834 lines (814 loc) · 29.9 KB
/
raw_start_pos.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
<?php
// This file is used to generate $tables['_political_parties_lords_defeated']['data__'] for index.php
// raw_start_pos is taken from TWeak start_pos_starting_general_options by Ctr + C all data
$raw_start_pos =
'0 2140783648 2140783648 10 1 wh_main_political_party_empire_balthasar wh_main_lord_trait_emp_balthasar_gelt
10 2140783388 2140783388 10 0 wh_main_political_party_empire_ruler wh_main_lord_trait_emp_karl_franz
14 2140783606 2140783606 10 0 wh_main_political_party_greenskins_azhag wh_main_lord_trait_grn_azhag_the_slaughterer
19 2140782841 2140782841 10 0 wh_main_political_party_greenskins_ruler wh_main_lord_trait_grn_grimgor_ironhide
24 566443942 566443942 10 0 wh_main_political_party_dwarf_ungrim wh_main_lord_trait_dwf_ungrim_ironfist
28 2140782828 2140782828 10 0 wh_main_political_party_dwarf_ruler wh_main_lord_trait_dwf_thorgrim_grudgebearer
33 2140783651 2140783651 10 0 wh_main_political_party_vampire_heinrich wh_main_lord_trait_vmp_heinrich_kemmler
42 2140782847 2140782847 10 0 wh_main_political_party_vampire_ruler wh_main_lord_trait_vmp_mannfred_von_carstein
52 2140783662 2140782858 10 2 wh_main_political_party_chaos_sigvald wh_main_lord_trait_chs_prince_sigvald_the_magnificent
55 2140783672 2140782858 10 1 wh_main_political_party_chaos_kholek wh_main_lord_trait_chs_kholek_suneater
62 2140782858 2140782858 10 0 wh_main_political_party_chaos_ruler wh_main_lord_trait_chs_archaon_the_everchosen
103 2140784064 2140784064 10 0 wh_dlc03_political_party_beastmen_ruler wh_dlc03_lord_trait_beastmen_khazrak
104 2140784127 2140784064 10 0 wh_dlc03_political_party_beastmen_malagor wh_dlc03_lord_trait_bst_malagor
105 2140784136 2140783388 10 2 wh_dlc04_political_party_empire_volkmar wh_dlc04_lord_trait_emp_volkmar_the_grim
115 2140784146 2140782847 10 3 wh_dlc04_political_party_vampire_helman wh_dlc04_lord_trait_vmp_helman_ghorst
122 2140783397 2140783397 10 0 wh_dlc06_political_party_belegar_ruler wh_dlc06_lord_trait_dwf_belegar_ironhammer
123 2140783351 2140783351 10 0 wh_dlc07_political_party_bretonnia_ruler wh_dlc07_lord_trait_brt_louen
125 2140784159 2140784159 10 0 wh_dlc07_political_party_bretonnia_fay wh_dlc07_lord_trait_brt_fay
131 2140783441 2140783441 10 0 wh_dlc06_political_party_skarsnik_ruler wh_dlc06_lord_trait_grn_skarsnik
132 2140784458 2140784458 10 0 wh2_main_political_party_vor_lzd_kroq_gar wh2_main_lord_trait_lzd_kroq_gar
135 2140783445 2140783445 10 0 wh_dlc06_political_party_wurrzag_ruler wh_dlc06_lord_trait_grn_wurrzag
136 2140784160 2140782828 10 1 wh_main_political_party_dwarf_grombrindal wh_pro01_lord_trait_dwf_grombrindal
138 2140784177 2140784177 10 0 wh_dlc05_political_party_wood_elves_ruler wh_dlc05_lord_trait_woodelves_orion
139 2140784459 2140784459 10 0 wh2_main_political_party_vor_hef_tyrion wh2_main_lord_trait_hef_tyrion
143 2140784481 2140784481 10 0 wh2_main_political_party_vor_def_malekith wh2_main_lord_trait_malekith_black_council
145 2140784490 2140784490 10 0 wh2_main_political_party_vor_hef_teclis wh2_main_lord_trait_hef_teclis
147 2140784185 2140784185 10 0 wh_dlc05_political_party_wood_elves_durthu wh_dlc05_lord_trait_wef_durthu
154 2140784494 2140784494 10 0 wh2_main_political_party_vor_def_morathi wh2_main_lord_trait_def_morathi_hag_sorceress_of_ghrond
160 2140784138 2140784138 10 2 wh_pro02_political_party_vlad_ruler wh_dlc04_lord_trait_vmp_vlad_von_carstein
171 2140784202 2140784138 10 2 wh_pro02_political_party_vampire_isabella wh_pro02_lord_trait_vmp_isabella_von_carstein
179 2140783515 2140783515 10 0 wh_dlc07_political_party_bretonnia_alberic wh_dlc07_lord_trait_brt_alberic
181 2140784539 2140784539 10 0 wh2_main_political_party_vor_skv_queek_headtaker wh2_main_lord_trait_skv_queek_headtaker_monstrous_ego
183 2140784529 2140784529 10 0 wh2_main_political_party_vor_skv_lord_skrolk wh2_main_lord_trait_skv_lord_skrolk
191 2140784854 2140784854 10 0 wh2_main_political_party_def_malekith wh2_main_lord_trait_malekith_black_council
198 2140784906 2140784906 10 0 wh2_main_political_party_def_morathi wh2_main_lord_trait_def_morathi_hag_sorceress_of_ghrond
202 2140785030 2140785030 10 0 wh2_main_political_party_hef_teclis wh2_main_lord_trait_hef_teclis
207 2140784849 2140784849 10 0 wh2_main_political_party_hef_tyrion wh2_main_lord_trait_hef_tyrion
215 2140785004 2140785004 10 0 wh2_main_political_party_lzd_kroq_gar wh2_main_lord_trait_lzd_kroq_gar
217 2140784856 2140784856 10 0 wh2_main_political_party_lzd_lord_mazdamundi wh2_main_lord_trait_lzd_lord_mazdamundi
225 2140785051 2140785051 10 0 wh2_main_political_party_skv_lord_skrolk wh2_main_lord_trait_skv_lord_skrolk
235 2140785054 2140785054 10 0 wh2_main_political_party_skv_queek_headtaker wh2_main_lord_trait_skv_queek_headtaker_monstrous_ego
237 2140784448 2140784448 10 0 wh2_main_political_party_vor_lzd_lord_mazdamundi wh2_main_lord_trait_lzd_lord_mazdamundi
208448244 2140784788 2140784788 10 0 wh2_dlc12_political_party_vor_lzd_tiktaqto wh2_dlc12_lord_trait_lzd_lord_tiktaqto
252475741 2140784902 2140784902 10 0 wh2_dlc14_political_party_def_malus wh2_dlc14_lord_trait_def_malus
259035061 2140784718 2140784718 10 0 wh2_dlc11_political_party_vor_vampire_coast_ruler wh2_dlc11_lord_trait_cst_harkon
275930337 2140784799 2140784799 10 0 wh2_dlc11_political_party_vor_cst_sartosa_ruler wh2_dlc11_lord_trait_cst_aranessa
285638098 1224741822 1224741822 10 0 wh2_dlc09_political_party_tmb_settra wh2_dlc09_lord_trait_tmb_settra
321504827 2140785057 2140785057 10 0 wh2_dlc09_political_party_skv_tretch_craventail wh_dlc09_lord_trait_skv_tretch_craventail
381763394 2140784676 2140784676 10 0 wh2_dlc14_political_party_vor_def_malus wh2_dlc14_lord_trait_def_malus
391504541 2140785115 2140785115 10 0 wh2_dlc10_political_party_def_hellebron wh2_dlc10_lord_trait_def_hellebron
408767889 315448124 315448124 10 0 wh2_dlc16_political_party_vor_wef_sisters_of_twilight wh2_dlc16_lord_trait_wef_sisters_of_twilight
513058477 1151049787 1151049787 10 0 wh2_dlc09_political_party_tmb_khalida wh2_dlc09_lord_trait_tmb_khalida
517687307 2140785066 2140785066 10 0 wh2_dlc14_political_party_skv_snikch wh2_dlc14_lord_trait_lzd_snikch
530868489 2140784542 2140784542 10 0 wh2_dlc16_political_party_vor_skv_throt wh2_dlc16_lord_trait_skv_throt_the_unclean
596087071 1314767883 1314767883 10 0 wh2_dlc09_political_party_vor_tmb_arkhan wh2_dlc09_lord_trait_tmb_arkhan
615293218 1972823321 1972823321 10 0 wh2_dlc14_political_party_vor_bretonnia_repanse wh2_dlc14_lord_trait_brt_repanse
669352254 1338821414 1338821414 10 0 wh2_dlc15_political_party_grn_grom wh2_dlc15_lord_trait_grn_grom_the_paunch
787977252 2140785068 2140785068 10 0 wh2_dlc12_political_party_skv_ikit_claw wh2_dlc12_lord_trait_skv_lord_ikit_claw
824630202 1814284744 1814284744 10 0 wh2_dlc15_political_party_hef_eltharion wh2_dlc15_lord_trait_hef_eltharion
899851426 2140784950 2140784950 10 0 wh2_dlc10_political_party_hef_alarielle wh2_dlc10_lord_trait_hef_alarielle
921242615 2140784189 2140784064 10 0 wh_dlc03_political_party_beastmen_morghur wh_dlc03_lord_trait_bst_morghur
957601427 342275934 342275934 10 0 wh2_dlc15_political_party_vor_hef_eltharion wh2_dlc15_lord_trait_hef_eltharion
1057278694 1995155769 1995155769 10 0 wh2_dlc11_political_party_vor_def_lokhir_fellheart_ruler wh2_dlc11_lord_trait_def_lokhir
1068136908 216373701 216373701 10 0 wh2_dlc13_political_party_vor_wulfhart_ruler wh2_dlc13_lord_trait_emp_wulfhart
1068652830 1757671472 1757671472 10 0 wh2_dlc09_political_party_vor_skv_tretch_craventail wh_dlc09_lord_trait_skv_tretch_craventail
1112571855 1786610393 1786610393 10 0 wh2_dlc16_political_party_wef_drycha wh2_dlc16_lord_trait_drycha
1114810831 1709709105 1709709105 10 0 wh2_dlc11_political_party_cst_the_drowned_ruler wh2_dlc11_lord_trait_cst_cylostra
1173184883 2140785323 2140785323 10 0 wh2_dlc13_political_party_lzd_gorrok wh2_dlc13_lord_trait_lzd_gorrok
1183583276 2140784609 2140784609 10 0 wh2_dlc10_political_party_vor_hef_alarielle wh2_dlc10_lord_trait_hef_alarielle
1225890399 1540480612 1540480612 10 0 wh2_dlc15_political_party_vor_grn_grom wh2_dlc15_lord_trait_grn_grom_the_paunch
1289933426 2040920400 2040920400 10 0 wh2_dlc11_political_party_cst_sartosa_ruler wh2_dlc11_lord_trait_cst_aranessa
1305867793 1865676509 1865676509 10 0 wh2_dlc09_political_party_tmb_arkhan wh2_dlc09_lord_trait_tmb_arkhan
1328188997 1055759237 1055759237 10 0 wh2_dlc12_political_party_lzd_tehenhauin wh2_dlc12_lord_trait_lzd_lord_tehenhauin
1367589111 2140784671 2140784671 10 0 wh2_dlc10_political_party_vor_def_hellebron wh2_dlc10_lord_trait_def_hellebron
1371647820 2140785316 2140785316 10 0 wh2_dlc13_political_party_vor_lzd_gorrok wh2_dlc13_lord_trait_lzd_gorrok
1417068612 552230519 552230519 10 0 wh2_dlc16_political_party_skv_throt wh2_dlc16_lord_trait_skv_throt_the_unclean
1458594670 668664981 668664981 10 0 wh2_dlc12_political_party_lzd_tiktaqto wh2_dlc12_lord_trait_lzd_lord_tiktaqto
1524866893 2032938539 2032938539 10 0 wh_dlc08_political_party_norsca_ruler wh_dlc08_lord_trait_nor_wulfrik
1534376990 2140784957 2140784957 10 0 wh2_dlc15_political_party_hef_imrik wh2_dlc15_lord_trait_hef_imrik
1554518742 1651687924 1651687924 10 0 wh2_dlc13_political_party_vor_lzd_nakai wh2_dlc13_lord_trait_lzd_nakai
1559025857 716276183 716276183 10 0 wh2_dlc11_political_party_vampire_coast_ruler wh2_dlc11_lord_trait_cst_harkon
1559393320 257469231 257469231 10 0 wh2_dlc13_political_party_lzd_nakai wh2_dlc13_lord_trait_lzd_nakai
1561784528 1141238322 1141238322 10 0 wh2_dlc11_political_party_vor_cst_the_drowned_ruler wh2_dlc11_lord_trait_cst_cylostra
1587040456 1170489960 1170489960 10 0 wh2_dlc11_political_party_cst_noctilus_ruler wh2_dlc11_lord_trait_cst_noctilus
1599356186 1813433830 1813433830 10 0 wh2_dlc11_political_party_def_lokhir_fellheart_ruler wh2_dlc11_lord_trait_def_lokhir
1619892010 306236299 306236299 10 0 wh2_dlc09_political_party_vor_tmb_settra wh2_dlc09_lord_trait_tmb_settra
1637148210 47377677 47377677 10 0 wh_dlc08_political_party_norsca_throgg wh_dlc08_lord_trait_nor_throgg
1690430870 1472604979 1472604979 10 0 wh2_dlc09_political_party_tmb_khatep wh2_dlc09_lord_trait_tmb_khatep
1745878439 2024577116 2024577116 10 0 wh2_dlc16_political_party_wef_sisters_of_twilight wh2_dlc16_lord_trait_wef_sisters_of_twilight
1766738411 2140784552 2140784552 10 0 wh2_dlc14_political_party_vor_skv_snikch wh2_dlc14_lord_trait_lzd_snikch
1800751775 2113968969 2113968969 10 0 wh2_dlc09_political_party_vor_tmb_khatep wh2_dlc09_lord_trait_tmb_khatep
1825622309 325078376 325078376 10 0 wh2_dlc14_political_party_bretonnia_repanse wh2_dlc14_lord_trait_brt_repanse
1863429769 788765945 788765945 10 0 wh2_dlc12_political_party_vor_lzd_tehenhauin wh2_dlc12_lord_trait_lzd_lord_tehenhauin
1876106774 2140784984 2140784984 10 0 wh2_dlc10_political_party_hef_alith_anar wh2_dlc10_lord_trait_hef_alith_anar
1922061599 2140784579 2140784579 10 0 wh2_dlc15_political_party_vor_hef_imrik wh2_dlc15_lord_trait_hef_imrik
1954124103 48583370 48583370 10 0 wh2_dlc13_political_party_wulfhart_ruler wh2_dlc13_lord_trait_emp_wulfhart
1985889420 2137376097 2137376097 10 0 wh2_dlc11_political_party_vor_cst_noctilus_ruler wh2_dlc11_lord_trait_cst_noctilus
2014514877 1661976522 1661976522 10 0 wh2_dlc09_political_party_vor_tmb_khalida wh2_dlc09_lord_trait_tmb_khalida
2044355460 1547312149 1547312149 10 0 wh2_twa03_political_party_vor_def_rakarth wh2_twa03_lord_trait_rakarth
2061284838 2140784558 2140784558 10 0 wh2_dlc12_political_party_vor_skv_ikit_claw wh2_dlc12_lord_trait_skv_lord_ikit_claw
2081989364 2140784599 2140784599 10 0 wh2_dlc10_political_party_vor_hef_alith_anar wh2_dlc10_lord_trait_hef_alith_anar
2115134412 2017958139 2017958139 10 0 wh2_twa03_political_party_def_rakarth wh2_twa03_lord_trait_rakarth ';
$current_data = array(
#region _skv_
array(
'wh2_dlc09_political_party_skv_tretch_craventail',
array(
'wh2_dlc09_political_party_skv_tretch_craventail' => 'wh2_dlc09_trait_defeated_tretch'
)
),
array(
'wh2_dlc09_political_party_vor_skv_tretch_craventail',
array(
'wh2_dlc09_political_party_vor_skv_tretch_craventail' => 'wh2_dlc09_trait_defeated_tretch'
)
),
array(
'wh2_dlc12_political_party_skv_ikit_claw',
array(
'wh2_dlc12_political_party_skv_ikit_claw' => 'wh2_dlc12_trait_defeated_ikit_claw'
)
),
array(
'wh2_dlc12_political_party_vor_skv_ikit_claw',
array(
'wh2_dlc12_political_party_vor_skv_ikit_claw' => 'wh2_dlc12_trait_defeated_ikit_claw'
)
),
array(
'wh2_dlc14_political_party_skv_snikch',
array(
'wh2_dlc14_political_party_skv_snikch' => 'wh2_dlc14_trait_defeated_snikch'
)
),
array(
'wh2_dlc14_political_party_vor_skv_snikch',
array(
'wh2_dlc14_political_party_vor_skv_snikch' => 'wh2_dlc14_trait_defeated_snikch'
)
),
array(
'wh2_dlc16_political_party_skv_throt',
array(
'wh2_dlc16_political_party_skv_throt' => 'wh2_main_trait_defeated_throt'
)
),
array(
'wh2_dlc16_political_party_vor_skv_throt',
array(
'wh2_dlc16_political_party_vor_skv_throt' => 'wh2_main_trait_defeated_throt'
)
),
array(
'wh2_main_political_party_skv_lord_skrolk',
array(
'wh2_main_political_party_skv_lord_skrolk' => 'wh2_main_trait_defeated_lord_strolk'
)
),
array(
'wh2_main_political_party_skv_queek_headtaker',
array(
'wh2_main_political_party_skv_queek_headtaker' => 'wh2_main_trait_defeated_queen_headtaker'
)
),
array(
'wh2_main_political_party_vor_skv_lord_skrolk',
array(
'wh2_main_political_party_vor_skv_lord_skrolk' => 'wh2_main_trait_defeated_lord_strolk'
)
),
array(
'wh2_main_political_party_vor_skv_queek_headtaker',
array(
'wh2_main_political_party_vor_skv_queek_headtaker' => 'wh2_main_trait_defeated_queen_headtaker'
)
),
#endregion
#region _tmb_
array(
'wh2_dlc09_political_party_tmb_arkhan',
array(
'wh2_dlc09_political_party_tmb_arkhan' => 'wh2_dlc09_trait_defeated_arkhan'
)
),
array(
'wh2_dlc09_political_party_tmb_khalida',
array(
'wh2_dlc09_political_party_tmb_khalida' => 'wh2_dlc09_trait_defeated_khalida'
)
),
array(
'wh2_dlc09_political_party_tmb_khatep',
array(
'wh2_dlc09_political_party_tmb_khatep' => 'wh2_dlc09_trait_defeated_khatep'
)
),
array(
'wh2_dlc09_political_party_tmb_settra',
array(
'wh2_dlc09_political_party_tmb_settra' => 'wh2_dlc09_trait_defeated_settra'
)
),
array(
'wh2_dlc09_political_party_vor_tmb_arkhan',
array(
'wh2_dlc09_political_party_vor_tmb_arkhan' => 'wh2_dlc09_trait_defeated_arkhan'
)
),
array(
'wh2_dlc09_political_party_vor_tmb_khalida',
array(
'wh2_dlc09_political_party_vor_tmb_khalida' => 'wh2_dlc09_trait_defeated_khalida'
)
),
array(
'wh2_dlc09_political_party_vor_tmb_khatep',
array(
'wh2_dlc09_political_party_vor_tmb_khatep' => 'wh2_dlc09_trait_defeated_khatep'
)
),
array(
'wh2_dlc09_political_party_vor_tmb_settra',
array(
'wh2_dlc09_political_party_vor_tmb_settra' => 'wh2_dlc09_trait_defeated_settra'
)
),
#endregion
#region _def_
array(
'wh2_dlc10_political_party_def_hellebron',
array(
'wh2_dlc10_political_party_def_hellebron' => 'wh2_dlc10_trait_defeated_hellebron'
)
),
array(
'wh2_dlc10_political_party_vor_def_hellebron',
array(
'wh2_dlc10_political_party_vor_def_hellebron' => 'wh2_dlc10_trait_defeated_hellebron'
)
),
array(
'wh2_dlc11_political_party_def_lokhir_fellheart_ruler',
array(
'wh2_dlc11_political_party_def_lokhir_fellheart_ruler' => 'wh2_dlc11_trait_defeated_lokhir_fellheart'
)
),
array(
'wh2_dlc11_political_party_vor_def_lokhir_fellheart_ruler',
array(
'wh2_dlc11_political_party_vor_def_lokhir_fellheart_ruler' => 'wh2_dlc11_trait_defeated_lokhir_fellheart'
)
),
array(
'wh2_dlc14_political_party_def_malus',
array(
'wh2_dlc14_political_party_def_malus' => 'wh2_dlc14_trait_defeated_malus'
)
),
array(
'wh2_dlc14_political_party_vor_def_malus',
array(
'wh2_dlc14_political_party_vor_def_malus' => 'wh2_dlc14_trait_defeated_malus'
)
),
array(
'wh2_main_political_party_def_malekith',
array(
'wh2_main_political_party_def_malekith' => 'wh2_main_trait_defeated_malekith'
)
),
array(
'wh2_main_political_party_def_morathi',
array(
'wh2_main_political_party_def_morathi' => 'wh2_main_trait_defeated_morathi'
)
),
array(
'wh2_main_political_party_vor_def_malekith',
array(
'wh2_main_political_party_vor_def_malekith' => 'wh2_main_trait_defeated_malekith'
)
),
array(
'wh2_main_political_party_vor_def_morathi',
array(
'wh2_main_political_party_vor_def_morathi' => 'wh2_main_trait_defeated_morathi'
)
),
array(
'wh2_twa03_political_party_def_rakarth',
array(
'wh2_twa03_political_party_def_rakarth' => 'wh2_twa03_trait_defeated_rakarth'
)
),
array(
'wh2_twa03_political_party_vor_def_rakarth',
array(
'wh2_twa03_political_party_vor_def_rakarth' => 'wh2_twa03_trait_defeated_rakarth'
)
),
#endregion
#region _hef_
array(
'wh2_dlc10_political_party_hef_alarielle',
array(
'wh2_dlc10_political_party_hef_alarielle' => 'wh2_dlc10_trait_defeated_alarielle'
)
),
array(
'wh2_dlc10_political_party_hef_alith_anar',
array(
'wh2_dlc10_political_party_hef_alith_anar' => 'wh2_dlc10_trait_defeated_alith_anar'
)
),
array(
'wh2_dlc10_political_party_vor_hef_alarielle',
array(
'wh2_dlc10_political_party_vor_hef_alarielle' => 'wh2_dlc10_trait_defeated_alarielle'
)
),
array(
'wh2_dlc10_political_party_vor_hef_alith_anar',
array(
'wh2_dlc10_political_party_vor_hef_alith_anar' => 'wh2_dlc10_trait_defeated_alith_anar'
)
),
array(
'wh2_dlc15_political_party_hef_eltharion',
array(
'wh2_dlc15_political_party_hef_eltharion' => 'wh2_dlc15_trait_defeated_eltharion'
)
),
array(
'wh2_dlc15_political_party_hef_imrik',
array(
'wh2_dlc15_political_party_hef_imrik' => 'wh2_dlc15_trait_defeated_imrik'
)
),
array(
'wh2_dlc15_political_party_vor_hef_eltharion',
array(
'wh2_dlc15_political_party_vor_hef_eltharion' => 'wh2_dlc15_trait_defeated_eltharion'
)
),
array(
'wh2_dlc15_political_party_vor_hef_imrik',
array(
'wh2_dlc15_political_party_vor_hef_imrik' => 'wh2_dlc15_trait_defeated_imrik'
)
),
array(
'wh2_main_political_party_hef_teclis',
array(
'wh2_main_political_party_hef_teclis' => 'wh2_main_trait_defeated_teclis'
)
),
array(
'wh2_main_political_party_hef_tyrion',
array(
'wh2_main_political_party_hef_tyrion' => 'wh2_main_trait_defeated_tyrion'
)
),
array(
'wh2_main_political_party_vor_hef_teclis',
array(
'wh2_main_political_party_vor_hef_teclis' => 'wh2_main_trait_defeated_teclis'
)
),
array(
'wh2_main_political_party_vor_hef_tyrion',
array(
'wh2_main_political_party_vor_hef_tyrion' => 'wh2_main_trait_defeated_tyrion'
)
),
#endregion
#region _cst_
array(
'wh2_dlc11_political_party_cst_noctilus_ruler',
array(
'wh2_dlc11_political_party_cst_noctilus_ruler' => 'wh2_dlc11_trait_defeated_count_noctilus'
)
),
array(
'wh2_dlc11_political_party_cst_sartosa_ruler',
array(
'wh2_dlc11_political_party_cst_sartosa_ruler' => 'wh2_dlc11_trait_defeated_aranessa_saltspite'
)
),
array(
'wh2_dlc11_political_party_cst_the_drowned_ruler',
array(
'wh2_dlc11_political_party_cst_the_drowned_ruler' => 'wh2_dlc11_trait_defeated_cylostra_direfin'
)
),
array(
'wh2_dlc11_political_party_vor_cst_noctilus_ruler',
array(
'wh2_dlc11_political_party_vor_cst_noctilus_ruler' => 'wh2_dlc11_trait_defeated_count_noctilus'
)
),
array(
'wh2_dlc11_political_party_vor_cst_sartosa_ruler',
array(
'wh2_dlc11_political_party_vor_cst_sartosa_ruler' => 'wh2_dlc11_trait_defeated_aranessa_saltspite'
)
),
array(
'wh2_dlc11_political_party_vor_cst_the_drowned_ruler',
array(
'wh2_dlc11_political_party_vor_cst_the_drowned_ruler' => 'wh2_dlc11_trait_defeated_cylostra_direfin'
)
),
#endregion
#region _vampire_
array(
'wh2_dlc11_political_party_vampire_coast_ruler',
array(
'wh2_dlc11_political_party_vampire_coast_ruler' => 'wh2_dlc11_trait_defeated_luthor_harkon'
)
),
array(
'wh2_dlc11_political_party_vor_vampire_coast_ruler',
array(
'wh2_dlc11_political_party_vor_vampire_coast_ruler' => 'wh2_dlc11_trait_defeated_luthor_harkon'
)
),
array(
'wh_main_political_party_vampire_heinrich',
array(
'wh_main_political_party_vampire_heinrich' => 'wh2_main_trait_defeated_heinrich_kemmler'
)
),
array(
'wh_main_political_party_vampire_ruler',
array(
'wh_dlc04_political_party_vampire_helman' => 'wh2_main_trait_defeated_helmen_ghorst',
'wh_main_political_party_vampire_ruler' => 'wh2_main_trait_defeated_mannfred_von_carstein'
)
),
#endregion
#region _lzd_
array(
'wh2_dlc12_political_party_lzd_tehenhauin',
array(
'wh2_dlc12_political_party_lzd_tehenhauin' => 'wh2_dlc12_trait_defeated_tehenhauin'
)
),
array(
'wh2_dlc12_political_party_lzd_tiktaqto',
array(
'wh2_dlc12_political_party_lzd_tiktaqto' => 'wh2_dlc12_trait_defeated_tiktaqto'
)
),
array(
'wh2_dlc12_political_party_vor_lzd_tehenhauin',
array(
'wh2_dlc12_political_party_vor_lzd_tehenhauin' => 'wh2_dlc12_trait_defeated_tehenhauin'
)
),
array(
'wh2_dlc12_political_party_vor_lzd_tiktaqto',
array(
'wh2_dlc12_political_party_vor_lzd_tiktaqto' => 'wh2_dlc12_trait_defeated_tiktaqto'
)
),
array(
'wh2_dlc13_political_party_lzd_gorrok',
array(
'wh2_dlc13_political_party_lzd_gorrok' => 'wh2_dlc13_trait_defeated_gorrok'
)
),
array(
'wh2_dlc13_political_party_lzd_nakai',
array(
'wh2_dlc13_political_party_lzd_nakai' => 'wh2_dlc13_trait_defeated_nakai'
)
),
array(
'wh2_dlc13_political_party_vor_lzd_gorrok',
array(
'wh2_dlc13_political_party_vor_lzd_gorrok' => 'wh2_dlc13_trait_defeated_gorrok'
)
),
array(
'wh2_dlc13_political_party_vor_lzd_nakai',
array(
'wh2_dlc13_political_party_vor_lzd_nakai' => 'wh2_dlc13_trait_defeated_nakai'
)
),
array(
'wh2_main_political_party_lzd_kroq_gar',
array(
'wh2_main_political_party_lzd_kroq_gar' => 'wh2_main_trait_defeated_kroq_gar'
)
),
array(
'wh2_main_political_party_lzd_lord_mazdamundi',
array(
'wh2_main_political_party_lzd_lord_mazdamundi' => 'wh2_main_trait_defeated_lord_mazdamundi'
)
),
array(
'wh2_main_political_party_vor_lzd_kroq_gar',
array(
'wh2_main_political_party_vor_lzd_kroq_gar' => 'wh2_main_trait_defeated_kroq_gar'
)
),
array(
'wh2_main_political_party_vor_lzd_lord_mazdamundi',
array(
'wh2_main_political_party_vor_lzd_lord_mazdamundi' => 'wh2_main_trait_defeated_lord_mazdamundi'
)
),
#endregion
#region _wulfhart_
array(
'wh2_dlc13_political_party_vor_wulfhart_ruler',
array(
'wh2_dlc13_political_party_vor_wulfhart_ruler' => 'wh2_dlc13_trait_defeated_wulfhart'
)
),
array(
'wh2_dlc13_political_party_wulfhart_ruler',
array(
'wh2_dlc13_political_party_wulfhart_ruler' => 'wh2_dlc13_trait_defeated_wulfhart'
)
),
#endregion
#region _bretonnia_
array(
'wh2_dlc14_political_party_bretonnia_repanse',
array(
'wh2_dlc14_political_party_bretonnia_repanse' => 'wh2_dlc14_trait_defeated_repanse'
)
),
array(
'wh2_dlc14_political_party_vor_bretonnia_repanse',
array(
'wh2_dlc14_political_party_vor_bretonnia_repanse' => 'wh2_dlc14_trait_defeated_repanse'
)
),
array(
'wh_dlc07_political_party_bretonnia_alberic',
array(
'wh_dlc07_political_party_bretonnia_alberic' => 'wh2_main_trait_defeated_alberic_de_bordeleaux'
)
),
array(
'wh_dlc07_political_party_bretonnia_fay',
array(
'wh_dlc07_political_party_bretonnia_fay' => 'wh2_main_trait_defeated_fay_enchantress'
)
),
array(
'wh_dlc07_political_party_bretonnia_ruler',
array(
'wh_dlc07_political_party_bretonnia_ruler' => 'wh2_main_trait_defeated_louen_leoncouer'
)
),
#endregion
#region _grn_
array(
'wh2_dlc15_political_party_grn_grom',
array(
'wh2_dlc15_political_party_grn_grom' => 'wh2_dlc15_trait_defeated_grom'
)
),
array(
'wh2_dlc15_political_party_vor_grn_grom',
array(
'wh2_dlc15_political_party_vor_grn_grom' => 'wh2_dlc15_trait_defeated_grom'
)
),
#endregion
#region _wef_
array(
'wh2_dlc16_political_party_vor_wef_sisters_of_twilight',
array(
'wh2_dlc16_political_party_vor_wef_sisters_of_twilight' => 'wh2_main_trait_defeated_sisters_of_twilight'
)
),
array(
'wh2_dlc16_political_party_wef_drycha',
array(
'wh2_dlc16_political_party_wef_drycha' => 'wh2_main_trait_defeated_drycha'
)
),
array(
'wh2_dlc16_political_party_wef_sisters_of_twilight',
array(
'wh2_dlc16_political_party_wef_sisters_of_twilight' => 'wh2_main_trait_defeated_sisters_of_twilight'
)
),
#endregion
#region _beastmen_
array(
'wh_dlc03_political_party_beastmen_ruler',
array(
'wh_dlc03_political_party_beastmen_malagor' => 'wh2_main_trait_defeated_malagor_the_dark_omen',
'wh_dlc03_political_party_beastmen_morghur' => 'wh2_main_trait_defeated_morghur_the_shadowgave',
'wh_dlc03_political_party_beastmen_ruler' => 'wh2_main_trait_defeated_khazrak_one_eye'
)
),
#endregion
#region _wood_
array(
'wh_dlc05_political_party_wood_elves_durthu',
array(
'wh_dlc05_political_party_wood_elves_durthu' => 'wh2_main_trait_defeated_durthu'
)
),
array(
'wh_dlc05_political_party_wood_elves_ruler',
array(
'wh_dlc05_political_party_wood_elves_ruler' => 'wh2_main_trait_defeated_orion'
)
),
#endregion
#region _belegar_
array(
'wh_dlc06_political_party_belegar_ruler',
array(
'wh_dlc06_political_party_belegar_ruler' => 'wh2_main_trait_defeated_belegar_ironhammer'
)
),
#endregion
#region _skarsnik_
array(
'wh_dlc06_political_party_skarsnik_ruler',
array(
'wh_dlc06_political_party_skarsnik_ruler' => 'wh2_main_trait_defeated_skarsnik'
)
),
#endregion
#region _wurrzag_
array(
'wh_dlc06_political_party_wurrzag_ruler',
array(
'wh_dlc06_political_party_wurrzag_ruler' => 'wh2_main_trait_defeated_wurzzag'
)
),
#endregion
#region _norsca_
array(
'wh_dlc08_political_party_norsca_ruler',
array(
'wh_dlc08_political_party_norsca_ruler' => 'wh_dlc08_trait_defeated_wulfrik'
)
),
array(
'wh_dlc08_political_party_norsca_throgg',
array(
'wh_dlc08_political_party_norsca_throgg' => 'wh_dlc08_trait_defeated_throgg'
)
),
#endregion
#region _chaos_
array(
'wh_main_political_party_chaos_ruler',
array(
'wh_main_political_party_chaos_kholek' => 'wh2_main_trait_defeated_kholek_suneater',
'wh_main_political_party_chaos_ruler' => 'wh2_main_trait_defeated_archaon_the_everchosen',
'wh_main_political_party_chaos_sigvald' => 'wh2_main_trait_defeated_prince_sigvald'
)
),
#endregion
#region _dwarf_
array(
'wh_main_political_party_dwarf_ruler',
array(
'wh_main_political_party_dwarf_grombrindal' => 'wh2_main_trait_defeated_grombrindal',
'wh_main_political_party_dwarf_ruler' => 'wh2_main_trait_defeated_thorgrim_grudgebearer'
)
),
array(
'wh_main_political_party_dwarf_ungrim',
array(
'wh_main_political_party_dwarf_ungrim' => 'wh2_main_trait_defeated_ungrim_ironfist'
)
),
#endregion
#region _empire_
array(
'wh_main_political_party_empire_balthasar',
array(
'wh_main_political_party_empire_balthasar' => 'wh2_main_trait_defeated_balthasar_gelt'
)
),
array(
'wh_main_political_party_empire_ruler',
array(
'wh_dlc04_political_party_empire_volkmar' => 'wh2_main_trait_defeated_volkmar_the_grim',
'wh_main_political_party_empire_ruler' => 'wh2_main_trait_defeated_karl_franz'
)
),
#endregion
#region _greenskins_
array(
'wh_main_political_party_greenskins_azhag',
array(
'wh_main_political_party_greenskins_azhag' => 'wh2_main_trait_defeated_azhag_the_slaughterer'
)
),
array(
'wh_main_political_party_greenskins_ruler',
array(
'wh_main_political_party_greenskins_ruler' => 'wh2_main_trait_defeated_grimgor_ironhide'
)
),
#endregion
#region _vlad_
array(
'wh_pro02_political_party_vlad_ruler',
array(
'wh_pro02_political_party_vampire_isabella' => 'wh2_main_trait_defeated_isabella_von_carstein',
'wh_pro02_political_party_vlad_ruler' => 'wh2_main_trait_defeated_vlad_von_carstein'
)
)
#endregion
);
$map_cur = array();
foreach ($current_data as $row){
$map_cur[ $row[0] ] = $row[1];
}
$lines = explode("\n", $raw_start_pos);
// var_dump($lines);
$data = array();
foreach ($lines as $line){
$row = explode("\t", $line);
$row = array(
// 'id' => $row[0],
'general' => $row[1],
'replaces_general' => $row[2],
'frontend_faction_leader' => $row[5]
);
$data[ $row['general'] ] = $row;
}
$replace_group = array();
foreach ($data as &$row){
$row['replaces_general'] = $data[ $row['replaces_general'] ]['frontend_faction_leader'];
$group = $row['replaces_general'];
$leader = $row['frontend_faction_leader'];
if (!isset($replace_group[ $group ])){
$replace_group[ $group ] = array();
}
$replace_group[ $group ][ $leader ] = (
isset($map_cur[ $group ]) && isset($map_cur[ $group ][ $leader ]) ?
$map_cur[ $group ][ $leader ] :
null);
}
unset($row);
ksort($replace_group);
$output_group = array();
foreach ($replace_group as $party => $generals){
$pos = strpos($party, '_political_party_');
$region = ($pos === false ? 'unknown' : mb_substr($party, $pos + 17));
$pos = strpos($region, '_');
$region = ($pos === false ? $region : mb_substr($region, 0, $pos));
if ($region === 'vor'){
$pos = strpos($party, '_political_party_vor_');
$region = ($pos === false ? 'unknown' : mb_substr($party, $pos + 21));
$pos = strpos($region, '_');
$region = ($pos === false ? $region : mb_substr($region, 0, $pos));
}
if (!isset($output_group[ $region ])){
$output_group[ $region ] = array();
}
ksort($generals);
$output_group[ $region ][ $party ] = $generals;
}
// var_dump($output_group);
$size_reg = sizeof($output_group);
$output = 'array(
';
foreach ($output_group as $region => $replace_group){
$output .= '#region _'. $region .'_
';
$size_gr = sizeof($replace_group);
foreach ($replace_group as $party => $generals){
$size_gen = sizeof($generals);
$output .=
' array(
\''. $party .'\',
array('.
($size_gen === 0 ?
'' :
'
');
foreach ($generals as $general => $trait){
$output .= ' \''. $general .'\' => '.
($trait === null ?
'NULL' :
'\''. $trait .'\'').
(--$size_gen === 0 ? '' : ',') .'
';
}
$output .= ')
)'.
(--$size_gr === 0 ?
(--$size_reg === 0 ? '' : ',') :
',')
.'
';
}
$output .= '#endregion
';
}
$output .= ');';
echo '<pre>', $output;
return $current_data;