mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 23:07:50 +00:00
Format code [skip actions]
This commit is contained in:
parent
0b0dcf9b8e
commit
8200607a15
@ -125,8 +125,7 @@ public class GameMainQuest {
|
|||||||
int previousValue = this.questVars[i];
|
int previousValue = this.questVars[i];
|
||||||
this.questVars[i] = Utils.random.nextInt(low, high);
|
this.questVars[i] = Utils.random.nextInt(low, high);
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.debug(
|
.debug("questVar {} value randomized from {} to {}", i, previousValue, this.questVars[i]);
|
||||||
"questVar {} value randomized from {} to {}", i, previousValue, this.questVars[i]);
|
|
||||||
|
|
||||||
this.triggerQuestVarAction(i, this.questVars[i]);
|
this.triggerQuestVarAction(i, this.questVars[i]);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,12 @@ import emu.grasscutter.game.quest.handlers.QuestExecHandler;
|
|||||||
public class ExecRandomQuestVar extends QuestExecHandler {
|
public class ExecRandomQuestVar extends QuestExecHandler {
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(GameQuest quest, QuestData.QuestExecParam condition, String... paramStr) {
|
public boolean execute(GameQuest quest, QuestData.QuestExecParam condition, String... paramStr) {
|
||||||
quest.getMainQuest().randomQuestVar(Integer.parseInt(paramStr[0]), Integer.parseInt(paramStr[1]), Integer.parseInt(paramStr[2]));
|
quest
|
||||||
|
.getMainQuest()
|
||||||
|
.randomQuestVar(
|
||||||
|
Integer.parseInt(paramStr[0]),
|
||||||
|
Integer.parseInt(paramStr[1]),
|
||||||
|
Integer.parseInt(paramStr[2]));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user