mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 16:54:30 +00:00
Party Quest Tracking
This commit is contained in:
1 parent
7a251ad64e
commit
67d4b3bd15
16 files changed
+308
-36
No files matched your search
@@ -260,6 +260,17 @@ public class QuestLocation extends QuestInterface implements IQuestLocation {
|
||||
return vec;
|
||||
}
|
||||
|
||||
public boolean isMultiQuest(Party party){
|
||||
QuestData data = party.getQuestData();
|
||||
if(data == null)
|
||||
return false;
|
||||
|
||||
if(data.quest == null)
|
||||
return false;
|
||||
|
||||
return data.quest.partyOptions.objectiveRequirement == EnumPartyObjectives.All;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPartyCompleted(Party party) {
|
||||
if(party == null)
|
||||
@@ -383,7 +394,9 @@ public class QuestLocation extends QuestInterface implements IQuestLocation {
|
||||
}
|
||||
|
||||
public String getAdditionalText() {
|
||||
return "Completed: " + String.join(", ", completedPlayers);
|
||||
if(party != null && parent.isMultiQuest(party) && completedPlayers.size() != party.getPlayerNames().size())
|
||||
return "Completed: " + String.join(", ", completedPlayers);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user