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

Shield attack section and Gloves attack section will only show in descriptions if you can use them

git-svn-id: http://svn.net-core.org/repos/t-engine4@3635 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7da43d93
No related branches found
No related tags found
No related merge requests found
......@@ -717,7 +717,7 @@ function _M:getTextualDesc(compare_with)
compare_unarmed[i] = compare_with[i].wielder or {}
end
if w and w.combat or can_combat_unarmed then
if (w and w.combat or can_combat_unarmed) and game.player:knowTalent(game.player.T_EMPTY_HAND) then
desc:add({"color","YELLOW"}, "When used to modify unarmed attacks:", {"color", "LAST"}, true)
compare_tab = { dam=1, atk=1, apr=0, physcrit=0, physspeed =1, dammod={str=1}, damrange=1.1 }
desc_combat(w, compare_unarmed, "combat", compare_tab)
......@@ -755,7 +755,7 @@ function _M:getTextualDesc(compare_with)
desc_combat(self, compare_with, "combat")
end
if self.special_combat or can_special_combat then
if (self.special_combat or can_special_combat) and (game.player:knowTalentType("technique/shield-offense") or game.player:knowTalentType("technique/shield-defense")) then
desc:add({"color","YELLOW"}, "When used to attack (with talents):", {"color", "LAST"}, true)
desc_combat(self, compare_with, "special_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