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
215d2e5e
Commit
215d2e5e
authored
8 years ago
by
Chris Davidson
Browse files
Options
Downloads
Patches
Plain Diff
Update Heavy Armor Training to use a standard scaling formula
parent
26c0468c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!389
Armor defense
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/talents/techniques/combat-training.lua
+3
-4
3 additions, 4 deletions
.../modules/tome/data/talents/techniques/combat-training.lua
with
3 additions
and
4 deletions
game/modules/tome/data/talents/techniques/combat-training.lua
+
3
−
4
View file @
215d2e5e
...
...
@@ -56,13 +56,13 @@ newTalent{
return
0
end
,
-- Called by _M:combatArmor in mod.class.interface.Combat.lua
getArmor
=
function
(
self
,
t
)
return
self
:
ge
tTalent
Level
(
t
)
*
t
.
ArmorEffect
(
self
,
t
)
*
1
.
4
end
,
getArmor
=
function
(
self
,
t
)
return
self
:
comba
tTalent
Scale
(
t
,
1
,
7
)
*
t
.
ArmorEffect
(
self
,
t
)
end
,
-- Called by _M:combatArmorHardiness in mod.class.interface.Combat.lua
getArmorHardiness
=
function
(
self
,
t
)
-- Matches previous progression for "heavy" armor
return
math.max
(
0
,
self
:
combatLimit
(
self
:
getTalentLevel
(
t
)
*
5
*
t
.
ArmorEffect
(
self
,
t
),
100
,
5
,
3
.
75
,
50
,
37
.
5
))
end
,
getCriticalChanceReduction
=
function
(
self
,
t
)
-- Matches previous progression for "heavy" armor
return
math.max
(
0
,
self
:
combat
Sc
ale
(
self
:
getTalentLevel
(
t
)
*
3
.
8
*
(
t
.
ArmorEffect
(
self
,
t
)
/
2
)
^
0
.
5
,
3
.
8
,
3
.
3
,
19
,
16
.
45
,
0
.
75
))
getCriticalChanceReduction
=
function
(
self
,
t
)
return
self
:
combat
T
ale
ntScale
(
t
,
1
,
9
)
*
t
.
ArmorEffect
(
self
,
t
)
end
,
on_unlearn
=
function
(
self
,
t
)
for
inven_id
,
inven
in
pairs
(
self
.
inven
)
do
if
inven
.
worn
then
...
...
@@ -155,7 +155,6 @@ newTalent{
points
=
5
,
require
=
{
level
=
function
(
level
)
return
(
level
-
1
)
*
4
end
},
mode
=
"passive"
,
--getAttack = function(self, t) return self:getTalentLevel(t) * 10 end,
getAttack
=
function
(
self
,
t
)
return
self
:
combatTalentScale
(
t
,
10
,
50
)
end
,
-- match values at 1 and 5 for old formula
info
=
function
(
self
,
t
)
local
attack
=
t
.
getAttack
(
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