コード例 #1
0
 @Test
 public void usesFreebiesForSubtraits() throws Exception {
   model.getTrait(NON_FAVORED1).getCreationModel().setValue(1);
   BasicTrait subTrait = new BasicTrait("Tum"); // $NON-NLS-1$
   subTrait.getCreationModel().setValue(2);
   model.addSubTrait(NON_FAVORED1, subTrait);
   assertEquals(2, handler.getPoints(characterId, 5));
 }
コード例 #2
0
 private BasicTrait createNonFavoredTrait(String id) {
   BasicTrait basicTrait = new BasicTrait(new Identificate(id));
   basicTrait.getStatusManager().setStatus(new DefaultStatus());
   return basicTrait;
 }