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
250a394e
There was a problem fetching the pipeline summary.
Commit
250a394e
authored
4 years ago
by
DarkGod
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.net-core.org:tome/t-engine4
parents
fb252e18
50974198
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/GameState.lua
+2
-2
2 additions, 2 deletions
game/modules/tome/class/GameState.lua
with
2 additions
and
2 deletions
game/modules/tome/class/GameState.lua
+
2
−
2
View file @
250a394e
...
...
@@ -2159,7 +2159,7 @@ function _M:applyRandomClass(b, data, instant)
if
not
tres
then
tres
=
resolvers
.
talents
{}
b
[
#
b
+
1
]
=
tres
end
for
tid
,
v
in
pairs
(
class
.
talents
or
{})
do
local
t
=
b
:
getTalentFromId
(
tid
)
if
not
t
.
no_npc_use
and
not
t
.
no_npc_autolevel
and
(
not
t
.
random_boss_rarity
or
rng
.
chance
(
t
.
random_boss_rarity
))
and
not
(
t
.
rnd_boss_restrict
and
t
.
rnd_boss_restrict
(
b
,
t
,
data
)
)
then
if
not
t
.
no_npc_use
and
not
t
.
no_npc_autolevel
and
(
not
t
.
random_boss_rarity
or
rng
.
chance
(
t
.
random_boss_rarity
))
and
not
(
t
.
rnd_boss_restrict
and
util
.
getval
(
t
.
rnd_boss_restrict
,
b
,
t
,
data
)
)
then
local
max
=
(
t
.
points
==
1
)
and
1
or
math.ceil
(
t
.
points
*
1
.
2
)
local
step
=
max
/
70
tres
[
1
][
tid
]
=
v
+
math.ceil
(
step
*
data
.
level
)
...
...
@@ -2215,7 +2215,7 @@ function _M:applyRandomClass(b, data, instant)
print
(
" * Random boss forbade talent because talent not allowed on random bosses"
,
t
.
name
,
t
.
id
,
data
.
level
)
ok
=
false
end
if
t
.
rnd_boss_restrict
and
t
.
rnd_boss_restrict
(
b
,
t
,
data
)
and
ok
then
if
t
.
rnd_boss_restrict
and
util
.
getval
(
t
.
rnd_boss_restrict
,
b
,
t
,
data
)
and
ok
then
print
(
" * Random boss forbade talent because of special talent restriction"
,
t
.
name
,
t
.
id
,
data
.
level
)
nb_known
=
nb_known
+
1
-- treat as known to allow later talents to be learned
ok
=
false
...
...
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