Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
6057583f
Commit
6057583f
authored
Nov 16, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix i18n
parent
fbce123d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
data-manager/entities/RandomDuelScore.ts
data-manager/entities/RandomDuelScore.ts
+3
-3
data/i18n.json
data/i18n.json
+6
-6
No files found.
data-manager/entities/RandomDuelScore.ts
View file @
6057583f
...
@@ -43,13 +43,13 @@ export class RandomDuelScore {
...
@@ -43,13 +43,13 @@ export class RandomDuelScore {
const
displayName
=
this
.
getDisplayName
();
const
displayName
=
this
.
getDisplayName
();
const
total
=
this
.
winCount
+
this
.
loseCount
;
const
total
=
this
.
winCount
+
this
.
loseCount
;
if
(
this
.
winCount
<
2
&&
total
<
3
)
{
if
(
this
.
winCount
<
2
&&
total
<
3
)
{
return
`
${
displayName
}
\${random_
this
_not_enough}`
;
return
`
${
displayName
}
\${random_
score
_not_enough}`
;
}
}
if
(
this
.
winCombo
>=
2
)
{
if
(
this
.
winCombo
>=
2
)
{
return
`\${random_
this_part1}
${
displayName
}
\${random_this_part2}
${
Math
.
ceil
(
this
.
winCount
/
total
*
100
)}
\${random_this_part3}
${
Math
.
ceil
(
this
.
fleeCount
/
total
*
100
)}
\${random_this_part4_combo}
${
this
.
winCombo
}
\${random_this
_part5_combo}`
;
return
`\${random_
score_part1}
${
displayName
}
\${random_score_part2}
${
Math
.
ceil
(
this
.
winCount
/
total
*
100
)}
\${random_score_part3}
${
Math
.
ceil
(
this
.
fleeCount
/
total
*
100
)}
\${random_score_part4_combo}
${
this
.
winCombo
}
\${random_score
_part5_combo}`
;
}
else
{
}
else
{
//return displayName + " 的今日战绩:胜率" + Math.ceil(this.winCount/total*100) + "%,逃跑率" + Math.ceil(this.fleeCount/total*100) + "%," + this.winCombo + "连胜中!"
//return displayName + " 的今日战绩:胜率" + Math.ceil(this.winCount/total*100) + "%,逃跑率" + Math.ceil(this.fleeCount/total*100) + "%," + this.winCombo + "连胜中!"
return
`\${random_
this_part1}
${
displayName
}
\${random_this_part2}
${
Math
.
ceil
(
this
.
winCount
/
total
*
100
)}
\${random_this_part3}
${
Math
.
ceil
(
this
.
fleeCount
/
total
*
100
)}
\${random_this
_part4}`
;
return
`\${random_
score_part1}
${
displayName
}
\${random_score_part2}
${
Math
.
ceil
(
this
.
winCount
/
total
*
100
)}
\${random_score_part3}
${
Math
.
ceil
(
this
.
fleeCount
/
total
*
100
)}
\${random_score
_part4}`
;
}
}
}
}
}
}
\ No newline at end of file
data/i18n.json
View file @
6057583f
...
@@ -67,14 +67,14 @@
...
@@ -67,14 +67,14 @@
"exp_value_part2"
:
" exp"
,
"exp_value_part2"
:
" exp"
,
"exp_value_part3"
:
", your score is "
,
"exp_value_part3"
:
", your score is "
,
"exp_value_part4"
:
". These points may be reset after the stable release of MyCard."
,
"exp_value_part4"
:
". These points may be reset after the stable release of MyCard."
,
"random_score_part1"
:
"
Today's r
ecord of "
,
"random_score_part1"
:
"
R
ecord of "
,
"random_score_part2"
:
": "
,
"random_score_part2"
:
": "
,
"random_score_part3"
:
"% WIN, "
,
"random_score_part3"
:
"% WIN, "
,
"random_score_part4_combo"
:
"% RAGE QUIT, WIN COMBO "
,
"random_score_part4_combo"
:
"% RAGE QUIT, WIN COMBO "
,
"random_score_part5_combo"
:
" !"
,
"random_score_part5_combo"
:
" !"
,
"random_score_part4"
:
"%"
,
"random_score_part4"
:
"%"
,
"random_score_blank"
:
" didn't have enough duel record
today
."
,
"random_score_blank"
:
" didn't have enough duel record."
,
"random_score_not_enough"
:
" didn't have enough duel record
today
."
,
"random_score_not_enough"
:
" didn't have enough duel record."
,
"lp_low_opponent"
:
"もはやお前のライフは風前の灯!"
,
"lp_low_opponent"
:
"もはやお前のライフは風前の灯!"
,
"lp_low_self"
:
"*Low LP Alert*"
,
"lp_low_self"
:
"*Low LP Alert*"
,
"kicked_by_player"
:
"was evicted from the game."
,
"kicked_by_player"
:
"was evicted from the game."
,
...
@@ -386,13 +386,13 @@
...
@@ -386,13 +386,13 @@
"exp_value_part3"
:
",你的战斗力是"
,
"exp_value_part3"
:
",你的战斗力是"
,
"exp_value_part4"
:
"。竞技场部分积分按赛季重置。"
,
"exp_value_part4"
:
"。竞技场部分积分按赛季重置。"
,
"random_score_part1"
:
""
,
"random_score_part1"
:
""
,
"random_score_part2"
:
"的
今日
战绩:胜率"
,
"random_score_part2"
:
"的战绩:胜率"
,
"random_score_part3"
:
"%,逃跑率"
,
"random_score_part3"
:
"%,逃跑率"
,
"random_score_part4_combo"
:
"%,"
,
"random_score_part4_combo"
:
"%,"
,
"random_score_part5_combo"
:
"连胜中!"
,
"random_score_part5_combo"
:
"连胜中!"
,
"random_score_part4"
:
"%"
,
"random_score_part4"
:
"%"
,
"random_score_blank"
:
"的
今日
战绩:正在统计中"
,
"random_score_blank"
:
"的战绩:正在统计中"
,
"random_score_not_enough"
:
"的
今日
战绩:正在统计中"
,
"random_score_not_enough"
:
"的战绩:正在统计中"
,
"lp_low_opponent"
:
"你的生命已经如风中残烛了!"
,
"lp_low_opponent"
:
"你的生命已经如风中残烛了!"
,
"lp_low_self"
:
"背水一战!"
,
"lp_low_self"
:
"背水一战!"
,
"kicked_by_player"
:
"被请出了房间"
,
"kicked_by_player"
:
"被请出了房间"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment