v0.4.11 Added String for Version, bumped version, started to keep track of shortest research
His Dad [12-20-14 - 02:57]
v0.4.11 Added String for Version, bumped version, started to keep track of shortest research
diff --git a/CraftResearchTimer.txt b/CraftResearchTimer.txt
index e9829f6..2886ca7 100644
--- a/CraftResearchTimer.txt
+++ b/CraftResearchTimer.txt
@@ -1,7 +1,7 @@
-## Title: |c96FF00Craft Research Timer|r - |c96FF000.4.10|r
+## Title: |c96FF00Craft Research Timer|r - |c96FF000.4.11|r
## APIVersion: 100010
## SavedVariables: CraftResearchTimer_SavedVariables
-## Version: 0.4.10
+## Version: 0.4.11
## Author: @aTo (EU) + Patch by @GarulfoX
lib\LibStub.lua
diff --git a/lua/CORE.lua b/lua/CORE.lua
index 184d455..e0e676d 100644
--- a/lua/CORE.lua
+++ b/lua/CORE.lua
@@ -1,5 +1,5 @@
-- Craft Research Timer (CRT) by @aTo (EU)
--- v0.4.8
+-- v0.4.11
function CRT_Collect_Data(playername)
@@ -15,6 +15,7 @@ function CRT_Info_Research(craft_type,id_craft,playername)
local nbtype = GetNumSmithingResearchLines(craft_type) --Nombre de item craftable pour un craft(ex couture: jambe/robe/ect)
CRT.SV.Craft_data[playername][id_craft] = {}
+ CRT.SV.Craft_data[playername].shortest = GetTimeStamp() + 99999999 -- for this player find next due.
for ResearchLines = 1, nbtype, 1 do
local item_name, item_icon, numTraits, timeRequiredForNextResearchSecs = GetSmithingResearchLineInfo(craft_type, ResearchLines)
@@ -40,7 +41,10 @@ function CRT_Info_Research(craft_type,id_craft,playername)
CRT.SV.Craft_data[playername][id_craft][Simu_craft]["Trait_name"] = trait_name
CRT.SV.Craft_data[playername][id_craft][Simu_craft]["Trait_icon"] = trait_icon
CRT.SV.Craft_data[playername][id_craft][Simu_craft]["Trait_description"] = trait_description
-
+
+ if CRT.SV.Craft_data[playername].shortest > CRT.SV.Craft_data[playername][id_craft][Simu_craft]["EndTimeStamp"]
+ then CRT.SV.Craft_data[playername].shortest = CRT.SV.Craft_data[playername][id_craft][Simu_craft]["EndTimeStamp"]
+ end
-- d("Type de craft :"..id_craft.." nom de l'item :"..name.." temps restant :"..temp_timer[Simu_craft])
end
end
diff --git a/lua/CraftResearchTimer.lua b/lua/CraftResearchTimer.lua
index 7cbd742..4201840 100644
--- a/lua/CraftResearchTimer.lua
+++ b/lua/CraftResearchTimer.lua
@@ -1,5 +1,5 @@
-- Craft Research Timer (CRT) by @aTo (EU)
--- v0.4.8
+-- v0.4.11
CRT = {
name = "CraftResearchTimer",
@@ -8,6 +8,7 @@ CRT = {
tic = 1,
svName = "CraftResearchTimer_SavedVariables",
svVersion = 0.4,
+ version = "v0.4.11",
font = "ZoFontGame",
interval = 20,
width = 100,
@@ -606,7 +607,7 @@ end
function CRT_CommandText_setup(lparam)
if (lparam == "info") then
d("Craft Research Timer (CRT) by @aTo (EU)")
- d("Version 0.4.8")
+ d("Version " .. CRT.version)
d("The CRT have moved to the normal game settings")
elseif (lparam == "grid") then
CRT_toggleGRID()