Skip to content

Commit 8e63095

Browse files
committed
so apparently the rating thing works but it causes an error everytime you modify it????
im gonna have to try a few things to fix that
1 parent 2126770 commit 8e63095

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"song": {
3-
"name":"Geostar",
4-
"artist":"Z11Gaming",
5-
"charter":"Z11Gaming",
6-
"mod":"Mixtape Mashup"
7-
},
8-
9-
"freeplay": {
10-
"bg":"menuBGBlue",
11-
"album":"NoCover",
12-
"ratings":{ "hard": 8 }
13-
}
2+
"freeplay": {
3+
"ratings": {
4+
"hard": 8
5+
},
6+
"album": "NoCover",
7+
"bg": "menuBGBlue"
8+
},
9+
"song": {
10+
"mod": "Mixtape Mashup",
11+
"charter": "Z11Gaming",
12+
"artist": "Z11Gaming",
13+
"name": "GeoStar"
14+
}
1415
}

source/states/editors/ChartingState.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,8 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
980980
modInputText.text = metadata.song.mod;
981981
bgInputText.text = metadata.freeplay.bg;
982982
albumInputText.text = metadata.freeplay.album;
983-
ratingsStepper.value = metadata.freeplay.ratings.get(Difficulty.list[PlayState.storyDifficulty].toLowerCase());
983+
try{ratingsStepper.value = metadata.freeplay.ratings.get(Difficulty.list[PlayState.storyDifficulty].toLowerCase());}
984+
catch(e) {ratingsStepper.value = 0;}
984985
reloadLilBuddies();
985986
}
986987

@@ -2255,7 +2256,7 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
22552256
artist: "???"
22562257
},
22572258
freeplay: {
2258-
ratings: [],
2259+
ratings: ['easy' => 0, 'normal' => 0, 'hard' => 0, 'erect' => 0, 'nightmare' => 0],
22592260
bg: "menuDesat",
22602261
album: "NoCover"
22612262
},

0 commit comments

Comments
 (0)