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
K'van
Tales of MajEyal
Commits
6449eb28
Commit
6449eb28
authored
10 years ago
by
Alex Ksandra
Browse files
Options
Downloads
Patches
Plain Diff
Wild and Primal infusions now use removeEffectsFilter.
parent
26a85c19
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/misc/inscriptions.lua
+8
-59
8 additions, 59 deletions
game/modules/tome/data/talents/misc/inscriptions.lua
with
8 additions
and
59 deletions
game/modules/tome/data/talents/misc/inscriptions.lua
+
8
−
59
View file @
6449eb28
...
...
@@ -143,37 +143,12 @@ newInscription{
local
target
=
self
local
effs
=
{}
local
force
=
{}
local
known
=
false
local
removed
=
0
-- Go through all temporary effects
for
eff_id
,
p
in
pairs
(
target
.
tmp
)
do
local
e
=
target
.
tempeffect_def
[
eff_id
]
if
data
.
what
[
e
.
type
]
and
e
.
status
==
"detrimental"
and
e
.
subtype
[
"cross tier"
]
then
force
[
#
force
+
1
]
=
{
"effect"
,
eff_id
}
elseif
data
.
what
[
e
.
type
]
and
e
.
status
==
"detrimental"
then
effs
[
#
effs
+
1
]
=
{
"effect"
,
eff_id
}
end
end
-- Cross tier effects are always removed and not part of the random game, otherwise it is a huge nerf to wild infusion
for
i
=
1
,
#
force
do
local
eff
=
force
[
i
]
if
eff
[
1
]
==
"effect"
then
target
:
removeEffect
(
eff
[
2
])
known
=
true
end
end
removed
=
target
:
removeEffectsFilter
({
types
=
data
.
what
,
subtype
=
{[
"cross tier"
]
=
true
},
status
=
"detrimental"
})
removed
=
removed
+
target
:
removeEffectsFilter
({
types
=
data
.
what
,
status
=
"detrimental"
},
1
)
for
i
=
1
,
1
do
if
#
effs
==
0
then
break
end
local
eff
=
rng
.
tableRemove
(
effs
)
if
eff
[
1
]
==
"effect"
then
target
:
removeEffect
(
eff
[
2
])
known
=
true
end
end
if
known
then
if
removed
>
0
then
game
.
logSeen
(
self
,
"%s is cured!"
,
self
.
name
:
capitalize
())
end
self
:
setEffect
(
self
.
EFF_PAIN_SUPPRESSION
,
data
.
dur
,
{
power
=
data
.
power
+
data
.
inc_stat
})
...
...
@@ -220,37 +195,11 @@ newInscription{
local
target
=
self
local
effs
=
{}
local
force
=
{}
local
known
=
false
local
removed
=
0
-- Go through all temporary effects
for
eff_id
,
p
in
pairs
(
target
.
tmp
)
do
local
e
=
target
.
tempeffect_def
[
eff_id
]
if
data
.
what
[
e
.
type
]
and
e
.
status
==
"detrimental"
and
e
.
subtype
[
"cross tier"
]
then
force
[
#
force
+
1
]
=
{
"effect"
,
eff_id
}
elseif
data
.
what
[
e
.
type
]
and
e
.
status
==
"detrimental"
then
effs
[
#
effs
+
1
]
=
{
"effect"
,
eff_id
}
end
end
-- Cross tier effects are always removed and not part of the random game, otherwise it is a huge nerf to wild infusion
for
i
=
1
,
#
force
do
local
eff
=
force
[
i
]
if
eff
[
1
]
==
"effect"
then
target
:
removeEffect
(
eff
[
2
])
known
=
true
end
end
for
i
=
1
,
1
do
if
#
effs
==
0
then
break
end
local
eff
=
rng
.
tableRemove
(
effs
)
if
eff
[
1
]
==
"effect"
then
target
:
removeEffect
(
eff
[
2
])
known
=
true
end
end
if
known
then
removed
=
target
:
removeEffectsFilter
({
types
=
data
.
what
,
subtype
=
{[
"cross tier"
]
=
true
},
status
=
"detrimental"
})
removed
=
removed
+
target
:
removeEffectsFilter
({
types
=
data
.
what
,
status
=
"detrimental"
},
1
)
if
removed
>
0
then
game
.
logSeen
(
self
,
"%s is cured!"
,
self
.
name
:
capitalize
())
end
self
:
setEffect
(
self
.
EFF_PRIMAL_ATTUNEMENT
,
data
.
dur
,
{
power
=
data
.
power
+
data
.
inc_stat
})
...
...
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