Skip to content

Commit

Permalink
Version tick to 1.1.2. *sigh*
Browse files Browse the repository at this point in the history
  • Loading branch information
Verteiron committed Sep 8, 2014
1 parent 6f1fb29 commit f050e3e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dist/Data/scripts/Source/vMYC_MetaQuestScript.psc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Function DoUpkeep(Bool DelayedStart = True)
;FIXME: CHANGE THIS WHEN UPDATING!
ModVersionMajor = 1
ModVersionMinor = 1
ModVersionPatch = 1
ModVersionPatch = 2
_iCurrentVersion = GetVersionInt(ModVersionMajor,ModVersionMinor,ModVersionPatch)
_sCurrentVersion = GetVersionString(_iCurrentVersion)
String sModVersion = GetVersionString(ModVersion as Int)
Expand Down Expand Up @@ -269,6 +269,14 @@ Function DoUpgrade()
ModVersion = GetVersionInt(1,1,1)
EndIf

If ModVersion < GetVersionInt(1,1,2)
Debug.Trace("MYC/Upgrade/1.1.2: Upgrading to 1.1.2...")
CharacterManager.DoUpkeep()
ShrineOfHeroes.DoUpkeep()
Debug.Trace("MYC/Upgrade/1.1.2: Upgrade to 1.1.2 complete!")
ModVersion = GetVersionInt(1,1,2)
EndIf

;Generic upgrade code
If ModVersion < _iCurrentVersion
Debug.Trace("MYC: Upgrading to " + GetVersionString(_iCurrentVersion) + "...")
Expand Down

0 comments on commit f050e3e

Please sign in to comment.