Esempio n. 1
0
 public static NormalLeather create(final Player player, int buttonId, int manualAmount) {
   final NormalLeatherMake normalLeatherMake = NormalLeatherMake.forId(buttonId);
   if (normalLeatherMake == null || (normalLeatherMake.getAmount() == 0 && manualAmount == 0))
     return null;
   return new NormalLeather(
       player,
       normalLeatherMake.getUsed(),
       normalLeatherMake.getUsed2(),
       normalLeatherMake.getResult(),
       normalLeatherMake.getAmount(),
       manualAmount,
       normalLeatherMake.getLevel(),
       normalLeatherMake.getExperience());
 }