(final String line)
| 2661 | } |
| 2662 | |
| 2663 | private void parseUserPoolLine(final String line) |
| 2664 | { |
| 2665 | final PCGTokenizer tokens; |
| 2666 | |
| 2667 | try |
| 2668 | { |
| 2669 | tokens = new PCGTokenizer(line); |
| 2670 | } |
| 2671 | catch (PCGParseException pcgpex) |
| 2672 | { |
| 2673 | final String msg = |
| 2674 | LanguageBundle.getFormattedString("Warnings.PCGenParser.IllegalAbilityPool", //$NON-NLS-1$ |
| 2675 | line, pcgpex.getMessage()); |
| 2676 | warnings.add(msg); |
| 2677 | |
| 2678 | return; |
| 2679 | } |
| 2680 | |
| 2681 | final Iterator<PCGElement> it = tokens.getElements().iterator(); |
| 2682 | final String cat = EntityEncoder.decode(it.next().getText()); |
| 2683 | final AbilityCategory category = SettingsHandler.getGameAsProperty().get().getAbilityCategory(cat); |
| 2684 | try |
| 2685 | { |
| 2686 | thePC.setUserPoolBonus(category, new BigDecimal(it.next().getText())); |
| 2687 | } |
| 2688 | catch (NumberFormatException nfe) |
| 2689 | { |
| 2690 | final String msg = |
| 2691 | LanguageBundle.getFormattedString("Warnings.PCGenParser.IllegalAbilityPool", //$NON-NLS-1$ |
| 2692 | line); |
| 2693 | warnings.add(msg); |
| 2694 | } |
| 2695 | } |
| 2696 | |
| 2697 | private void parseFeatsHandleAppliedToAndSaveTags(final Iterator<PCGElement> it, final CNAbility cna) |
| 2698 | { |
no test coverage detected