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

Pits creatures are "vaulted"

git-svn-id: http://svn.net-core.org/repos/t-engine4@6253 51575b47-30f0-44d4-a5cc-537603b46e54
parent eb7436b5
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,10 @@ return function(gen, id)
if ispit then
local e = gen.zone:makeEntity(gen.level, "actor", ispit, nil, true)
if e then
if e then gen:roomMapAddEntity(i-1+x, j-1+y, "actor", e) end
if e then
gen:roomMapAddEntity(i-1+x, j-1+y, "actor", e)
e:setEffect(e.EFF_VAULTED, 1, {})
end
gen.map.attrs(i-1+x, j-1+y, "no_decay", true)
end
end
......
......@@ -48,7 +48,10 @@ return function(gen, id)
doors[#doors+1] = {i-1+x, j-1+y}
else
local e = gen.zone:makeEntity(gen.level, "actor", filter, nil, true)
if e then gen:roomMapAddEntity(i-1+x, j-1+y, "actor", e) end
if e then
gen:roomMapAddEntity(i-1+x, j-1+y, "actor", e)
e:setEffect(e.EFF_VAULTED, 1, {})
end
end
if is_lit then gen.map.lites(i-1+x, j-1+y, true) end
end
......
......@@ -103,7 +103,7 @@ newTalent{
require = techs_dex_req4,
range = archery_range,
radius = function(self, t)
return 2 + self:getTalentLevel(t)/3
return math.floor(2 + self:getTalentLevel(t)/3)
end,
direct_hit = true,
tactical = { ATTACKAREA = { weapon = 2 } },
......@@ -123,7 +123,7 @@ newTalent{
end,
info = function(self, t)
return ([[You fire multiple arrows at an area of %d radius, doing %d%% damage with each arrow.]])
:format(2 + self:getTalentLevel(t)/3,
:format(self:getTalentRadius(t),
100 * self:combatTalentWeaponDamage(t, 0.6, 1.3))
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