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

Amulets of Mastery now always provide bonus to a tree the player has/can learn

git-svn-id: http://svn.net-core.org/repos/t-engine4@4945 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9a6ef01a
No related branches found
No related tags found
No related merge requests found
......@@ -52,13 +52,14 @@ newEntity{
name = " of mastery (#MASTERY#)", suffix=true,
keywords = {mastery=true},
level_range = {1, 50},
rarity = 3,
rarity = 6,
cost = 2,
wielder = {},
resolvers.generic(function(e)
local tts = {}
local p = game:getPlayer(true)
for i, def in ipairs(engine.interface.ActorTalents.talents_types_def) do
if def.allow_random then tts[#tts+1] = def.type end
if p and def.allow_random and p:knowTalentType(def.type) or p:knowTalentType(def.type) == false then tts[#tts+1] = def.type end
end
local tt = tts[rng.range(1, #tts)]
......
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