场景时间更新,自动切换气象初步
This commit is contained in:
1 parent
1bcde691bc
commit
be737e45e9
7 files changed
+107
-33
No files matched your search
+3
-1
@@ -764,7 +764,9 @@ func EnterWeatherArea(luaState *lua.LState) int {
|
||||
return 1
|
||||
}
|
||||
weatherAreaId := luaState.ToInt(2)
|
||||
GAME.SetPlayerWeatherByWeatherAreaId(player, uint32(weatherAreaId))
|
||||
// 设置玩家天气
|
||||
climateType := GAME.GetWeatherAreaClimate(uint32(weatherAreaId))
|
||||
GAME.SetPlayerWeather(player, uint32(weatherAreaId), climateType)
|
||||
luaState.Push(lua.LNumber(0))
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user