Skip to content
Snippets Groups Projects
Commit b254096a authored by dg's avatar dg
Browse files

Tentative fix for the NaN gold

git-svn-id: http://svn.net-core.org/repos/t-engine4@3949 51575b47-30f0-44d4-a5cc-537603b46e54
parent edce0b9c
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ newEntity{ base = "BASE_HEAVY_BOOTS",
level_range = {30, 40},
rarity = 250,
cost = 200,
material_level = 4,
material_level = 5,
wielder = {
combat_armor = 4,
combat_def = 4,
......
......@@ -37,6 +37,7 @@ When activated it will prompt to destroy items on the floor, if there are none i
transmo_filter = function(o) if o:getPrice() <= 0 or o.quest then return false end return true end,
transmo_inven = function(self, who, inven, idx, o)
local price = math.min(o:getPrice() * self.pricemod(o), 25) * o:getNumber()
price = math.floor(price * 100) / 100 -- Make sure we get at most 2 digit precision
who:removeObject(who:getInven("INVEN"), idx, true)
who:sortInven()
who:incMoney(price)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment