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
9499fd3f
Commit
9499fd3f
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
plop
git-svn-id:
http://svn.net-core.org/repos/t-engine4@2268
51575b47-30f0-44d4-a5cc-537603b46e54
parent
846841d2
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/Actor.lua
+1
-0
1 addition, 0 deletions
game/modules/tome/class/Actor.lua
game/modules/tome/class/WorldNPC.lua
+13
-16
13 additions, 16 deletions
game/modules/tome/class/WorldNPC.lua
with
14 additions
and
16 deletions
game/modules/tome/class/Actor.lua
+
1
−
0
View file @
9499fd3f
...
...
@@ -642,6 +642,7 @@ function _M:tooltip(x, y, seen_by)
local
ts
=
tstring
{}
ts
:
add
({
"uid"
,
self
.
uid
})
ts
:
merge
(
rank_color
:
toTString
())
ts
:
add
(
self
.
name
,
{
"color"
,
"WHITE"
},
true
)
ts
:
add
(
self
.
type
:
capitalize
(),
" / "
,
self
.
subtype
:
capitalize
(),
true
)
ts
:
add
(
"Rank: "
)
ts
:
merge
(
rank_color
:
toTString
())
ts
:
add
(
rank
,
{
"color"
,
"WHITE"
},
true
)
ts
:
add
({
"color"
,
0
,
255
,
255
},
(
"Level: %d"
):
format
(
self
.
level
),
{
"color"
,
"WHITE"
},
true
)
ts
:
add
((
"Exp: %d/%d"
):
format
(
self
.
exp
,
self
:
getExpChart
(
self
.
level
+
1
)
or
"---"
),
true
)
ts
:
add
({
"color"
,
255
,
0
,
0
},
(
"HP: %d (%d%%)"
):
format
(
self
.
life
,
self
.
life
*
100
/
self
.
max_life
),
{
"color"
,
"WHITE"
},
true
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/WorldNPC.lua
+
13
−
16
View file @
9499fd3f
...
...
@@ -113,23 +113,20 @@ function _M:tooltip(x, y, seen_by)
local
rank
,
rank_color
=
self
:
TextRank
()
return
(
[[%s%s%s
%s / %s
Rank: %s%s
#00ffff#Level: %d
%s
Faction: %s%s (%s, %d)
Target: %s
UID: %d]]
):
format
(
self
:
getDisplayString
(),
rank_color
,
self
.
name
,
self
.
type
:
capitalize
(),
self
.
subtype
:
capitalize
(),
rank_color
,
rank
,
self
.
level
,
self
.
desc
or
""
,
factcolor
,
Faction
.
factions
[
self
.
faction
].
name
,
factstate
,
factlevel
,
self
.
ai_target
.
actor
and
self
.
ai_target
.
actor
.
name
or
"none"
,
self
.
uid
local
ts
=
tstring
{}
ts
:
add
({
"uid"
,
self
.
uid
})
ts
:
merge
(
rank_color
:
toTString
())
ts
:
add
(
self
.
name
,
{
"color"
,
"WHITE"
},
true
)
ts
:
add
(
self
.
type
:
capitalize
(),
" / "
,
self
.
subtype
:
capitalize
(),
true
)
ts
:
add
(
"Rank: "
)
ts
:
merge
(
rank_color
:
toTString
())
ts
:
add
(
rank
,
{
"color"
,
"WHITE"
},
true
)
ts
:
add
({
"color"
,
0
,
255
,
255
},
(
"Level: %d"
):
format
(
self
.
level
),
{
"color"
,
"WHITE"
},
true
)
ts
:
add
(
self
.
desc
,
true
)
ts
:
add
(
"Faction: "
)
ts
:
merge
(
factcolor
:
toTString
())
ts
:
add
((
"%s (%s, %d)"
):
format
(
Faction
.
factions
[
self
.
faction
].
name
,
factstate
,
factlevel
),
{
"color"
,
"WHITE"
},
true
)
ts
:
add
(
(
"Killed by you: "
):
format
(
killed
),
true
,
"Target: "
,
self
.
ai_target
.
actor
and
self
.
ai_target
.
actor
.
name
or
"none"
,
true
,
"UID: "
..
self
.
uid
)
return
ts
end
function
_M
:
die
(
src
)
...
...
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