setTitle(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateDialog.title", new Object[]{}, locale.getCurrentLocal()));
int share = (int)Math.rint(pirate.getProfitShare()*100);
String loadedText = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.TavernPirateDialog.dialog", new Object[]{pirate.getFollowers(), share}, locale.getCurrentLocal());
try {
boolean wholeHanseFlag = ((Node) event.getSource()).getId().equals("wholeHanse");
final INonFreeSeaPirate seaPirate = peopleFactory.createNewPirate(pirate.getName(), currentShip.get(), city.getPlayer(), wholeHanseFlag ? null : city.getCity());
seaPiratesState.add(seaPirate);
int nbDays = rnd.nextInt(200) + 30;
city.getPlayer().removeShip(currentShip.get());
city.getPlayer().removeSelectableVessel(currentShip.get());
pirate.leave();