mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 03:32:53 +08:00
Revert change made to ContentCompleteTalk
This commit is contained in:
parent
f85a7cbe59
commit
dae2ad394c
@ -10,11 +10,16 @@ import lombok.val;
|
|||||||
|
|
||||||
@QuestValueContent(QUEST_CONTENT_COMPLETE_TALK)
|
@QuestValueContent(QUEST_CONTENT_COMPLETE_TALK)
|
||||||
public class ContentCompleteTalk extends BaseContent {
|
public class ContentCompleteTalk extends BaseContent {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(
|
public boolean execute(
|
||||||
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
||||||
return condition.getParam()[0] == params[0] &&
|
val talkId = condition.getParam()[0];
|
||||||
GameData.getTalkConfigDataMap().get(condition.getParam()[0]) != null;
|
val checkMainQuest = quest.getOwner().getQuestManager().getMainQuestByTalkId(talkId);
|
||||||
|
if (checkMainQuest == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
val talkData = checkMainQuest.getTalks().get(talkId);
|
||||||
|
return talkData != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user