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

learning a talent type sets its mastery to 1 if not set

git-svn-id: http://svn.net-core.org/repos/t-engine4@679 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4654bc3a
No related branches found
No related tags found
No related merge requests found
......@@ -411,6 +411,7 @@ end
function _M:learnTalentType(tt, v)
if v == nil then v = true end
self.talents_types[tt] = v
self.talents_types_mastery[tt] = self.talents_types_mastery[tt] or 1
self.changed = true
return true
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