Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
f85f439c
Commit
f85f439c
authored
9 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
stuff
parent
0673e711
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
game/engines/default/engine/Level.lua
+21
-0
21 additions, 0 deletions
game/engines/default/engine/Level.lua
game/modules/tome/data/talents/misc/npcs.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/data/talents/misc/npcs.lua
ideas/setting-eyal.ods
+0
-0
0 additions, 0 deletions
ideas/setting-eyal.ods
with
22 additions
and
1 deletion
game/engines/default/engine/Level.lua
+
21
−
0
View file @
f85f439c
...
...
@@ -267,3 +267,24 @@ function _M:pickSpotRemove(filter)
table.remove
(
self
.
spots
,
s
.
idx
)
return
s
.
spot
end
--- Pick a random spot matching the given filter
function
_M
:
pickSpotFrom
(
filter
,
spots
)
local
list
=
{}
for
i
,
spot
in
ipairs
(
spots
)
do
if
not
filter
or
game
.
zone
:
checkFilter
(
spot
,
filter
)
then
list
[
#
list
+
1
]
=
spot
end
end
return
rng
.
table
(
list
),
list
end
--- Pick a random spot matching the given filter and remove it
function
_M
:
pickSpotRemoveFrom
(
filter
,
spots
)
local
list
=
{}
for
i
,
spot
in
ipairs
(
spots
)
do
if
not
filter
or
game
.
zone
:
checkFilter
(
spot
,
filter
)
then
list
[
#
list
+
1
]
=
{
spot
=
spot
,
idx
=
i
}
end
end
local
s
=
rng
.
table
(
list
)
if
not
s
then
return
end
table.remove
(
spots
,
s
.
idx
)
return
s
.
spot
end
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/misc/npcs.lua
+
1
−
1
View file @
f85f439c
...
...
@@ -726,7 +726,7 @@ newTalent{
reflectable
=
true
,
requires_target
=
true
,
proj_speed
=
2
,
target
=
function
(
self
,
t
)
return
{
type
=
"b
olt
"
,
range
=
self
:
getTalentRange
(
t
),
talent
=
t
,
display
=
{
particle
=
"bolt_void"
,
trail
=
"voidtrail"
}}
end
,
target
=
function
(
self
,
t
)
return
{
type
=
"b
eam
"
,
range
=
self
:
getTalentRange
(
t
),
talent
=
t
,
selffire
=
false
,
display
=
{
particle
=
"bolt_void"
,
trail
=
"voidtrail"
}}
end
,
action
=
function
(
self
,
t
)
local
tg
=
self
:
getTalentTarget
(
t
)
local
x
,
y
=
self
:
getTarget
(
tg
)
...
...
This diff is collapsed.
Click to expand it.
ideas/setting-eyal.ods
+
0
−
0
View file @
f85f439c
No preview for this file type
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