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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4640 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8e28e694
No related branches found
No related tags found
No related merge requests found
......@@ -279,7 +279,7 @@ function _M:learnTalent(t_id, force, nb)
if position and not self.hotkey[position] then
self.hotkey[position] = {"talent", t_id}
else
for i = 1, 12 * self.nb_hotkey_pages do
for i = 1, 12 * (self.nb_hotkey_pages or 5) do
if not self.hotkey[i] then
self.hotkey[i] = {"talent", t_id}
break
......
......@@ -19,7 +19,7 @@
local DamageType = require "engine.DamageType"
--local print = function() end
local print = function() end
-- Internal functions
local checkLOS = function(sx, sy, tx, ty)
......@@ -316,7 +316,7 @@ newAI("use_tactical", function(self)
table.sort(avail.defend, function(a,b) return a.val > b.val end)
want.defend = 1 + need_heal / 2 + nb_foes_seen * 0.5
end
-- Need cure (remove detrimental effects)
local nb_detrimental_effs = 0
for eff_id, p in pairs(self.tmp) do
......
......@@ -1470,7 +1470,7 @@ newEntity{ base = "BASE_GEM",
game.logPlayer(who, "The fusing fails!")
end
end)
return true
return {id=true, used=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