Skip to content
Snippets Groups Projects
Commit 693af79a authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1904 51575b47-30f0-44d4-a5cc-537603b46e54
parent 35b86560
No related branches found
No related tags found
No related merge requests found
......@@ -73,123 +73,6 @@ newEntity{
desc = [[This parchement contains some lore.]],
}
--[[
newEntity{ base = "BASE_SCROLL",
name = "scroll of light",
level_range = {1, 40},
rarity = 3,
cost = 1,
material_level = 1,
use_simple = { name="light up the surrounding area", use = function(self, who)
who:project({type="ball", range=0, friendlyfire=true, radius=15}, who.x, who.y, engine.DamageType.LITE, 1)
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of phase door",
level_range = {1, 30},
rarity = 4,
cost = 3,
material_level = 2,
use_simple = { name="teleport you randomly over a short distance", use = function(self, who)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
who:teleportRandom(who.x, who.y, 15)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of controlled phase door",
level_range = {30, 50},
rarity = 7,
cost = 3,
material_level = 4,
use_simple = { name="teleport you randomly over a short distance into a targeted area", use = function(self, who)
local tg = {type="ball", nolock=true, no_restrict=true, nowarning=true, range=10 + who:getMag(10), radius=3}
x, y = who:getTarget(tg)
if not x then return nil end
-- Target code doesnot restrict the target coordinates to the range, it lets the poject function do it
-- but we cant ...
local _ _, x, y = who:canProject(tg, x, y)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
who:teleportRandom(x, y, 3)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of teleportation",
level_range = {10, 50},
rarity = 8,
cost = 4,
material_level = 3,
use_simple = { name="teleport you anywhere on the level, randomly", use = function(self, who)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
who:teleportRandom(who.x, who.y, 200, 15)
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of magic mapping",
level_range = {1, 50},
rarity = 5,
cost = 3,
material_level = 2,
use_simple = { name="map the area directly around you", use = function(self, who)
who:magicMap(20)
 game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of enemies detection",
level_range = {15, 35},
rarity = 4,
cost = 5,
material_level = 1,
use_simple = { name="detect enemies within a certain range", use = function(self, who)
local rad = 15 + who:getMag(20)
who:setEffect(who.EFF_SENSE, 2, {
range = rad,
actor = 1,
})
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of shielding",
level_range = {10, 50},
rarity = 9,
cost = 7,
material_level = 3,
use_simple = { name="create a temporary shield that absorbs damage", use = function(self, who)
local power = 60 + who:getMag(100)
who:setEffect(who.EFF_DAMAGE_SHIELD, 10, {power=power})
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName{no_count=true})
return "destroy", true
end}
}
]]
newEntity{ base = "BASE_INFUSION",
name = "healing infusion",
level_range = {1, 50},
......
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