mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-09 20:52:59 +08:00
Merge remote-tracking branch 'origin/unstable' into unstable
This commit is contained in:
commit
2b13ea2a82
@ -708,6 +708,17 @@ public class ScriptLib {
|
|||||||
return quest.getState().getValue();
|
return quest.getState().getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetHostQuestState(int questId){
|
||||||
|
val player = getSceneScriptManager().getScene().getWorld().getHost();
|
||||||
|
|
||||||
|
val quest = player.getQuestManager().getQuestById(questId);
|
||||||
|
if(quest == null){
|
||||||
|
return QuestState.QUEST_STATE_NONE.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
return quest.getState().getValue();
|
||||||
|
}
|
||||||
|
|
||||||
public int ShowReminder(int reminderId){
|
public int ShowReminder(int reminderId){
|
||||||
getSceneScriptManager().getScene().broadcastPacket(new PacketDungeonShowReminderNotify(reminderId));
|
getSceneScriptManager().getScene().broadcastPacket(new PacketDungeonShowReminderNotify(reminderId));
|
||||||
return 0;
|
return 0;
|
||||||
@ -1207,6 +1218,12 @@ public class ScriptLib {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int EnterWeatherArea(int var1){
|
||||||
|
logger.warn("[LUA] Call unimplemented EnterWeatherArea with {}", var1);
|
||||||
|
//TODO implement
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//TODO check
|
//TODO check
|
||||||
public boolean CheckIsInMpMode(){
|
public boolean CheckIsInMpMode(){
|
||||||
logger.debug("[LUA] Call CheckIsInMpMode");
|
logger.debug("[LUA] Call CheckIsInMpMode");
|
||||||
|
@ -73,6 +73,7 @@ public class ScriptLoader {
|
|||||||
addEnumByOrdinal(ctx, SealBattleType.values(), "SealBattleType");
|
addEnumByOrdinal(ctx, SealBattleType.values(), "SealBattleType");
|
||||||
addEnumByOrdinal(ctx, FatherChallengeProperty.values(), "FatherChallengeProperty");
|
addEnumByOrdinal(ctx, FatherChallengeProperty.values(), "FatherChallengeProperty");
|
||||||
addEnumByOrdinal(ctx, ChallengeEventMarkType.values(), "ChallengeEventMarkType");
|
addEnumByOrdinal(ctx, ChallengeEventMarkType.values(), "ChallengeEventMarkType");
|
||||||
|
addEnumByOrdinal(ctx, VisionLevelType.values(), "VisionLevelType");
|
||||||
|
|
||||||
ctx.globals.set(
|
ctx.globals.set(
|
||||||
"EventType",
|
"EventType",
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
package emu.grasscutter.scripts.constants;
|
||||||
|
|
||||||
|
public enum VisionLevelType {
|
||||||
|
VISION_LEVEL_NORMAL,
|
||||||
|
VISION_LEVEL_LITTLE_REMOTE,
|
||||||
|
VISION_LEVEL_REMOTE
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user