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
Otowa Kotori
Tales of MajEyal
Commits
93118520
Commit
93118520
authored
5 years ago
by
Lisa Greene
Committed by
Lisa Greene
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Revert "Check for conflicts between power source and categories for mastery boosting""
This reverts commit
a8b298b0
parent
7a6648ea
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/general/objects/egos/amulets.lua
+14
-6
14 additions, 6 deletions
game/modules/tome/data/general/objects/egos/amulets.lua
with
14 additions
and
6 deletions
game/modules/tome/data/general/objects/egos/amulets.lua
+
14
−
6
View file @
93118520
...
...
@@ -100,12 +100,16 @@ newEntity{
rarity
=
6
,
cost
=
2
,
wielder
=
{},
resolvers
.
generic
(
function
(
e
)
resolvers
.
generic
last
(
function
(
e
)
local
tts
=
{}
local
p
=
game
:
getPlayer
(
true
)
for
i
,
def
in
ipairs
(
engine
.
interface
.
ActorTalents
.
talents_types_def
)
do
if
p
and
def
.
allow_random
and
p
:
knowTalentType
(
def
.
type
)
or
p
:
knowTalentType
(
def
.
type
)
==
false
then
tts
[
#
tts
+
1
]
=
def
.
type
end
end
if
p
and
def
.
allow_random
and
p
:
knowTalentType
(
def
.
type
)
or
p
:
knowTalentType
(
def
.
type
)
==
false
then
if
not
(
e
.
power_source
.
antimagic
and
def
.
is_spell
)
or
(
e
.
power_source
.
arcane
and
def
.
is_antimagic
)
then
tts
[
#
tts
+
1
]
=
def
.
type
end
end
end
local
tt
=
tts
[
rng
.
range
(
1
,
#
tts
)]
e
.
wielder
.
talents_types_mastery
=
{}
...
...
@@ -533,12 +537,16 @@ newEntity{
greater_ego
=
1
,
cost
=
2
,
wielder
=
{},
resolvers
.
generic
(
function
(
e
)
resolvers
.
generic
last
(
function
(
e
)
local
tts
=
{}
local
p
=
game
:
getPlayer
(
true
)
for
i
,
def
in
ipairs
(
engine
.
interface
.
ActorTalents
.
talents_types_def
)
do
if
p
and
def
.
allow_random
and
p
:
knowTalentType
(
def
.
type
)
or
p
:
knowTalentType
(
def
.
type
)
==
false
then
tts
[
#
tts
+
1
]
=
def
.
type
end
end
if
p
and
def
.
allow_random
and
p
:
knowTalentType
(
def
.
type
)
or
p
:
knowTalentType
(
def
.
type
)
==
false
then
if
not
(
e
.
power_source
.
antimagic
and
def
.
is_spell
)
or
(
e
.
power_source
.
arcane
and
def
.
is_antimagic
)
then
tts
[
#
tts
+
1
]
=
def
.
type
end
end
end
--local tt = tts[rng.range(1, #tts)]
local
tt
=
rng
.
tableRemove
(
tts
)
local
tt2
=
rng
.
tableRemove
(
tts
)
...
...
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