(final String line)
| 2637 | } |
| 2638 | |
| 2639 | private void parseFeatPoolLine(final String line) |
| 2640 | { |
| 2641 | try |
| 2642 | { |
| 2643 | double featPool = Double.parseDouble(line.substring(IOConstants.TAG_FEATPOOL.length() + 1)); |
| 2644 | // In earlier versions the featpool included the bonus, so we need to counter it |
| 2645 | if (compareVersionTo(new int[]{5, 11, 1}) < 0) |
| 2646 | { |
| 2647 | calcFeatPoolAfterLoad = true; |
| 2648 | baseFeatPool = featPool; |
| 2649 | } |
| 2650 | else |
| 2651 | { |
| 2652 | thePC.setUserPoolBonus(AbilityCategory.FEAT, new BigDecimal(String.valueOf(featPool))); |
| 2653 | } |
| 2654 | } |
| 2655 | catch (NumberFormatException nfe) |
| 2656 | { |
| 2657 | final String msg = LanguageBundle.getFormattedString("Warnings.PCGenParser.IllegalFeatPool", //$NON-NLS-1$ |
| 2658 | line); |
| 2659 | warnings.add(msg); |
| 2660 | } |
| 2661 | } |
| 2662 | |
| 2663 | private void parseUserPoolLine(final String line) |
| 2664 | { |
no test coverage detected