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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3224 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1610e162
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ function _M:getTextualDesc()
if self.quest then desc:add({"color", "VIOLET"}, "{Plot Item}", {"color", "LAST"}, true) end
desc:add(("Type: %s / %s"):format(self.type or "unknown", self.subtype or "unknown"), true)
desc:add(("Type: %s / %s"):format(rawget(self, 'type') or "unknown", self.subtype or "unknown"), true)
if self.slot_forbid == "OFFHAND" then desc:add("It must be held with both hands.", true) end
desc:add(true)
......@@ -448,12 +448,12 @@ function _M:getTextualDesc()
if w.life_leech_chance then desc:add(("%d%% chances on all damage dealt to leech %d%% of the damage done as health."):format(w.life_leech_chance, w.life_leech_value), true) end
if w.size_category then desc:add(("Increases size category by %d."):format(w.size_category), true) end
if w.combat then
desc:add({"color","YELLOW"}, "When used to modify unarmed attacks:", {"color", "LAST"}, true)
desc_combat(w.combat)
end
end
if self.combat then desc_combat(self.combat) 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