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

Gloves & gauntlets should display correct damage mods

git-svn-id: http://svn.net-core.org/repos/t-engine4@3454 51575b47-30f0-44d4-a5cc-537603b46e54
parent 00e4021e
No related branches found
No related tags found
No related merge requests found
......@@ -456,7 +456,18 @@ function _M:getTextualDesc()
if w.combat then
desc:add({"color","YELLOW"}, "When used to modify unarmed attacks:", {"color", "LAST"}, true)
desc_combat(w.combat)
-- clone the table to show modified values
local unarmed = table.clone(w.combat)
if unarmed.damrange then unarmed.damrange = unarmed.damrange + 1.1 end
if unarmed.dammod.str then unarmed.dammod.str = unarmed.dammod.str + 1 end
desc_combat(unarmed)
-- subtract the modified values to keep the tooltips correct
if unarmed.damrange then unarmed.damrange = unarmed.damrange - 1.1 end
if unarmed.dammod.str then unarmed.dammod.str = unarmed.dammod.str - 1 end
end
end
......
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