diff Main.lua @ 295:6f70a1762dde

Remove commas from stat amounts parsed from tooltips so tonumber() will produce a usable result instead of nil.
author James D. Callahan III <jcallahan@curse.com>
date Mon, 17 Jun 2013 12:26:14 -0500
parents 8cf9787fafe7
children 0cad30f414f6
line wrap: on
line diff
--- a/Main.lua	Thu Jun 13 14:45:13 2013 -0500
+++ b/Main.lua	Mon Jun 17 12:26:14 2013 -0500
@@ -841,7 +841,7 @@
                     end
                 end
                 create_entry = true
-                intermediary[stat:lower():gsub(" ", "_"):gsub("|r", "")] = tonumber(amount)
+                intermediary[stat:lower():gsub(" ", "_"):gsub("|r", "")] = tonumber((amount:gsub(",", "")))
             end
         end