Commits

Carighan Maconar committed d70fd5d

* Adjust to new system of particleDensity values

Comments (0)

Files changed (1)

 -- '-------------------------------------------------------------------------------'
 
 local _, lakename, _, _, _, _ = GetWorldPVPAreaInfo(1)
-local _, baradname, _, _, _, _ = GetWorldPvPAreaInfo(2)
+local _, baradname, _, _, _, _ = GetWorldPVPAreaInfo(2)
 
 function AutoGraph:OnEnable()
 	self:RegisterEvent("PLAYER_ENTERING_WORLD","WereZoned")
 function AutoGraph:RaidUpdated()
 	local raidMembers = GetNumRaidMembers()
 	if ((GetRealZoneText() == lakename) or (GetRealZoneText() == baradname)) then
-		SetCVar("particleDensity", 0.15)
+		SetCVar("particleDensity", 15)
 		return
 	elseif (raidMembers > 25) then
-		SetCVar("particleDensity", 0.3)
+		SetCVar("particleDensity", 30)
 		return
 	elseif (raidMembers > 15) then
-		SetCVar("particleDensity", 0.5)
+		SetCVar("particleDensity", 50)
 		return
-	elseif (raidMembers > 0) then
-		SetCVar("particleDensity", 0.7)
+	elseif (raidMembers > 10) then
+		SetCVar("particleDensity", 70)
 		return
-	elseif (raidMembers == 0) then
-		SetCVar("particleDensity", 1.0)
+	elseif (raidMembers == 0 or raidMembers > 0) then
+		SetCVar("particleDensity", 100)
 		return
 	end
 end
 		self:RaidUpdated()
 	else
 		self:UnregisterEvent("RAID_ROSTER_UPDATE")
-		SetCVar("particleDensity", 1.0)
+		SetCVar("particleDensity", 100)
 	end
 end