Exemplo n.º 1
0
 public void addTaskData(Quest quest) {
   try {
     if (HardcoreQuesting.getPlayer() != null) {
       addTaskData.invoke(quest, quest.getQuestData(HardcoreQuesting.getPlayer()));
     } else {
       addTaskData.invoke(quest, quest.getQuestData("lorddusk"));
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Exemplo n.º 2
0
 /** Will increment the objectiveCounter if it is less then what is required by the quest. */
 public void incrementObjectiveCounter() {
   if (objectiveCounter < quest.getQuestData().getObjectiveCounter()) objectiveCounter++;
 }