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

Infusion/Rune scaling is shown in talent info

git-svn-id: http://svn.net-core.org/repos/t-engine4@2093 51575b47-30f0-44d4-a5cc-537603b46e54
parent 03daa124
No related branches found
No related tags found
No related merge requests found
......@@ -461,9 +461,6 @@ function _M:getTextualDesc()
game.player.__inscription_data_fake = nil
desc:add({"color","YELLOW"}, "When inscribed on your body:", {"color", "LAST"}, true)
desc:merge(tdesc)
if self.inscription_data.use_stat and self.inscription_data.use_stat_mod then
desc:add(("Its effects scale with your %s stat."):format(Stats.stats_def[self.inscription_data.use_stat].name), true)
end
desc:add(true)
end
......
......@@ -37,6 +37,15 @@ local newInscription = function(t)
local data = self:getInscriptionData(t.short_name)
return data.cooldown
end
tt.old_info = tt.info
tt.info = function(self, t)
local ret = t.old_info(self, t)
local data = self:getInscriptionData(t.short_name)
if data.use_stat and data.use_stat_mod then
ret = ret..("\nIts effects scale with your %s stat."):format(self.stats_def[data.use_stat].name)
end
return ret
end
newTalent(tt)
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