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
40492ca8
Commit
40492ca8
authored
8 years ago
by
Hachem_Muche
Browse files
Options
Downloads
Patches
Plain Diff
Talent descriptions automatically note talents that won't break stealth.
parent
dfa77176
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/class/Actor.lua
+13
-0
13 additions, 0 deletions
game/modules/tome/class/Actor.lua
with
13 additions
and
0 deletions
game/modules/tome/class/Actor.lua
+
13
−
0
View file @
40492ca8
...
...
@@ -5667,6 +5667,19 @@ function _M:getTalentFullDescription(t, addlevel, config, fake_mastery)
uspeed
=
(
"%s (#LIGHT_GREEN#%d%%#LAST# of a turn)"
):
format
(
speed_type
,
speed
*
100
)
end
d
:
add
({
"color"
,
0x6f
,
0xff
,
0x83
},
"Usage Speed: "
,
{
"color"
,
0xFF
,
0xFF
,
0xFF
},
uspeed
,
true
)
if
t
.
no_break_stealth
~=
nil
and
no_energy
~=
true
and
self
:
knowTalent
(
self
.
T_STEALTH
)
then
local
nbs
,
chance
=
t
.
no_break_stealth
if
type
(
t
.
no_break_stealth
)
==
"function"
then
nbs
,
chance
=
t
.
no_break_stealth
(
self
,
t
)
if
type
(
chance
)
~=
"number"
then
chance
=
nbs
and
100
or
0
end
else
chance
=
nbs
and
100
or
0
end
if
chance
>
0
then
d
:
add
({
"color"
,
0x6f
,
0xff
,
0x83
},
"Won't Break Stealth: "
,
{
"color"
,
0xFF
,
0xFF
,
0xFF
},
(
"%d%%"
):
format
(
chance
),
true
)
end
end
end
local
is_a
=
{}
for
is
,
desc
in
pairs
(
engine
.
interface
.
ActorTalents
.
is_a_type
)
do
...
...
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