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
8d9365df
Commit
8d9365df
authored
7 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Infestation's carrion worms poping over npcs/you sometimes
parent
e2dc419d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/talents/corruptions/rot.lua
+3
-10
3 additions, 10 deletions
game/modules/tome/data/talents/corruptions/rot.lua
with
3 additions
and
10 deletions
game/modules/tome/data/talents/corruptions/rot.lua
+
3
−
10
View file @
8d9365df
...
...
@@ -197,16 +197,9 @@ newTalent{
if
not
self
.
turn_procs
.
infestation
then
self
.
turn_procs
.
infestation
=
true
local
nb
=
0
local
grids
=
{}
self
:
project
({
type
=
"ball"
,
range
=
0
,
radius
=
2
,
talent
=
t
},
self
.
x
,
self
.
y
,
function
(
px
,
py
)
if
not
((
px
==
x
and
py
==
y
)
or
game
.
level
.
map
:
checkEntity
(
px
,
py
,
Map
.
TERRAIN
,
"block_move"
)
or
game
.
level
.
map
(
px
,
py
,
Map
.
TRAP
))
then
grids
[
#
grids
+
1
]
=
{
x
=
px
,
y
=
py
}
end
end
)
local
g
=
rng
.
tableRemove
(
grids
)
if
g
then
carrionworm
(
self
,
self
,
5
,
g
.
x
,
g
.
y
)
local
gx
,
gy
=
util
.
findFreeGrid
(
self
.
x
,
self
.
y
,
2
,
true
,
{[
Map
.
ACTOR
]
=
true
})
if
gx
and
gy
then
carrionworm
(
self
,
self
,
5
,
gx
,
gy
)
end
end
return
cb
.
value
...
...
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