Format code [skip actions]

This commit is contained in:
github-actions 2023-08-07 04:28:56 +00:00
parent 0b0dcf9b8e
commit 8200607a15
2 changed files with 7 additions and 3 deletions

View File

@ -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]);
} }

View File

@ -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;
} }
} }