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

Fix lost merchant quest: can not push around things

git-svn-id: http://svn.net-core.org/repos/t-engine4@1866 51575b47-30f0-44d4-a5cc-537603b46e54
parent 267cd922
No related branches found
No related tags found
No related merge requests found
......@@ -92,8 +92,10 @@ newEntity{
},
post_process = function(level)
for uid, e in pairs(level.entities) do
if e.faction ~= "allied-kingdoms" then e.faction="assassin-lair" end
if not e.can_talk then e.can_talk = "assassin-lord-thieves" end
if e.faction ~= "allied-kingdoms" then
e.faction="assassin-lair"
e.cant_be_moved = true
end
end
end,
}, },
......
......@@ -33,12 +33,12 @@ newEntity{ base = "TRAP_ALARM",
for i = x - 20, x + 20 do for j = y - 20, y + 20 do if game.level.map:isBound(i, j) then
local actor = game.level.map(i, j, game.level.map.ACTOR)
if actor and not actor.player then
if who:reactionToward(actor) >= 0 then
if who:reactionToward(actor) > 0 then
local tx, ty, a = who:getTarget()
if a then
actor:setTarget(a)
end
else
elseif who:reactionToward(actor) < 0 then
actor:setTarget(who)
end
end
......
......@@ -29,6 +29,7 @@ defineTile('P', "FLOOR", nil, mod.class.NPC.new{
display = "p", color=colors.VIOLET,
name = "Assassin Lord",
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
cant_be_moved = true,
resolvers.drops{chance=20, nb=1, {} },
resolvers.equip{
......@@ -76,6 +77,7 @@ defineTile('@', "FLOOR", nil, mod.class.NPC.new{
faction = "allied-kingdoms",
can_talk = "lost-merchant",
is_merchant = true,
cant_be_moved = true,
})
startx = 2
......
......@@ -37,6 +37,7 @@ newTalent{
end,
info = function(self, t)
return ([[You transform into pure lightning, moving %d%% faster for %d turns.
Also provides 30%% physical damage resistance and 100%% lightning resistance.
Any actions other than moving will stop this effect.]]):format(400 + self:getTalentLevel(t) * 70, math.ceil(6 + self:getTalentLevel(t) * 1.2))
end,
}
......
......@@ -83,10 +83,11 @@ newTalent{
return true
end,
info = function(self, t)
return ([[Enters an aggressive battle stance, increasing attack by %d and damage by %d at the cost of %d defense and %d armor.
return ([[Enters an aggressive battle stance, increasing attack by %d and damage by %d at the cost of -10 defense and -10 armor.
While berserking you are naerly unstoppable, granting %d%% stun and pinning resistance.]]):
format(
5 + self:getDex(7) * self:getTalentLevel(t), 5 + self:getStr(7) * self:getTalentLevel(t), -5 - 2 * (self:getTalentLevelRaw(t)-1), -5 - 2 * (self:getTalentLevelRaw(t)-1),
5 + self:getDex(7) * self:getTalentLevel(t),
5 + self:getStr(7) * self:getTalentLevel(t),
0.1 * 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