Adventure Updates

Fix for requiring specific targets for battle objectives.
Small corrections to Island / Mountain capital maps
This commit is contained in:
jjayers99
2023-04-16 07:29:10 -04:00
parent d0a00461ae
commit 04ef8de211
3 changed files with 16 additions and 9 deletions

View File

@@ -210,13 +210,20 @@ public class AdventureQuestStage implements Serializable {
}
else if (this.objective == AdventureQuestController.ObjectiveTypes.Defeat) {
{
List<String> defeatedTags = Arrays.stream(defeated.getData().questTags).collect(Collectors.toList());
for (String targetTag : enemyTags) {
if (!defeatedTags.contains(targetTag)) {
//Does not count toward objective
return status;
if (mixedEnemies){
List<String> defeatedTags = Arrays.stream(defeated.getData().questTags).collect(Collectors.toList());
for (String targetTag : enemyTags) {
if (!defeatedTags.contains(targetTag)) {
//Does not count toward objective
return status;
}
}
}
else{
if (defeated.getData()!=targetEnemyData)
//Does not count
return status;
}
//All tags matched, kill confirmed
if (++progress1 >= count1){
status = AdventureQuestController.QuestStatus.Complete;