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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1702 51575b47-30f0-44d4-a5cc-537603b46e54
parent 21ec815f
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ newAI("move_escort", function(self)
local tx, ty = self.escort_target.x, self.escort_target.y
local a = Astar.new(game.level.map, self)
local path = self.escort_path
if path and path[1] and math.floor(core.fov.distance(self.x, self.y, path[1].x, path[1].y)) > 1 then self.escort_path = nil path = nil end
if not path or #path == 0 then path = a:calc(self.x, self.y, tx, ty) end
if not path then
return self:runAI("move_simple")
......
......@@ -381,6 +381,8 @@ function _M:getTextualDesc()
if w.healing_factor then desc:add(("Increases all healing by %d%%"):format(w.healing_factor * 100), true) end
if w.belt_slots then desc:add(("Allows to put %d small objects in the belt."):format(w.belt_slots), true) end
end
if self.wielder then
......
......@@ -40,8 +40,8 @@ local reward_types = {
["spell/divination"] = 0.7,
},
talents = {
[Talents.T_SENSE] = 1,
[Talents.T_IDENTIFY] = 1,
[Talents.T_ARCANE_EYE] = 1,
[Talents.T_PREMONITION] = 1,
[Talents.T_VISION] = 1,
},
stats = {
......
......@@ -43,6 +43,7 @@ newTalent{
if dam < target.max_life * (20 + (30 - self:getTalentLevelRaw(t) * 5)) / 100 then return end
local weapon = target:getInven("MAINHAND")
if type(weapon) == "boolean" then weapon = nil end
if weapon then weapon = weapon[1] and weapon[1].combat end
if not weapon or type(weapon) ~= "table" then weapon = nil end
weapon = weapon or target.combat
......
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