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

New artifact shield: Black Mesh

git-svn-id: http://svn.net-core.org/repos/t-engine4@5241 51575b47-30f0-44d4-a5cc-537603b46e54
parent f19c3da9
No related branches found
No related tags found
No related merge requests found
......@@ -886,6 +886,7 @@ end
function _M:dieClonesDie()
if not self.level then return end
local p = self:getPlayer(true)
if not p.puuid then return end
for uid, e in pairs(self.level.entities) do
if p.puuid == e.puuid and e ~= p then self.level:removeEntity(e) end
end
......
......@@ -783,6 +783,48 @@ newEntity{ base = "BASE_SHIELD",
},
}
newEntity{ base = "BASE_SHIELD",
power_source = {nature=true},
unique = true,
name = "Black Mesh", image = "object/artifact/shield_mesh.png",
unided_name = "pile of tendrils",
desc = [[Black, interwoven tendrils form this mesh that can be used as shield. It reacts visibly to your touch, clinging to your arm and engulfing it in a warm, black mass.]],
color = colors.BLACK,
level_range = {15, 30},
rarity = 270,
require = { stat = { str=20 }, }, --make str to 20
cost = 400,
material_level = 3,
metallic = false,
special_combat = {
dam = resolvers.rngavg(25,35),
block = resolvers.rngavg(90, 120),
physcrit = 5,
dammod = {str=1},
},
wielder = {
combat_armor = 2,
combat_def = 8,
combat_def_ranged = 8,
fatigue = 12,
learn_talent = { [Talents.T_BLOCK] = 3, },
resists = { [DamageType.BLIGHT] = 15, [DamageType.DARKNESS] = 30, },
stamina_regen = 2,
},
on_block = function(self, who, src, type, dam, eff)
if rng.percent(30) then
if not src then return end
src:pull(who.x, who.y, 15)
game.logSeen(src, "Black tendrils shoot out of the mesh and pull %s to you!", src.name:capitalize())
if core.fov.distance(who.x, who.y, src.x, src.y) <= 1 and src:canBe('pin') then
src:setEffect(src.EFF_CONSTRICTED, 6, {src=who})
end
end
end,
}
newEntity{ base = "BASE_LIGHT_ARMOR",
power_source = {technique=true},
unique = true,
......
......@@ -368,7 +368,7 @@ newEffect{
type = "physical",
subtype = { grapple=true, pin=true },
status = "detrimental",
parameters = {},
parameters = {power=10},
on_gain = function(self, err) return "#Target# is constricted!", "+Constricted" end,
on_lose = function(self, err) return "#Target# is free to breathe.", "-Constricted" end,
activate = function(self, eff)
......
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