Commit bc0085ba authored by nanahira's avatar nanahira

add hardcore mod

parent 9f650158
Pipeline #3941 passed with stages
in 3 minutes and 38 seconds
......@@ -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",
......
......@@ -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;
}
}
......@@ -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
......
......@@ -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()
......
......@@ -18,7 +18,8 @@
this.mods = mods || {
speed: 1,
shuffle: 0,
doron: false
doron: false,
hardcore: false
};
this.soundOffset = 0
this.noteTypes = {
......
......@@ -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({
......
......@@ -1122,6 +1122,13 @@ var translations = {
tw: "隱身",
kr: "은신"
},
hardcore: {
ja: "ハードコア",
en: "Hardcore",
cn: "硬核",
tw: "硬核",
kr: "Hardcore"
}
}
}
var allStrings = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment