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

desc

git-svn-id: http://svn.net-core.org/repos/t-engine4@1531 51575b47-30f0-44d4-a5cc-537603b46e54
parent 95306c5b
No related branches found
No related tags found
No related merge requests found
......@@ -203,13 +203,16 @@ function _M:getTextualDesc()
desc:add(("%d Power [Range %0.2f] (%s), %d Attack, %d Armor Penetration, Crit %d%%"):format(self.combat.dam or 0, self.combat.damrange or 1.1, table.concat(dm, ','), self.combat.atk or 0, self.combat.apr or 0, self.combat.physcrit or 0), true)
desc:add("Damage type: "..DamageType:get(self.combat.damtype or DamageType.PHYSICAL).name, true)
if self.combat.range then desc:add("Firing range: "..self.combat.range, true) end
desc:add(true)
if self.combat.talent_on_hit then
for tid, data in pairs(self.combat.talent_on_hit) do
desc:add(("Talent on hit(melee): %d%% chance %s (level %d)."):format(data.chance, self:getTalentFromId(tid).name, data.level), true)
end
end
if self.combat.no_stealth_break then
desc:add("When used from stealth a simple attack with it will not break stealth.", true)
end
end
local desc_wielder = function(w)
......
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