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
yutio888
Tales of MajEyal
Commits
e1aadcab
Commit
e1aadcab
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
e2dd81a8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
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/data/talents/cunning/dirty.lua
+2
-0
2 additions, 0 deletions
game/modules/tome/data/talents/cunning/dirty.lua
with
4 additions
and
2 deletions
game/modules/tome/class/interface/Combat.lua
+
2
−
2
View file @
e1aadcab
...
...
@@ -711,7 +711,7 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
weapon
.
special_on_kill
.
fct
(
weapon
,
self
,
target
)
end
if
hitted
and
crit
and
not
target
.
dead
and
self
:
knowTalent
(
self
.
T_BACKSTAB
)
and
not
target
:
attr
(
"stunned"
)
and
rng
.
percent
(
self
:
get
TalentLevel
(
self
.
T_BACKSTAB
)
*
3
)
then
if
hitted
and
crit
and
not
target
.
dead
and
self
:
knowTalent
(
self
.
T_BACKSTAB
)
and
not
target
:
attr
(
"stunned"
)
and
rng
.
percent
(
self
:
call
TalentLevel
(
self
.
T_BACKSTAB
,
"getStunChance"
)
)
then
if
target
:
canBe
(
"stun"
)
then
target
:
setEffect
(
target
.
EFF_STUNNED
,
3
,
{
apply_power
=
self
:
combatAttack
()})
end
...
...
@@ -1483,7 +1483,7 @@ function _M:physicalCrit(dam, weapon, target, atk, def, add_chance, crit_power_a
end
local
crit
=
false
if
self
:
knowTalent
(
self
.
T_BACKSTAB
)
and
target
:
attr
(
"stunned"
)
then
chance
=
chance
+
self
:
get
Talent
Level
(
self
.
T_BACKSTAB
)
*
10
end
if
self
:
knowTalent
(
self
.
T_BACKSTAB
)
and
target
:
attr
(
"stunned"
)
then
chance
=
chance
+
self
:
call
Talent
(
self
.
T_BACKSTAB
,
"getCriticalChance"
)
end
if
target
:
attr
(
"combat_crit_vulnerable"
)
then
chance
=
chance
+
target
:
attr
(
"combat_crit_vulnerable"
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/cunning/dirty.lua
+
2
−
0
View file @
e1aadcab
...
...
@@ -66,7 +66,9 @@ newTalent{
mode
=
"passive"
,
points
=
5
,
require
=
cuns_req2
,
-- called by _M:physicalCrit in mod.class.interface.Combat.la
getCriticalChance
=
function
(
self
,
t
)
return
self
:
combatTalentScale
(
t
,
15
,
50
,
0
.
75
)
end
,
-- called by _M:attackTargetWith in mod.class.interface.Combat.lua
getStunChance
=
function
(
self
,
t
)
return
self
:
combatTalentLimit
(
t
,
100
,
3
,
15
)
end
,
-- Limit < 100%
info
=
function
(
self
,
t
)
return
(
[[Your quick wit gives you a big advantage against stunned targets; all your hits will have a %d%% greater chance of being critical.
...
...
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