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
37ef20bf
Commit
37ef20bf
authored
12 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
fix
git-svn-id:
http://svn.net-core.org/repos/t-engine4@5380
51575b47-30f0-44d4-a5cc-537603b46e54
parent
965bc198
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/Game.lua
+2
-1
2 additions, 1 deletion
game/modules/tome/class/Game.lua
game/modules/tome/data/talents/misc/objects.lua
+5
-5
5 additions, 5 deletions
game/modules/tome/data/talents/misc/objects.lua
with
7 additions
and
6 deletions
game/modules/tome/class/Game.lua
+
2
−
1
View file @
37ef20bf
...
...
@@ -1213,7 +1213,8 @@ function _M:setupCommands()
end
end
end
end
,
[{
"_g"
,
"ctrl"
}]
=
function
()
if
config
.
settings
.
cheat
then
-- self:registerDialog(require("mod.dialogs.DownloadCharball").new())
self
:
registerDialog
(
require
(
"mod.dialogs.DownloadCharball"
).
new
())
do
return
end
local
f
,
err
=
loadfile
(
"/data/general/events/snowstorm.lua"
)
print
(
f
,
err
)
setfenv
(
f
,
setmetatable
({
level
=
self
.
level
,
zone
=
self
.
zone
},
{
__index
=
_G
}))
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/misc/objects.lua
+
5
−
5
View file @
37ef20bf
...
...
@@ -193,7 +193,7 @@ newTalent{
local
val
=
0
local
shield1
=
self
:
hasShield
()
if
shield1
then
val
=
val
+
(
shield1
.
special_combat
and
shield1
.
special_combat
.
block
or
0
)
end
if
not
self
:
getInven
(
"MAINHAND"
)
then
return
val
end
local
shield2
=
self
:
getInven
(
"MAINHAND"
)[
1
]
if
shield2
then
val
=
val
+
(
shield2
.
special_combat
and
shield2
.
special_combat
.
block
or
0
)
end
...
...
@@ -204,7 +204,7 @@ newTalent{
local
bt
=
{[
DamageType
.
PHYSICAL
]
=
true
}
if
not
shield
then
return
bt
,
"error!"
end
local
shield2
=
self
:
getInven
(
"MAINHAND"
)
and
self
:
getInven
(
"MAINHAND"
)[
1
]
shield2
=
shield2
.
special_combat
and
shield2
or
nil
shield2
=
shield2
and
shield2
.
special_combat
and
shield2
or
nil
if
shield
.
wielder
.
resists
then
for
res
,
v
in
pairs
(
shield
.
wielder
.
resists
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
if
shield
.
wielder
.
on_melee_hit
then
for
res
,
v
in
pairs
(
shield
.
wielder
.
on_melee_hit
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
...
...
@@ -291,9 +291,9 @@ newTalent{
self
:
project
(
tg
,
x
,
y
,
function
(
px
,
py
)
target
:
setEffect
(
target
.
EFF_SPELL_DISRUPTION
,
8
,
{
src
=
self
,
power
=
8
,
max
=
45
+
self
:
getTalentLevel
(
t
)
*
5
,
apply_power
=
self
:
combatMindpower
()})
if
rng
.
percent
(
30
)
and
self
:
getTalentLevel
(
t
)
>
2
then
local
effs
=
{}
-- Go through all spell effects
for
eff_id
,
p
in
pairs
(
target
.
tmp
)
do
local
e
=
target
.
tempeffect_def
[
eff_id
]
...
...
@@ -308,7 +308,7 @@ newTalent{
local
talent
=
target
:
getTalentFromId
(
tid
)
if
talent
.
is_spell
then
effs
[
#
effs
+
1
]
=
{
"talent"
,
tid
}
end
end
end
end
end
local
eff
=
rng
.
tableRemove
(
effs
)
if
eff
then
...
...
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