(String tokenSource, PlayerCharacter pc, ExportHandler eh)
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh) |
| 39 | { |
| 40 | String solverValue = pc.getControl("ACVAR" + tokenSource); |
| 41 | int intValue; |
| 42 | if (solverValue != null) |
| 43 | { |
| 44 | Object val = pc.getGlobal(solverValue); |
| 45 | intValue = ((Number) val).intValue(); |
| 46 | } |
| 47 | else |
| 48 | { |
| 49 | String acTypeKey = SettingsHandler.getGameAsProperty().get().getACTypeName(tokenSource.substring(3)); |
| 50 | intValue = pc.getDisplay().calcACOfType(acTypeKey); |
| 51 | } |
| 52 | return Integer.toString(intValue); |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected