Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
Taiko Web
Commits
51c0eefb
Commit
51c0eefb
authored
May 04, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new score
parent
8b6623e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
21 deletions
+43
-21
public/src/js/autoscore.js
public/src/js/autoscore.js
+43
-21
No files found.
public/src/js/autoscore.js
View file @
51c0eefb
...
@@ -162,7 +162,7 @@ class AutoScore {
...
@@ -162,7 +162,7 @@ class AutoScore {
break
;
break
;
}
}
case
"
balloon
"
:
{
case
"
balloon
"
:
{
score
+=
(
5000
+
300
*
circle
.
requiredHits
)
*
multiplier
;
score
+=
(
5000
+
300
*
(
circle
.
requiredHits
-
1
)
)
*
multiplier
;
break
;
break
;
}
}
default
:
{
default
:
{
...
@@ -175,6 +175,9 @@ class AutoScore {
...
@@ -175,6 +175,9 @@ class AutoScore {
}
}
GetTargetScore
(
difficulty
,
level
)
{
GetTargetScore
(
difficulty
,
level
)
{
//console.log(difficulty, level)
//console.log(difficulty, level)
if
(
this
.
scoremode
===
3
)
{
return
1000000
;
}
var
ret
=
this
.
basic_max_score_list
[
difficulty
][
level
];
var
ret
=
this
.
basic_max_score_list
[
difficulty
][
level
];
if
(
!
ret
)
{
if
(
!
ret
)
{
ret
=
this
.
basic_max_score_list
[
difficulty
][
0
];
ret
=
this
.
basic_max_score_list
[
difficulty
][
0
];
...
@@ -186,40 +189,59 @@ class AutoScore {
...
@@ -186,40 +189,59 @@ class AutoScore {
for
(
var
circle
of
this
.
circles
)
{
for
(
var
circle
of
this
.
circles
)
{
//alert(this.IsCommonCircle(circle));
//alert(this.IsCommonCircle(circle));
if
(
this
.
IsCommonCircle
(
circle
)
&&
(
!
circle
.
branch
||
circle
.
branch
.
name
===
"
master
"
))
{
if
(
this
.
IsCommonCircle
(
circle
)
&&
(
!
circle
.
branch
||
circle
.
branch
.
name
===
"
master
"
))
{
combo
++
;
++
combo
;
}
}
}
}
return
combo
;
return
combo
;
}
}
GetMaxPossibleInit
(
target
)
{
GetMaxPossibleInit
(
target
)
{
var
basic_score
=
0
;
var
basic_score
=
0
;
if
(
this
.
scoremode
!==
1
)
{
if
(
this
.
scoremode
===
2
)
{
const
max_combo
=
this
.
GetMaxCombo
();
const
max_combo
=
this
.
GetMaxCombo
();
basic_score
+=
Math
.
floor
(
max_combo
/
100
);
basic_score
+=
Math
.
floor
(
max_combo
/
100
)
*
10000
;
}
}
var
combo
=
0
;
var
combo
=
0
;
for
(
var
circle
of
this
.
circles
)
{
for
(
var
circle
of
this
.
circles
)
{
if
(
circle
.
branch
&&
circle
.
branch
.
name
!==
"
master
"
)
{
if
(
circle
.
branch
&&
circle
.
branch
.
name
!==
"
master
"
)
{
continue
;
continue
;
}
}
var
multiplier
=
circle
.
gogoTime
?
1.2
:
1
;
var
multiplier
=
(
circle
.
gogoTime
&&
this
.
scoremode
!==
3
)
?
1.2
:
1
;
switch
(
circle
.
type
)
{
if
(
this
.
scoremode
===
3
)
{
case
"
don
"
:
switch
(
circle
.
type
)
{
case
"
ka
"
:
{
case
"
don
"
:
combo
+=
(
1
*
multiplier
);
case
"
ka
"
:
break
;
case
"
daiDon
"
:
}
case
"
daiKa
"
:
{
case
"
daiDon
"
:
++
combo
;
case
"
daiKa
"
:
{
break
;
combo
+=
(
2
*
multiplier
);
}
break
;
case
"
balloon
"
:
{
}
basic_score
+=
100
*
this
.
requiredHits
;
case
"
balloon
"
:
{
break
;
basic_score
+=
(
5000
+
300
*
circle
.
requiredHits
)
*
multiplier
;
}
break
;
default
:
{
break
;
}
}
}
default
:
{
}
else
{
break
;
switch
(
circle
.
type
)
{
case
"
don
"
:
case
"
ka
"
:
{
combo
+=
(
1
*
multiplier
);
break
;
}
case
"
daiDon
"
:
case
"
daiKa
"
:
{
combo
+=
(
2
*
multiplier
);
break
;
}
case
"
balloon
"
:
{
basic_score
+=
(
5000
+
300
*
(
circle
.
requiredHits
-
1
))
*
multiplier
;
break
;
}
default
:
{
break
;
}
}
}
}
}
}
}
...
...
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