mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 15:42: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)
|
||||
public class ContentCompleteTalk extends BaseContent {
|
||||
|
||||
@Override
|
||||
public boolean execute(
|
||||
GameQuest quest, QuestData.QuestContentCondition condition, String paramStr, int... params) {
|
||||
return condition.getParam()[0] == params[0] &&
|
||||
GameData.getTalkConfigDataMap().get(condition.getParam()[0]) != null;
|
||||
val talkId = condition.getParam()[0];
|
||||
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