增加时间锁定、天气锁定属性判断

This commit is contained in:
unkown committed 2024-04-05 22:42:16 +08:00
1 parent 6af98227c7
commit fd937a7095
9 files changed
+54 -43

No files matched your search

+2 -2
View File
@@ -847,7 +847,7 @@ func EnterWeatherArea(luaState *lua.LState) int {
weatherAreaId := luaState.ToInt(2)
// 设置玩家天气
climateType := GAME.GetWeatherAreaClimate(uint32(weatherAreaId))
GAME.SetPlayerWeather(player, uint32(weatherAreaId), climateType)
GAME.SetPlayerWeather(player, uint32(weatherAreaId), climateType, true)
luaState.Push(lua.LNumber(0))
return 1
}
@@ -865,7 +865,7 @@ func SetWeatherAreaState(luaState *lua.LState) int {
}
weatherAreaId := luaState.ToInt(2)
climateType := luaState.ToInt(3)
GAME.SetPlayerWeather(player, uint32(weatherAreaId), uint32(climateType))
GAME.SetPlayerWeather(player, uint32(weatherAreaId), uint32(climateType), true)
luaState.Push(lua.LNumber(0))
return 1
}