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
00b85389
Commit
00b85389
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Clarification to Heightened Senses/Infravision tooltips
parent
b96c7e6c
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/class/interface/TooltipsData.lua
+2
-2
2 additions, 2 deletions
game/modules/tome/class/interface/TooltipsData.lua
game/modules/tome/dialogs/CharacterSheet.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/dialogs/CharacterSheet.lua
with
3 additions
and
3 deletions
game/modules/tome/class/interface/TooltipsData.lua
+
2
−
2
View file @
00b85389
...
...
@@ -381,8 +381,8 @@ The maximum distance your lite can light up. Anything further cannot be seen by
TOOLTIP_VISION_SIGHT
=
[[#GOLD#Sight range#LAST#
How far you can see. This only works within your lite radius, or in lit areas.
]]
TOOLTIP_VISION_INFRA
=
[[#GOLD#
Infravision
#LAST#
A secondary sight that allows you to see
even in the dark, but only creatures can be seen this way.
TOOLTIP_VISION_INFRA
=
[[#GOLD#
Heightened Senses
#LAST#
Special vision (including infravision) that works
even in the dark, but only creatures can be seen this way.
Only the best ability is used.
]]
TOOLTIP_VISION_STEALTH
=
[[#GOLD#Stealth#LAST#
To use stealth one must possess the 'Stealth' talent.
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/dialogs/CharacterSheet.lua
+
1
−
1
View file @
00b85389
...
...
@@ -419,7 +419,7 @@ function _M:drawDialog(kind, actor_to_compare)
end
text
=
compare_fields
(
player
,
actor_to_compare
,
function
(
actor
)
return
(
actor
:
attr
(
"infravision"
)
or
actor
:
attr
(
"heightened_senses"
))
and
math.max
((
actor
.
heightened_senses
or
0
),
(
actor
.
infravision
or
0
))
end
,
"%d"
,
"%+.0f"
)
if
text
then
self
:
mouseTooltip
(
self
.
TOOLTIP_VISION_INFRA
,
s
:
drawColorStringBlended
(
self
.
font
,
(
"
Infravision
: #00ff00#%s"
):
format
(
text
),
w
,
h
,
255
,
255
,
255
,
true
))
h
=
h
+
self
.
font_h
self
:
mouseTooltip
(
self
.
TOOLTIP_VISION_INFRA
,
s
:
drawColorStringBlended
(
self
.
font
,
(
"
Heighten Senses
: #00ff00#%s"
):
format
(
text
),
w
,
h
,
255
,
255
,
255
,
true
))
h
=
h
+
self
.
font_h
end
text
=
compare_fields
(
player
,
actor_to_compare
,
function
(
who
)
return
who
:
attr
(
"stealth"
)
and
who
.
stealth
+
(
who
:
attr
(
"inc_stealth"
)
or
0
)
end
,
"%.1f"
,
"%+.1f"
)
if
text
then
...
...
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