mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 04:13:00 +08:00
Format code [skip actions]
This commit is contained in:
parent
582d7af9c4
commit
453dc9717d
@ -295,11 +295,16 @@ public final class QuestManager extends BasePlayerManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void enableQuests() {
|
public void enableQuests() {
|
||||||
GameData.getBeginCondQuestMap().keySet().forEach(x -> {
|
GameData.getBeginCondQuestMap()
|
||||||
|
.keySet()
|
||||||
|
.forEach(
|
||||||
|
x -> {
|
||||||
if (x.contains("QUEST_COND_STATE_NOT_EQUAL"))
|
if (x.contains("QUEST_COND_STATE_NOT_EQUAL"))
|
||||||
this.triggerEvent(QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26)));
|
this.triggerEvent(
|
||||||
|
QuestCond.QUEST_COND_STATE_NOT_EQUAL, null, Integer.parseInt(x.substring(26)));
|
||||||
if (x.contains("QUEST_COND_STATE_EQUAL"))
|
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_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);
|
||||||
|
Loading…
Reference in New Issue
Block a user