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
bc0085ba
Commit
bc0085ba
authored
Jul 05, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add hardcore mod
parent
9f650158
Pipeline
#3941
passed with stages
in 3 minutes and 38 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
5 deletions
+22
-5
public/src/js/assets.js
public/src/js/assets.js
+1
-0
public/src/js/controller.js
public/src/js/controller.js
+3
-0
public/src/js/game.js
public/src/js/game.js
+1
-1
public/src/js/parseosu.js
public/src/js/parseosu.js
+2
-1
public/src/js/parsetja.js
public/src/js/parsetja.js
+2
-1
public/src/js/songselect.js
public/src/js/songselect.js
+6
-2
public/src/js/strings.js
public/src/js/strings.js
+7
-0
No files found.
public/src/js/assets.js
View file @
bc0085ba
...
...
@@ -88,6 +88,7 @@ var assets = {
"
badge_s0.25.png
"
,
"
badge_s0.5.png
"
,
"
badge_doron.png
"
,
"
badge_kanbeki.png
"
,
"
touch_pause.png
"
,
"
touch_fullscreen.png
"
,
"
mimizu.png
"
,
...
...
public/src/js/controller.js
View file @
bc0085ba
...
...
@@ -366,7 +366,10 @@ class Controller{
return
"
badge_s
"
+
this
.
mods
.
shuffle
.
toString
();
}
else
if
(
this
.
mods
.
doron
)
{
return
"
badge_doron
"
;
}
else
if
(
this
.
mods
.
hardcore
)
{
return
"
badge_kanbeki
"
;
}
return
null
;
}
}
public/src/js/game.js
View file @
bc0085ba
...
...
@@ -333,7 +333,7 @@ class Game{
relative
=
Math
.
abs
(
relative
)
if
(
relative
<
this
.
rules
.
good
){
circleStatus
=
450
}
else
if
(
relative
<
this
.
rules
.
ok
){
}
else
if
(
!
this
.
controller
.
mods
.
hardcore
&&
relative
<
this
.
rules
.
ok
){
circleStatus
=
230
}
else
if
(
relative
<
this
.
rules
.
bad
){
circleStatus
=
0
...
...
public/src/js/parseosu.js
View file @
bc0085ba
...
...
@@ -58,7 +58,8 @@ class ParseOsu{
this
.
mods
=
mods
||
{
speed
:
1
,
shuffle
:
0
,
doron
:
false
doron
:
false
,
hardcore
:
false
};
if
(
!
metaOnly
){
this
.
timingPoints
=
this
.
parseTiming
()
...
...
public/src/js/parsetja.js
View file @
bc0085ba
...
...
@@ -18,7 +18,8 @@
this
.
mods
=
mods
||
{
speed
:
1
,
shuffle
:
0
,
doron
:
false
doron
:
false
,
hardcore
:
false
};
this
.
soundOffset
=
0
this
.
noteTypes
=
{
...
...
public/src/js/songselect.js
View file @
bc0085ba
...
...
@@ -213,7 +213,7 @@ class SongSelect{
iconFill
:
"
#d9f19f
"
,
letterSpacing
:
0
}]
this
.
optionsList
=
[
strings
.
none
,
strings
.
auto
,
strings
.
netplay
,
strings
.
songMods
.
x2
,
strings
.
songMods
.
x3
,
strings
.
songMods
.
x4
,
strings
.
songMods
.
doron
,
strings
.
songMods
.
reverse
,
strings
.
songMods
.
half_shuffle
,
strings
.
songMods
.
shuffle
]
this
.
optionsList
=
[
strings
.
none
,
strings
.
auto
,
strings
.
netplay
,
strings
.
songMods
.
x2
,
strings
.
songMods
.
x3
,
strings
.
songMods
.
x4
,
strings
.
songMods
.
doron
,
strings
.
songMods
.
reverse
,
strings
.
songMods
.
half_shuffle
,
strings
.
songMods
.
shuffle
,
strings
.
songMods
.
hardcore
]
this
.
draw
=
new
CanvasDraw
(
noSmoothing
)
this
.
songTitleCache
=
new
CanvasCache
(
noSmoothing
)
...
...
@@ -770,7 +770,8 @@ class SongSelect{
var
mods
=
{
speed
:
1
,
shuffle
:
0
,
doron
:
false
doron
:
false
,
hardcore
:
false
}
if
(
p2
.
session
||
this
.
state
.
options
===
2
){
multiplayer
=
true
...
...
@@ -792,7 +793,10 @@ class SongSelect{
mods
.
shuffle
=
0.5
;
}
else
if
(
this
.
state
.
options
===
6
)
{
mods
.
doron
=
true
;
}
else
if
(
this
.
state
.
options
===
10
)
{
mods
.
hardcore
=
true
;
}
var
diff
=
this
.
difficultyId
[
difficulty
]
new
LoadSong
({
...
...
public/src/js/strings.js
View file @
bc0085ba
...
...
@@ -1122,6 +1122,13 @@ var translations = {
tw
:
"
隱身
"
,
kr
:
"
은신
"
},
hardcore
:
{
ja
:
"
ハードコア
"
,
en
:
"
Hardcore
"
,
cn
:
"
硬核
"
,
tw
:
"
硬核
"
,
kr
:
"
Hardcore
"
}
}
}
var
allStrings
=
{}
...
...
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