(PlayerCharacter aPC)
| 89 | } |
| 90 | |
| 91 | private void applySubClass(PlayerCharacter aPC) |
| 92 | { |
| 93 | if (subClass != null) |
| 94 | { |
| 95 | // Ensure the character has the class |
| 96 | PCClass heldClass = aPC.getClassKeyed(theClass.getKeyName()); |
| 97 | if (heldClass == null) |
| 98 | { |
| 99 | aPC.incrementClassLevel(0, theClass); |
| 100 | heldClass = aPC.getClassKeyed(theClass.getKeyName()); |
| 101 | } |
| 102 | |
| 103 | // try and set a subclass too. |
| 104 | SubClassApplication.setSubClassKey(aPC, heldClass, getSubClass().getLSTformat(false)); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | @Override |
| 109 | public void apply(PlayerCharacter aPC) |
no test coverage detected