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

reduce boss talents

git-svn-id: http://svn.net-core.org/repos/t-engine4@5048 51575b47-30f0-44d4-a5cc-537603b46e54
parent 083cc39a
No related branches found
No related tags found
No related merge requests found
...@@ -293,7 +293,7 @@ function _M:learnTalent(t_id, force, nb) ...@@ -293,7 +293,7 @@ function _M:learnTalent(t_id, force, nb)
self.talents[t_id] = (self.talents[t_id] or 0) + (nb or 1) self.talents[t_id] = (self.talents[t_id] or 0) + (nb or 1)
if t.on_learn then t.on_learn(self, t) end if t.on_learn then for i = 1, (nb or 1) do t.on_learn(self, t) end end
self.changed = true self.changed = true
return true return true
......
...@@ -1115,9 +1115,7 @@ function _M:setupCommands() ...@@ -1115,9 +1115,7 @@ function _M:setupCommands()
end end end end
end end, end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then [{"_g","ctrl"}] = function() if config.settings.cheat then
local o = self.state:generateRandart(false) self.state:debugRandomZone()
o:identify(true)
self.zone:addEntity(self.level, o, "object", game.player.x, game.player.y)
end end, end end,
[{"_f","ctrl"}] = function() if config.settings.cheat then [{"_f","ctrl"}] = function() if config.settings.cheat then
self.player.quests["love-melinda"] = nil self.player.quests["love-melinda"] = nil
......
...@@ -1545,7 +1545,7 @@ function _M:createRandomBoss(base, data) ...@@ -1545,7 +1545,7 @@ function _M:createRandomBoss(base, data)
for tid, v in pairs(class.talents or {}) do for tid, v in pairs(class.talents or {}) do
local t = b:getTalentFromId(tid) local t = b:getTalentFromId(tid)
if not t.no_npc_use and (not t.random_boss_rarity or rng.chance(t.random_boss_rarity)) then if not t.no_npc_use and (not t.random_boss_rarity or rng.chance(t.random_boss_rarity)) then
local max = (t.points == 1) and 1 or math.ceil(t.points * 1.6) local max = (t.points == 1) and 1 or math.ceil(t.points * 1.2)
local step = max / 50 local step = max / 50
tres[1][tid] = v + math.ceil(step * data.level) tres[1][tid] = v + math.ceil(step * data.level)
end end
...@@ -1563,7 +1563,7 @@ function _M:createRandomBoss(base, data) ...@@ -1563,7 +1563,7 @@ function _M:createRandomBoss(base, data)
local t = b:getTalentFromId(tid) local t = b:getTalentFromId(tid)
if t then if t then
print(" * talent", tid) print(" * talent", tid)
local max = (t.points == 1) and 1 or math.ceil(t.points * 1.4) local max = (t.points == 1) and 1 or math.ceil(t.points * 1.2)
local step = max / 50 local step = max / 50
b.learn_tids[tid] = math.ceil(step * data.level) b.learn_tids[tid] = math.ceil(step * data.level)
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