All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.game.talk.exec.ExecSetQuestGlobalVar Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
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_SET_QUEST_GLOBAL_VAR)
public final class ExecSetQuestGlobalVar extends TalkExecHandler {
    @Override
    public void execute(Player player, TalkConfigData talkData, TalkExecParam execParam) {
        if (execParam.getParam().length < 2) return;

        player
                .getQuestManager()
                .setQuestGlobalVarValue(
                        Integer.parseInt(execParam.getParam()[0]), Integer.parseInt(execParam.getParam()[1]));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy