Moved weather control alias from Levelsystem to a separate quest

This commit is contained in:
Eddoursul 2024-01-04 22:33:06 +01:00
parent 3830d439dd
commit 522839fe27
4 changed files with 4 additions and 16 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
Scriptname _00E_WeatherControlScriptSC extends ReferenceAlias Scriptname _00E_WeatherControlQuestScript extends ReferenceAlias
Int iScriptVersion = 0 Int iScriptVersion = 0
Int Property LATEST_SCRIPT_VERSION = 1 AutoReadOnly Int Property LATEST_SCRIPT_VERSION = 1 AutoReadOnly
@ -11,22 +11,10 @@ EndEvent
Event OnPlayerLoadGame() Event OnPlayerLoadGame()
If iScriptVersion < LATEST_SCRIPT_VERSION If iScriptVersion < LATEST_SCRIPT_VERSION
iScriptVersion = LATEST_SCRIPT_VERSION iScriptVersion = LATEST_SCRIPT_VERSION
; Release weather overrides from the previous version ; Update procedure
If AreSpecialWeathersEnabled()
If LocationIsSuntemple(GetPlayerLocation())
If IsSuntempleSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
ElseIf LocationIsArk(GetPlayerLocation())
If IsArkSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
EndIf
EndIf
iCurrentWeather = WEATHER_NONE iCurrentWeather = WEATHER_NONE
UpdateWeathers(True) UpdateWeathers(True)
EndIf EndIf
EndEvent EndEvent