mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 19:15:11 +00:00
More Party Refactoring for PartyController
- Added Quest Completion Popup to questPartyCompletion() - Added Quest Completion Message when the Party Quest is finished AND ping update - AREA KILL Quest is currently BROKEN with Parties
This commit is contained in:
1 parent
7866b4d052
commit
6936e7d86e
8 files changed
+61
-40
No files matched your search
@@ -388,35 +388,4 @@ public class Party {
|
||||
compound.setBoolean("FriendlyFire", this.friendlyFire);
|
||||
return compound;
|
||||
}
|
||||
|
||||
public boolean checkQuestCompletion(EnumQuestType type) {
|
||||
boolean bo = false;
|
||||
if(questData == null)
|
||||
return bo;
|
||||
|
||||
if(questData.quest.type != type && type != null)
|
||||
return bo;
|
||||
|
||||
QuestInterface inter = questData.quest.questInterface;
|
||||
if(inter.isPartyCompleted(this)){
|
||||
if((!questData.isCompleted && questData.quest.completion == EnumQuestCompletion.Npc) || questData.quest.instantPartyComplete(this)){
|
||||
questData.isCompleted = true;
|
||||
if (questData.quest.completion == EnumQuestCompletion.Npc) {
|
||||
// EventHooks.onQuestFinished(player, data.quest);
|
||||
}
|
||||
bo = true;
|
||||
|
||||
setQuest(null);
|
||||
PartyController.Instance().pingPartyUpdate(this);
|
||||
}
|
||||
} else {
|
||||
questData.isCompleted = false;
|
||||
}
|
||||
// if (this.trackedQuest != null && questData.quest.getId() == this.trackedQuest.getId()) {
|
||||
// NoppesUtilPlayer.sendTrackedQuestData((EntityPlayerMP) player);
|
||||
// }
|
||||
QuestItem.pickedUp = null;
|
||||
return bo;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user