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
40feeebc
Commit
40feeebc
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
earth's eyes
git-svn-id:
http://svn.net-core.org/repos/t-engine4@503
51575b47-30f0-44d4-a5cc-537603b46e54
parent
8361b7c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/Actor.lua
+5
-3
5 additions, 3 deletions
game/modules/tome/class/Actor.lua
game/modules/tome/data/talents/gifts/call.lua
+10
-7
10 additions, 7 deletions
game/modules/tome/data/talents/gifts/call.lua
with
15 additions
and
10 deletions
game/modules/tome/class/Actor.lua
+
5
−
3
View file @
40feeebc
...
...
@@ -232,10 +232,12 @@ function _M:doQuake(tg, x, y)
end
--- Reveals location surrounding the actor
function
_M
:
magicMap
(
radius
)
function
_M
:
magicMap
(
radius
,
x
,
y
)
x
=
x
or
self
.
x
y
=
y
or
self
.
y
radius
=
math.floor
(
radius
)
for
i
=
self
.
x
-
radius
,
self
.
x
+
radius
do
for
j
=
self
.
y
-
radius
,
self
.
y
+
radius
do
if
game
.
level
.
map
:
isBound
(
i
,
j
)
and
core
.
fov
.
distance
(
self
.
x
,
self
.
y
,
i
,
j
)
<
radius
then
for
i
=
x
-
radius
,
x
+
radius
do
for
j
=
y
-
radius
,
y
+
radius
do
if
game
.
level
.
map
:
isBound
(
i
,
j
)
and
core
.
fov
.
distance
(
x
,
y
,
i
,
j
)
<
radius
then
game
.
level
.
map
.
remembers
(
i
,
j
,
true
)
end
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/gifts/call.lua
+
10
−
7
View file @
40feeebc
...
...
@@ -64,20 +64,23 @@ newTalent{
}
newTalent
{
name
=
"
???
"
,
name
=
"
Earth's Eyes
"
,
type
=
{
"wild-gift/call"
,
3
},
require
=
gifts_req3
,
points
=
5
,
equilibrium
=
0
,
cooldown
=
30
0
,
range
=
2
0
,
equilibrium
=
3
,
cooldown
=
1
0
,
range
=
10
0
,
action
=
function
(
self
,
t
)
local
x
,
y
=
self
:
getTarget
{
type
=
"ball"
,
nolock
=
true
,
no_restrict
=
true
,
range
=
100
,
radius
=
3
+
self
:
getTalentLevel
(
t
)}
if
not
x
then
return
nil
end
self
:
magicMap
(
3
+
self
:
getTalentLevel
(
t
),
x
,
y
)
return
true
end
,
info
=
function
(
self
,
t
)
return
(
[[Meditate on your link with Nature. You are considered stunned for %d turns and regenerate %d equilibrium.
The effect will incease with your Willpower stat.]]
):
format
(
17
-
self
:
getTalentLevel
(
t
),
10
+
self
:
getWil
(
50
)
*
self
:
getTalentLevel
(
t
))
return
(
[[Using your connection to Nature you can see remote areas in a radius of %d.]]
):
format
(
3
+
self
:
getTalentLevel
(
t
))
end
,
}
...
...
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