| 106 | } |
| 107 | |
| 108 | @Override |
| 109 | public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh) |
| 110 | { |
| 111 | // Skip the ABILITY token itself |
| 112 | final StringTokenizer aTok = new StringTokenizer(tokenSource, "."); |
| 113 | final String tokenString = aTok.nextToken(); |
| 114 | |
| 115 | // Get the Ability Category from the Gamemode given the key |
| 116 | final String categoryString = aTok.nextToken(); |
| 117 | final AbilityCategory aCategory = "ANY".equals(categoryString) ? AbilityCategory.ANY |
| 118 | : SettingsHandler.getGameAsProperty().get().getAbilityCategory(categoryString); |
| 119 | |
| 120 | // Get the ABILITY token for the category |
| 121 | return getTokenForCategory(tokenSource, pc, eh, aTok, tokenString, aCategory); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Produce the ABILITY token output for a specific ability category. |