@@ -447,34 +447,34 @@ private void parse() {
447447 String [] parts = line .split ("," );
448448
449449 // On récupère le nom du joueur (sans le serveur)
450- String nomJoueur = parts [0 ].split ("-" )[0 ];
450+ String nomJoueur = parts [1 ].split ("-" )[0 ];
451451
452452 // On récupère la difficulté
453- String difficulte = parts [8 ].split ("-" )[1 ];
453+ String difficulte = parts [9 ].split ("-" )[1 ];
454454
455455 // On récupère la date
456- Date date = new SimpleDateFormat ("dd/MM/yy hh:mm:ss" , Locale .FRENCH ).parse (parts [1 ] + " " + parts [2 ]);
456+ Date date = new SimpleDateFormat ("dd/MM/yy hh:mm:ss" , Locale .FRENCH ).parse (parts [2 ] + " " + parts [3 ]);
457457
458458 // On récupère le nom d'item et son bonus
459459 String item = "" ;
460460 int bonus = -1 ;
461461 Pattern pattern = Pattern .compile (".*:110:[^:]*:[^:]*:[^:]*:[^:]*:([^:]*):.*\\ [(.*)\\ ].*" );
462- Matcher matcher = pattern .matcher (parts [3 ]);
462+ Matcher matcher = pattern .matcher (parts [4 ]);
463463 if (matcher .find ()) {
464464 bonus = matcher .group (1 ) == null || matcher .group (1 ).equals ("" ) ? -1
465465 : Integer .parseInt (matcher .group (1 ));
466466 item = matcher .group (2 );
467467 }
468468
469469 // On check si on aurait pas le mode "Passer automatiquement"
470- String raison = parts [5 ];
470+ String raison = parts [6 ];
471471 if (raison .startsWith ("Passer" )) {
472472 raison = "Passer" ;
473473 } else if (raison .startsWith ("Hors ligne" )) {
474474 raison = "Hors ligne" ;
475475 }
476476
477- Loot loot = new Loot (nomJoueur , date , item , Integer .parseInt (parts [4 ]), bonus , parts [9 ], difficulte ,
477+ Loot loot = new Loot (nomJoueur , date , item , Integer .parseInt (parts [5 ]), bonus , parts [10 ], difficulte ,
478478 raison );
479479
480480 lLoot .add (loot );
0 commit comments