mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-19 02:15:45 +01:00
@@ -137,13 +137,6 @@ public class GameQuest {
|
||||
this.state = QuestState.QUEST_STATE_FINISHED;
|
||||
this.finishTime = Utils.getCurrentSeconds();
|
||||
|
||||
if (getFinishProgressList() != null) {
|
||||
Arrays.fill(getFinishProgressList(), 1);
|
||||
}
|
||||
|
||||
getOwner().getSession().send(new PacketQuestProgressUpdateNotify(this));
|
||||
|
||||
|
||||
if (getQuestData().finishParent()) {
|
||||
// This quest finishes the questline - the main quest will also save the quest to db, so we don't have to call save() here
|
||||
getMainQuest().finish();
|
||||
@@ -169,12 +162,6 @@ public class GameQuest {
|
||||
this.state = QuestState.QUEST_STATE_FAILED;
|
||||
this.finishTime = Utils.getCurrentSeconds();
|
||||
|
||||
if (getFailProgressList() != null) {
|
||||
Arrays.fill(getFailProgressList(), 1);
|
||||
}
|
||||
|
||||
getOwner().getSession().send(new PacketQuestProgressUpdateNotify(this));
|
||||
|
||||
getQuestData().getFailExec().forEach(e -> getOwner().getServer().getQuestSystem().triggerExec(this, e, e.getParam()));
|
||||
//Some subQuests have conditions that subQuests fail (even from different MainQuests)
|
||||
getOwner().getQuestManager().triggerEvent(QuestTrigger.QUEST_CONTENT_QUEST_STATE_EQUAL, this.subQuestId, this.state.getValue(),0,0,0);
|
||||
|
||||
Reference in New Issue
Block a user