Skip to content
Snippets Groups Projects
Commit 8c920b47 authored by Lisa Greene's avatar Lisa Greene
Browse files

Item armour and defense tooltips have learned what sig figs are

No more 13.68419783265183724592318563715t6138644108767472 armour values
parent 3cc2ff55
No related branches found
No related tags found
1 merge request!603Misc 1.6.6
......@@ -447,7 +447,7 @@ function _M:descAttribute(attr)
return c.block.." block"
end
elseif attr == "ARMOR" then
return (self.wielder and self.wielder.combat_def or 0).." def, "..(self.wielder and self.wielder.combat_armor or 0).." armour"
return (self.wielder and self.wielder.combat_def and math.round(self.wielder.combat_def) or 0).." def, "..(self.wielder and self.wielder.combat_armor and math.round(self.wielder.combat_armor) or 0).." armour"
elseif attr == "ATTACK" then
return (self.wielder and self.wielder.combat_atk or 0).." accuracy, "..(self.wielder and self.wielder.combat_apr or 0).." apr, "..(self.wielder and self.wielder.combat_dam or 0).." power"
elseif attr == "MONEY" then
......
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