Use stars on song select for score level

This commit is contained in:
LoveEevee
2019-11-04 17:20:44 +03:00
parent 84377f62b0
commit 1bb3359784
5 changed files with 12 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
class ParseTja{
constructor(file, difficulty, offset, metaOnly){
constructor(file, difficulty, stars, offset, metaOnly){
this.data = []
for(let line of file){
line = line.replace(/\/\/.*/, "").trim()
@@ -8,6 +8,7 @@
}
}
this.difficulty = difficulty
this.stars = stars
this.offset = (offset || 0) * -1000
this.soundOffset = 0
this.noteTypes = {
@@ -454,7 +455,7 @@
this.scoremode = meta.scoremode || 1;
} else {
this.scoremode = meta.scoremode || 2;
var autoscore = new AutoScore(this.difficulty, meta.level, this.scoremode, circles);
var autoscore = new AutoScore(this.difficulty, this.stars, this.scoremode, circles);
this.scoreinit = autoscore.ScoreInit;
this.scorediff = autoscore.ScoreDiff;
}