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
c9d23d67
Commit
c9d23d67
authored
13 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
fix
git-svn-id:
http://svn.net-core.org/repos/t-engine4@3164
51575b47-30f0-44d4-a5cc-537603b46e54
parent
87404790
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/talents/chronomancy/energy.lua
+10
-12
10 additions, 12 deletions
game/modules/tome/data/talents/chronomancy/energy.lua
with
10 additions
and
12 deletions
game/modules/tome/data/talents/chronomancy/energy.lua
+
10
−
12
View file @
c9d23d67
...
...
@@ -35,15 +35,14 @@ newTalent{
local
tx
,
ty
=
self
:
getTarget
(
tg
)
if
not
tx
or
not
ty
then
return
nil
end
tx
,
ty
=
checkBackfire
(
self
,
tx
,
ty
)
if
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
then
target
=
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
end
local
target
=
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
if
not
target
then
return
end
if
not
self
:
checkHit
(
self
:
combatSpellpower
(),
target
:
combatSpellResist
(),
0
,
95
,
15
)
then
game
.
logSeen
(
target
,
"%s resists!"
,
target
.
name
:
capitalize
())
return
true
end
local
tids
=
{}
for
tid
,
_
in
pairs
(
target
.
talents
)
do
local
tt
=
target
:
getTalentFromId
(
tid
)
...
...
@@ -51,14 +50,14 @@ newTalent{
tids
[
#
tids
+
1
]
=
tid
end
end
for
i
=
1
,
t
.
getTalentCount
(
self
,
t
)
do
if
#
tids
==
0
then
break
end
local
tid
=
rng
.
tableRemove
(
tids
)
target
.
talents_cd
[
tid
]
=
t
.
getCooldown
(
self
,
t
)
end
self
.
changed
=
true
game
.
logSeen
(
target
,
"%s feels the effects of entropy!"
,
target
.
name
:
capitalize
())
game
.
level
.
map
:
particleEmitter
(
tx
,
ty
,
1
,
"entropythrust"
)
game
:
playSoundNear
(
self
,
"talents/spell_generic"
)
...
...
@@ -120,10 +119,9 @@ newTalent{
local
tx
,
ty
=
self
:
getTarget
(
tg
)
if
not
tx
or
not
ty
then
return
nil
end
tx
,
ty
=
checkBackfire
(
self
,
tx
,
ty
)
if
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
then
target
=
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
end
local
target
=
game
.
level
.
map
(
tx
,
ty
,
Map
.
ACTOR
)
if
not
target
then
return
end
local
effs
=
{}
-- Go through all spell effects
...
...
@@ -145,7 +143,7 @@ newTalent{
for
i
=
1
,
t
.
getRemoveCount
(
self
,
t
)
do
if
#
effs
==
0
then
break
end
local
eff
=
rng
.
tableRemove
(
effs
)
if
eff
[
1
]
==
"effect"
then
target
:
removeEffect
(
eff
[
2
])
else
...
...
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