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
Lisa Greene
Tales of MajEyal
Commits
224b74a2
Commit
224b74a2
authored
12 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
moar
git-svn-id:
http://svn.net-core.org/repos/t-engine4@5542
51575b47-30f0-44d4-a5cc-537603b46e54
parent
7d913176
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/data/talents/misc/objects.lua
+18
-4
18 additions, 4 deletions
game/modules/tome/data/talents/misc/objects.lua
game/modules/tome/data/talents/uber/mag.lua
+21
-0
21 additions, 0 deletions
game/modules/tome/data/talents/uber/mag.lua
with
39 additions
and
4 deletions
game/modules/tome/data/talents/misc/objects.lua
+
18
−
4
View file @
224b74a2
...
...
@@ -206,10 +206,24 @@ newTalent{
local
shield2
=
self
:
getInven
(
"MAINHAND"
)
and
self
:
getInven
(
"MAINHAND"
)[
1
]
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
if
shield2
and
shield2
.
wielder
.
resists
then
for
res
,
v
in
pairs
(
shield2
.
wielder
.
resists
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
if
shield2
and
shield2
.
wielder
.
on_melee_hit
then
for
res
,
v
in
pairs
(
shield2
.
wielder
.
on_melee_hit
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
if
not
self
:
attr
(
"spectral_shield"
)
then
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
if
shield2
and
shield2
.
wielder
.
resists
then
for
res
,
v
in
pairs
(
shield2
.
wielder
.
resists
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
if
shield2
and
shield2
.
wielder
.
on_melee_hit
then
for
res
,
v
in
pairs
(
shield2
.
wielder
.
on_melee_hit
)
do
if
v
>
0
then
bt
[
res
]
=
true
end
end
end
else
bt
[
DamageType
.
FIRE
]
=
true
bt
[
DamageType
.
LIGHTNING
]
=
true
bt
[
DamageType
.
COLD
]
=
true
bt
[
DamageType
.
ACID
]
=
true
bt
[
DamageType
.
NATURE
]
=
true
bt
[
DamageType
.
BLIGHT
]
=
true
bt
[
DamageType
.
LIGHT
]
=
true
bt
[
DamageType
.
DARKNESS
]
=
true
bt
[
DamageType
.
ARCANE
]
=
true
bt
[
DamageType
.
MIND
]
=
true
bt
[
DamageType
.
TEMPORAL
]
=
true
end
local
n
=
0
for
t
,
_
in
pairs
(
bt
)
do
n
=
n
+
1
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/uber/mag.lua
+
21
−
0
View file @
224b74a2
...
...
@@ -16,3 +16,24 @@
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
uberTalent
{
name
=
"Spectral Shield"
,
mode
=
"passive"
,
require
=
{
special
=
{
desc
=
"Block talent, have mana and a block value over 200."
,
fct
=
function
(
self
)
return
self
:
knowTalent
(
self
.
T_BLOCK
)
and
self
:
getTalentFromId
(
self
.
T_BLOCK
).
getBlockValue
(
self
)
>=
200
and
self
:
getMaxMana
()
>=
70
end
}
},
on_learn
=
function
(
self
,
t
)
self
:
attr
(
"spectral_shield"
,
1
)
self
:
attr
(
"max_mana"
,
-
70
)
end
,
on_unlearn
=
function
(
self
,
t
)
self
:
attr
(
"spectral_shield"
,
-
1
)
self
:
attr
(
"max_mana"
,
70
)
end
,
info
=
function
(
self
,
t
)
return
(
[[Infusing your shield with raw magic your Block can now block any damage type
Your maximum mana will be premanently reduced by 70 to create the effect.]]
)
:
format
()
end
,
}
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