mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 19:39:07 +00:00
Quest Dialog working for Parties
This commit is contained in:
1 parent
a365241e38
commit
bad6f88270
2 files changed
+292
-66
No files matched your search
@@ -14,6 +14,7 @@ import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.handler.IPlayerQuestData;
|
||||
import noppes.npcs.api.handler.data.IParty;
|
||||
import noppes.npcs.api.handler.data.IQuest;
|
||||
import noppes.npcs.constants.EnumPartyObjectives;
|
||||
import noppes.npcs.constants.EnumPartyRequirements;
|
||||
import noppes.npcs.controllers.PartyController;
|
||||
import noppes.npcs.controllers.PlayerDataController;
|
||||
@@ -91,6 +92,15 @@ public class Party implements IParty {
|
||||
return questData;
|
||||
}
|
||||
|
||||
public EnumPartyObjectives getObjectiveRequirement() {
|
||||
if(getQuestData() != null){
|
||||
if(getQuestData().quest != null){
|
||||
return getQuestData().quest.partyOptions.objectiveRequirement;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCurrentQuestID() {
|
||||
return currentQuestID;
|
||||
|
||||
Reference in new issue
Block a user