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
93b1b67b
Commit
93b1b67b
authored
12 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
change
git-svn-id:
http://svn.net-core.org/repos/t-engine4@5118
51575b47-30f0-44d4-a5cc-537603b46e54
parent
137bec7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/interface/Archery.lua
+1
-3
1 addition, 3 deletions
game/modules/tome/class/interface/Archery.lua
game/modules/tome/class/interface/Combat.lua
+7
-7
7 additions, 7 deletions
game/modules/tome/class/interface/Combat.lua
with
8 additions
and
10 deletions
game/modules/tome/class/interface/Archery.lua
+
1
−
3
View file @
93b1b67b
...
...
@@ -149,9 +149,7 @@ local function archery_projectile(tx, ty, tg, self, tmp)
print
(
"[ATTACK ARCHERY] after range"
,
dam
)
local
crit
if
tg
.
archery
.
crit_chance
then
self
.
combat_physcrit
=
self
.
combat_physcrit
+
tg
.
archery
.
crit_chance
end
dam
,
crit
=
self
:
physicalCrit
(
dam
,
ammo
,
target
,
atk
,
def
)
if
tg
.
archery
.
crit_chance
then
self
.
combat_physcrit
=
self
.
combat_physcrit
-
tg
.
archery
.
crit_chance
end
dam
,
crit
=
self
:
physicalCrit
(
dam
,
ammo
,
target
,
atk
,
def
,
tg
.
archery
.
crit_chance
or
0
,
tg
.
archery
.
crit_power
or
0
)
print
(
"[ATTACK ARCHERY] after crit"
,
dam
)
dam
=
dam
*
mult
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/interface/Combat.lua
+
7
−
7
View file @
93b1b67b
...
...
@@ -1131,11 +1131,11 @@ function _M:combatCritReduction()
end
--- Computes physical crit for a damage
function
_M
:
physicalCrit
(
dam
,
weapon
,
target
,
atk
,
def
)
function
_M
:
physicalCrit
(
dam
,
weapon
,
target
,
atk
,
def
,
add_chance
,
crit_power_add
)
local
tier_diff
=
self
:
getTierDiff
(
atk
,
def
)
local
chance
=
self
:
combatCrit
(
weapon
)
local
crit_power_add
=
0
local
chance
=
self
:
combatCrit
(
weapon
)
+
(
add_chance
or
0
)
crit_power_add
=
crit_power_add
or
0
local
crit
=
false
if
self
:
knowTalent
(
self
.
T_BACKSTAB
)
and
target
:
attr
(
"stunned"
)
then
chance
=
chance
+
self
:
getTalentLevel
(
self
.
T_BACKSTAB
)
*
10
end
...
...
@@ -1175,8 +1175,8 @@ function _M:physicalCrit(dam, weapon, target, atk, def)
end
--- Computes spell crit for a damage
function
_M
:
spellCrit
(
dam
,
add_chance
)
local
crit_power_add
=
0
function
_M
:
spellCrit
(
dam
,
add_chance
,
crit_power_add
)
crit_power_add
=
crit_power_add
or
0
local
chance
=
self
:
combatSpellCrit
()
+
(
add_chance
or
0
)
local
crit
=
false
...
...
@@ -1215,8 +1215,8 @@ function _M:spellCrit(dam, add_chance)
end
--- Computes mind crit for a damage
function
_M
:
mindCrit
(
dam
,
add_chance
)
local
crit_power_add
=
0
function
_M
:
mindCrit
(
dam
,
add_chance
,
crit_power_add
)
crit_power_add
=
crit_power_add
or
0
local
chance
=
self
:
combatMindCrit
()
+
(
add_chance
or
0
)
local
crit
=
false
...
...
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