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
09ea439d
There was a problem fetching the pipeline summary.
Commit
09ea439d
authored
4 years ago
by
DarkGod
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.net-core.org:tome/t-engine4
parents
90241101
dc5d26d3
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/engines/default/engine/interface/GameTargeting.lua
+1
-0
1 addition, 0 deletions
game/engines/default/engine/interface/GameTargeting.lua
game/modules/tome/data/talents/spells/master-necromancer.lua
+4
-1
4 additions, 1 deletion
game/modules/tome/data/talents/spells/master-necromancer.lua
with
5 additions
and
1 deletion
game/engines/default/engine/interface/GameTargeting.lua
+
1
−
0
View file @
09ea439d
...
...
@@ -310,6 +310,7 @@ function _M:targetGetForPlayer(typ)
msg
=
typ
.
msg
end
self
:
targetMode
(
"exclusive"
,
msg
,
coroutine.running
(),
typ
)
if
typ
.
nowarning
then
self
.
target_warning
=
false
end
if
self
.
target
.
target
.
x
and
config
.
settings
.
auto_accept_target
and
not
typ
.
immediate_keys
and
(
not
typ
.
nolock
or
typ
.
can_autoaccept
)
and
(
not
typ
.
nowarning
or
typ
.
can_autoaccept
)
and
(
not
typ
.
no_restrict
or
typ
.
can_autoaccept
)
then
self
.
target_co
=
nil
self
:
targetMode
(
false
,
false
)
self
.
tooltip_x
,
self
.
tooltip_y
=
nil
,
nil
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/spells/master-necromancer.lua
+
4
−
1
View file @
09ea439d
...
...
@@ -126,10 +126,12 @@ newTalent{
local
stats
=
necroArmyStats
(
self
)
if
stats
.
nb
==
0
then
return
end
local
spots
,
spots_hostile
=
{},
{}
local
spots
,
spots_hostile
,
spots_wall
=
{},
{},
{}
self
:
projectApply
({
type
=
"ball"
,
radius
=
1
},
self
.
x
,
self
.
y
,
Map
.
TERRAIN
,
function
(
_
,
x
,
y
)
local
target
=
game
.
level
.
map
(
x
,
y
,
Map
.
ACTOR
)
local
terrain
=
game
.
level
.
map
(
x
,
y
,
Map
.
TERRAIN
)
if
target
and
self
:
reactionToward
(
target
)
<
0
then
spots_hostile
[
#
spots_hostile
+
1
]
=
{
x
=
x
,
y
=
y
,
foe
=
target
}
elseif
not
target
and
terrain
and
terrain
.
does_block_move
then
spots_wall
[
#
spots_wall
+
1
]
=
{
x
=
x
,
y
=
y
}
elseif
not
target
then
spots
[
#
spots
+
1
]
=
{
x
=
x
,
y
=
y
}
end
end
)
...
...
@@ -138,6 +140,7 @@ newTalent{
local
m
=
rng
.
tableRemove
(
stats
.
list
)
if
not
m
then
break
end
local
spot
=
rng
.
tableRemove
(
spots_hostile
)
if
not
spot
and
m
.
can_pass
and
m
.
can_pass
.
pass_wall
then
spot
=
rng
.
tableRemove
(
spots_wall
)
end
if
not
spot
then
spot
=
rng
.
tableRemove
(
spots
)
end
if
not
spot
then
break
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