|
|
|
@ -53,11 +53,17 @@ public class QuestManager {
@@ -53,11 +53,17 @@ public class QuestManager {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
acceptedQuests.put(pc,obj); |
|
|
|
|
displayCurrentQuest(pc); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void completeQuest(PlayerCharacter pc, QuestObject obj){ |
|
|
|
|
|
|
|
|
|
if(obj.objectiveCount < obj.objectiveCountRequired) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//notify the player they have completed their quest
|
|
|
|
|
ErrorPopupMsg.sendErrorMsg(pc, "You have completed the quest: " + obj.QuestName); |
|
|
|
|
ErrorPopupMsg.sendErrorMsg(pc, "You have completed the quest: " + obj.QuestName +"! " + "Experience Reward: " + (int) (Experience.maxXPPerKill(pc.getLevel()) * 10) + " Gold Reward: " + (int) Experience.maxXPPerKill(pc.getLevel())); |
|
|
|
|
|
|
|
|
|
//add completed quest to completion log
|
|
|
|
|
if (completedQuests.containsKey(pc)) { |
|
|
|
|