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

Fixed escort quests

git-svn-id: http://svn.net-core.org/repos/t-engine4@1252 51575b47-30f0-44d4-a5cc-537603b46e54
parent aae7a236
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,11 @@ newAI("move_escort", function(self)
return self:runAI("move_simple")
else
self.escort_path = {}
for i = 1, 3 do
if path[i+1] then self.escort_path[i] = path[i+1] end
local ret = self:move(path[1].x, path[1].y)
if self.x == path[1].x and self.y == path[1].y then
for i = 1, 3 do if path[i+1] then self.escort_path[i] = path[i+1] end end
end
return self:move(path[1].x, path[1].y)
return ret
end
end
end)
......@@ -250,6 +250,7 @@ end
function _M:move(x, y, force)
local moved = false
print("actor move", self.uid, self.name, "::", self.x, self.y, "=>", x, y)
if force or self:enoughEnergy() then
-- Confused ?
if not force and self:attr("confused") then
......
......@@ -487,7 +487,7 @@ function _M:combatSpellpower(mod)
if self:hasEffect(self.EFF_BLOODLUST) then
add = add + self:hasEffect(self.EFF_BLOODLUST).dur
end
return (self.combat_spellpower + add + self:getMag()) * mod
end
......@@ -534,7 +534,7 @@ function _M:physicalCrit(dam, weapon, target)
local chance = self:combatCrit(weapon)
local crit = false
if self:knowTalent(self.T_BACKSTAB) and target:attr("stunned") then chance = chance + self:getTalentLevel(self.T_BACKSTAB) * 10 end
if target:attr("combat_critical") then
chance = chance + target:attr("combat_critical")
end
......@@ -569,6 +569,7 @@ function _M:spellCrit(dam, add_chance)
if rng.percent(chance) then
dam = dam * 1.5
crit = true
game.logSeen(self, "%s's spell looks more powerful!", self.name:capitalize())
end
return dam, crit
end
......
......@@ -52,7 +52,7 @@ newTalent{
end
end,
info = function(self, t)
return ([[Arrange your items in better way, protecting those can can easily be destroyed reducing their chance to be destroyed by %d%%.]]):
return ([[Arrange your items in better way, protecting those that can easily be destroyed reducing their chance to be destroyed by %d%%.]]):
format(self:getTalentLevel(t) * 14)
end,
}
......
......@@ -92,7 +92,7 @@ newTalent{
end,
info = function(self, t)
return ([[A mighty kick that pushes your target away %d grids.
If an other creature is in the way it will also be pushed away.]]):format(math.floor(2 + self:getTalentLevel(t)))
If another creature is in the way it will also be pushed away.]]):format(math.floor(2 + self:getTalentLevel(t)))
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