mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 19:46:30 +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];
|
||||
this.questVars[i] = Utils.random.nextInt(low, high);
|
||||
Grasscutter.getLogger()
|
||||
.debug(
|
||||
"questVar {} value randomized from {} to {}", i, previousValue, this.questVars[i]);
|
||||
.debug("questVar {} value randomized from {} to {}", i, previousValue, 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 {
|
||||
@Override
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user