Format code [skip actions]

This commit is contained in:
github-actions 2023-10-02 14:58:22 +00:00
parent 582d7af9c4
commit 453dc9717d

View File

@ -295,12 +295,17 @@ public final class QuestManager extends BasePlayerManager {
} }
public void enableQuests() { public void enableQuests() {
GameData.getBeginCondQuestMap().keySet().forEach(x -> { GameData.getBeginCondQuestMap()
if (x.contains("QUEST_COND_STATE_NOT_EQUAL")) .keySet()
this.triggerEvent(QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26))); .forEach(
if (x.contains("QUEST_COND_STATE_EQUAL")) x -> {
this.triggerEvent(QuestCond.QUEST_COND_STATE_EQUAL, null, Integer.parseInt(x.substring(22))); if (x.contains("QUEST_COND_STATE_NOT_EQUAL"))
}); this.triggerEvent(
QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26)));
if (x.contains("QUEST_COND_STATE_EQUAL"))
this.triggerEvent(
QuestCond.QUEST_COND_STATE_EQUAL, null, Integer.parseInt(x.substring(22)));
});
this.triggerEvent(QuestCond.QUEST_COND_NONE, null, 0); this.triggerEvent(QuestCond.QUEST_COND_NONE, null, 0);
this.triggerEvent(QuestCond.QUEST_COND_PLAYER_LEVEL_EQUAL_GREATER, null, 1); this.triggerEvent(QuestCond.QUEST_COND_PLAYER_LEVEL_EQUAL_GREATER, null, 1);
} }