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
0a13a1d7
There was a problem fetching the pipeline summary.
Commit
0a13a1d7
authored
5 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Resistance penetration is capped at 70%
parent
3a64c44a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/interface/Combat.lua
+2
-2
2 additions, 2 deletions
game/modules/tome/class/interface/Combat.lua
game/modules/tome/class/interface/TooltipsData.lua
+2
-0
2 additions, 0 deletions
game/modules/tome/class/interface/TooltipsData.lua
with
4 additions
and
2 deletions
game/modules/tome/class/interface/Combat.lua
+
2
−
2
View file @
0a13a1d7
...
...
@@ -2248,7 +2248,7 @@ end
function
_M
:
combatGetResistPen
(
type
,
straight
)
if
not
self
.
resists_pen
then
return
0
end
local
pen
=
(
self
.
resists_pen
.
all
or
0
)
+
(
self
.
resists_pen
[
type
]
or
0
)
if
straight
then
return
pen
end
if
straight
then
return
math.min
(
pen
,
70
)
end
local
add
=
0
if
self
.
auto_highest_resists_pen
and
self
.
auto_highest_resists_pen
[
type
]
then
...
...
@@ -2267,7 +2267,7 @@ function _M:combatGetResistPen(type, straight)
add
=
add
+
t
.
getPenetration
(
self
,
t
)
end
return
pen
+
add
return
math.min
(
pen
+
add
,
70
)
end
--- Returns the damage affinity
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/interface/TooltipsData.lua
+
2
−
0
View file @
0a13a1d7
...
...
@@ -478,10 +478,12 @@ TOOLTIP_RESISTS_PEN_ALL = [[#GOLD#Damage penetration: all#LAST#
Reduces the amount of effective resistance of your foes to any damage you deal by this percent.
If you have 50% penetration against a creature with 50% resistance it will have an effective resistance of 25%.
This stacks with individual damage type penetrations.
You can never have more than 70% penetration.
]]
TOOLTIP_RESISTS_PEN
=
[[#GOLD#Damage penetration: specific#LAST#
Reduces the effective resistance of your foes to all damage of this type you deal by this percent.
If you have 50% penetration against a creature with 50% resistance it will have an effective resistance of 25%.
You can never have more than 70% penetration.
]]
TOOLTIP_FLAT_RESIST
=
[[#GOLD#Flat resistances#LAST#
Reduces each hit of a certain damage type (or all) by this amount.
...
...
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