(Kit aKit, PlayerCharacter aPC, List<String> warnings)
| 62 | } |
| 63 | |
| 64 | @Override |
| 65 | public boolean testApply(Kit aKit, PlayerCharacter aPC, List<String> warnings) |
| 66 | { |
| 67 | theLevel = -1; |
| 68 | doLevelAbilities = true; |
| 69 | |
| 70 | theClass = pcClass.get(); |
| 71 | |
| 72 | theOrigSubClass = aPC.getSubClassName(theClass); |
| 73 | applySubClass(aPC); |
| 74 | |
| 75 | if (!PrereqHandler.passesAll(theClass, aPC, aKit)) |
| 76 | { |
| 77 | PrereqHandler.toHtmlString(theClass.getPrerequisiteList()); |
| 78 | warnings.add("CLASS: Not qualified for class \"" + theClass.getKeyName() + "\"."); |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | doLevelAbilities = aKit.doLevelAbilities(); |
| 83 | |
| 84 | // Temporarily increase the PCs level. |
| 85 | theLevel = levelFormula.resolve(aPC, "").intValue(); |
| 86 | addLevel(aPC, theLevel, theClass, doLevelAbilities); |
| 87 | |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | private void applySubClass(PlayerCharacter aPC) |
| 92 | { |
nothing calls this directly
no test coverage detected