Test applying this kit to the character. @param aPC PlayerCharacter The character to apply the kit to. @param aKit Kit The kit that has requested the application of the kit. @param warnings List The warign list to be populated if anything fails.
(Kit aKit, PlayerCharacter aPC, List<String> warnings)
| 61 | * @param warnings List The warign list to be populated if anything fails. |
| 62 | */ |
| 63 | @Override |
| 64 | public boolean testApply(Kit aKit, PlayerCharacter aPC, List<String> warnings) |
| 65 | { |
| 66 | appliedKits = new HashMap<>(); |
| 67 | for (CDOMSingleRef<Kit> ref : availableKits) |
| 68 | { |
| 69 | Kit addedKit = ref.get(); |
| 70 | ArrayList<BaseKit> thingsToAdd = new ArrayList<>(); |
| 71 | addedKit.testApplyKit(aPC, thingsToAdd, warnings, true); |
| 72 | appliedKits.put(addedKit, thingsToAdd); |
| 73 | } |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public String getObjectName() |
no test coverage detected