Quantcast

Fixed typo in defaultVars

Kevin Lyles [01-21-10 - 03:20]
Fixed typo in defaultVars
Changed in-game version to use the toc file's version
Updated to 1.1b9
Filename
Upgrade.lua
WeightsWatcher.toc
config.lua
defaults.lua
diff --git a/Upgrade.lua b/Upgrade.lua
index ef67ec4..16719ec 100644
--- a/Upgrade.lua
+++ b/Upgrade.lua
@@ -135,6 +135,16 @@ function noop_major_up(vars)
 	return vars
 end

+function upgradeAccountToShowAlternateGemsTypoFix(vars)
+	if vars.options.tooltip.showAlternateGems == nil then
+		vars.options.tooltip.showAlternateGems = "Alt"
+	end
+	vars.options.tooltip.showAlternativeGems = nil
+
+	vars.dataMinorVersion = 8
+	return vars
+end
+
 function upgradeAccountToShowAlternateGems(vars)
 	if vars.options.tooltip.showAlternateGems == nil then
 		vars.options.tooltip.showAlternateGems = "Alt"
@@ -745,6 +755,7 @@ upgradeAccountFunctions = {
 		[4] = function(vars) return upgradeAccountToFixedConfigOptions(vars) end,
 		[5] = function(vars) return upgradeAccountToGemSources(vars) end,
 		[6] = function(vars) return upgradeAccountToShowAlternateGems(vars) end,
+		[7] = function(vars) return upgradeAccountToShowAlternateGemsTypoFix(vars) end,
 	},
 }

@@ -769,6 +780,7 @@ downgradeAccountFunctions = {
 		[5] = downgradeAccountFromFixedConfigOptions,
 		[6] = downgradeAccountFromGemSources,
 		[7] = noop_down,
+		[8] = noop_down,
 	},
 }

diff --git a/WeightsWatcher.toc b/WeightsWatcher.toc
index 0489313..d13ecf2 100644
--- a/WeightsWatcher.toc
+++ b/WeightsWatcher.toc
@@ -2,7 +2,7 @@
 ## Title: Weights Watcher
 ## Notes: Ranks gear according to customizable stat weights
 ## Author: The Flying Squirrels
-## Version: 1.1b8
+## Version: 1.1b9
 ## OptionalDeps: AtlasLoot
 ## SavedVariables: ww_vars
 ## SavedVariablesPerCharacter: ww_charVars
diff --git a/config.lua b/config.lua
index e2463f3..a949a4e 100644
--- a/config.lua
+++ b/config.lua
@@ -25,7 +25,7 @@ function commandHandler(msg)
 			ww_weights:Show()
 		end
 	elseif msg == "version" then
-		print("WeightsWatcher version: 1.1b8")
+		print("WeightsWatcher version: " .. WeightsWatcher.version)
 		print("  Account data version: " .. ww_vars.dataMajorVersion .. "." .. ww_vars.dataMinorVersion)
 		print("  Character data version: " .. ww_charVars.dataMajorVersion .. "." .. ww_charVars.dataMinorVersion)
 	else
diff --git a/defaults.lua b/defaults.lua
index b50f28d..e145431 100644
--- a/defaults.lua
+++ b/defaults.lua
@@ -133,7 +133,7 @@ classNameOptions = {

 defaultVars = {
 	dataMajorVersion = 1,
-	dataMinorVersion = 7,
+	dataMinorVersion = 8,
 	weightsList = {
 		[1] = "DEATHKNIGHT",
 		[2] = "DRUID",
@@ -547,7 +547,7 @@ defaultVars = {
 		tooltip = {
 			hideHints = false,
 			normalizeWeights = true,
-			showAlternativeGems = "Alt",
+			showAlternateGems = "Alt",
 			showClassNames = "Others",
 			showDifferences = true,
 			showIdealGems = "Control",