# HG changeset patch # User James D. Callahan III # Date 1371489974 18000 # Node ID 6f70a1762ddee7b8d481cf371c5ae77c2e146710 # Parent 8cf9787fafe73368d6da0ee2d6a7b2b4f0f0be5a Remove commas from stat amounts parsed from tooltips so tonumber() will produce a usable result instead of nil. diff -r 8cf9787fafe7 -r 6f70a1762dde Main.lua --- 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