Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Otowa Kotori
Tales of MajEyal
Commits
693af79a
Commit
693af79a
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
plop
git-svn-id:
http://svn.net-core.org/repos/t-engine4@1904
51575b47-30f0-44d4-a5cc-537603b46e54
parent
35b86560
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/general/objects/scrolls.lua
+0
-117
0 additions, 117 deletions
game/modules/tome/data/general/objects/scrolls.lua
with
0 additions
and
117 deletions
game/modules/tome/data/general/objects/scrolls.lua
+
0
−
117
View file @
693af79a
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment