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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@6217 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4fd6b7c8
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ defineTile('u', mod.class.Grid.new{
on_move = function(self, x, y, actor, forced)
if not actor.player then return end
if forced then return end
local g = game.zone:makeEntityByName(game.level, "terrain", "DOOR_OPEN")
local g = game.zone:makeEntityByName(game.level, "terrain", "FLOOR")
game.zone:addEntity(game.level, g, "terrain", x - 4, y - 4)
game.zone:addEntity(game.level, g, "terrain", x + 4, y - 4)
game.zone:addEntity(game.level, g, "terrain", x + 4, y + 4)
......@@ -51,19 +51,8 @@ defineTile('u', mod.class.Grid.new{
{random_filter={add_levels=10, tome_mod="gvault"}}
)
defineTile('+', mod.class.Grid.new{
define_as = "TRIGGERED_DOOR",
name = "sealed door", image = "terrain/sealed_door.png",
type = "door", subtype = 1,
display = '+', color=colors.WHITE, back_color=colors.DARK_UMBER,
notice = true,
always_remember = true,
block_sight = true,
does_block_move = true,
}
)
defineTile('.', "FLOOR")
defineTile('+', "HARDWALL")
defineTile('#', "HARDWALL")
defineTile('X', "DOOR_VAULT")
defineTile('&', "LAVA_FLOOR")
......
......@@ -95,8 +95,9 @@ newTalent{
cooldown = 15,
tactical = { ATTACKAREA = {BLIGHT = 1}, DISABLE = 2, ESCAPE = 2 },
range = 7,
radius = 3,
action = function(self, t)
local tg = {type="ball", radius=3, range=self:getTalentRange(t), talent=t}
local tg = {type="ball", radius=self:getTargetRadius(t), range=self:getTalentRange(t), talent=t}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
local actors = {}
......@@ -127,7 +128,7 @@ newTalent{
return true
end,
info = function(self, t)
return ([[Open a dark portal to the target zone. All creatures caught inside will be teleported to your location, and you to theirs.
return ([[Open a dark portal (radius 3) to the target zone. All creatures caught inside will be teleported to your location, and you to theirs.
All creatures (except you) traversing the portal will catch a random disease, doing %0.2f blight damage per turn for 6 turns and reducing one of its physical stats (strength, constitution, dexterity) by %d.
The damage will increase with your Spellpower.]]):format(damDesc(self, DamageType.BLIGHT, self:combatTalentSpellDamage(t, 12, 80)), self:combatTalentSpellDamage(t, 5, 25))
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