Quantcast

Default db version for autopilot is now 3

Alar of Runetotem [01-22-17 - 15:20]
Default db version for autopilot is now 3
Filename
GarrisonCommander.lua
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index 612a2de..825d1b1 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -881,7 +881,7 @@ function addon:SetDbDefaults(default)
 	default.profile=default.profile or {}
 	default.profile.missionControl={
 		blacklist={},
-		version=1,
+		version=3,
 		allowedRewards = {
 			['*']=true,
 		},
@@ -899,6 +899,26 @@ function addon:SetDbDefaults(default)
 		minLevel=540,
 		minUpgrade=600
 	}
+	default.profile.shipControl={
+		blacklist={},
+		version=3,
+		allowedRewards = {
+			['*']=true,
+		},
+		rewardChance={
+			['*']=100,
+		},
+		rewardList={},
+		useOneChance=true,
+		minimumChance = 100,
+		minDuration = 0,
+		maxDuration = 24,
+		epicExp = false,
+		skipRare=true,
+		skipEpic=true,
+		minLevel=540,
+		minUpgrade=600
+	}
 end
 function addon:CreatePrivateDb()
 	self.privatedb=self:RegisterDatabase(