Fix bar type classes to make sure params field is initialized

Sasky [04-01-15 - 15:59]
Fix bar type classes to make sure params field is initialized

This should fix errors on show skill xp bars
Filename
ChampionBar.txt
EnlightenmentPoolBar.lua
VPMaxBar.lua
diff --git a/ChampionBar.txt b/ChampionBar.txt
index 66950a4..3062e16 100644
--- a/ChampionBar.txt
+++ b/ChampionBar.txt
@@ -1,6 +1,6 @@
 ## APIVersion: 100011
 ## Title: CyrHUD
-## Version: 0.9
+## Version: 0.9.1
 ## Author: Sasky

 VPMaxBar.lua
diff --git a/EnlightenmentPoolBar.lua b/EnlightenmentPoolBar.lua
index bbc39ea..e03dc92 100644
--- a/EnlightenmentPoolBar.lua
+++ b/EnlightenmentPoolBar.lua
@@ -25,10 +25,11 @@ local EPBarType = ZO_Object:Subclass()
 ChampionBar.EPBarType = EPBarType
 PPB_CLASS_EP = 5

-function EPBarType:New(barTypeClass, barTypeId)
+function EPBarType:New(barTypeClass, barTypeId, ...)
     local obj = ZO_Object.New(self)
     obj.barTypeClass = barTypeClass
     obj.barTypeId = barTypeId
+    obj.params = {...}
     obj:Initialize()
     obj:InitializeLastValues()
     return obj
@@ -94,7 +95,7 @@ function EPBarType:GetLevel()
 end

 function EPBarType:GetCurrent()
-    -- math.sqrt(GetEnlightenedPool())*math.sqrt(self:GetLevelSize())
+    -- ChampionBar.cpCurve(GetEnlightenedPool(),self:GetLevelSize())
     return GetEnlightenedPool()
 end

diff --git a/VPMaxBar.lua b/VPMaxBar.lua
index 15b50fa..61036dd 100644
--- a/VPMaxBar.lua
+++ b/VPMaxBar.lua
@@ -24,10 +24,11 @@ ChampionBar = ChampionBar or {}
 local VPMaxBarType = ZO_Object:Subclass()
 ChampionBar.VPMaxBarType = VPMaxBarType

-function VPMaxBarType:New(barTypeClass, barTypeId)
+function VPMaxBarType:New(barTypeClass, barTypeId, ...)
     local obj = ZO_Object.New(self)
     obj.barTypeClass = barTypeClass
     obj.barTypeId = barTypeId
+    obj.params = {...}
     obj:Initialize()
     obj:InitializeLastValues()
     return obj