emu.grasscutter.game.talk.exec.ExecIncQuestGlobalVar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grasscutter Show documentation
Show all versions of grasscutter Show documentation
A server software reimplementation for an anime game.
package emu.grasscutter.game.talk.exec;
import emu.grasscutter.data.excels.TalkConfigData;
import emu.grasscutter.data.excels.TalkConfigData.TalkExecParam;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.game.talk.*;
@TalkValueExec(TalkExec.TALK_EXEC_INC_QUEST_GLOBAL_VAR)
public final class ExecIncQuestGlobalVar extends TalkExecHandler {
@Override
public void execute(Player player, TalkConfigData talkData, TalkExecParam execParam) {
if (execParam.getParam().length < 2) return;
player
.getQuestManager()
.incQuestGlobalVarValue(
Integer.parseInt(execParam.getParam()[0]), Integer.parseInt(execParam.getParam()[1]));
}
}