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
f29255d0
Commit
f29255d0
authored
6 years ago
by
Chris Davidson
Browse files
Options
Downloads
Patches
Plain Diff
Change Infestation callback
This way it works before Bone Shield.
parent
29f2f23c
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/talents/corruptions/rot.lua
+6
-7
6 additions, 7 deletions
game/modules/tome/data/talents/corruptions/rot.lua
with
6 additions
and
7 deletions
game/modules/tome/data/talents/corruptions/rot.lua
+
6
−
7
View file @
f29255d0
...
...
@@ -155,7 +155,7 @@ newTalent{
getDamageReduction
=
function
(
self
,
t
)
return
self
:
combatTalentLimit
(
t
,
0
.
5
,
0
.
1
,
0
.
22
)
end
,
tactical
=
{
BUFF
=
2
},
tactical
=
{
BUFF
=
3
},
activate
=
function
(
self
,
t
)
local
resist
=
t
.
getResist
(
self
,
t
)
local
affinity
=
t
.
getAffinity
(
self
,
t
)
...
...
@@ -175,11 +175,10 @@ newTalent{
self
:
removeTemporaryValue
(
"worm"
,
p
.
worm
)
return
true
end
,
callbackPriorities
=
{
callbackOnHit
=
-
5
},
-- High priority since we do more than just reduce damage and want to make sure the worm spawn happens often
callbackOnHit
=
function
(
self
,
t
,
cb
)
if
(
cb
.
value
>
(
0
.
15
*
self
.
max_life
)
)
then
local
damageReduction
=
cb
.
value
*
t
.
getDamageReduction
(
self
,
t
)
cb
.
value
=
cb
.
value
-
damageReduction
callbackOnTakeDamage
=
function
(
self
,
t
,
src
,
x
,
y
,
type
,
dam
,
state
)
if
(
dam
>
(
0
.
15
*
self
.
max_life
)
)
then
local
damageReduction
=
dam
*
t
.
getDamageReduction
(
self
,
t
)
dam
=
dam
-
damageReduction
local
nb
=
0
if
game
.
level
then
...
...
@@ -206,7 +205,7 @@ newTalent{
carrionworm
(
self
,
self
,
5
,
gx
,
gy
)
end
end
return
cb
.
value
return
{
dam
=
dam
}
end
end
,
info
=
function
(
self
,
t
)
...
...
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