as: Add live notes data [1/3]

This includes:
1. All challenge difficulty lives
2. All expert difficulty lives
3. All μ's normal difficulty lives

Todo:
1. Add Aqours and Nijigasaki normal lives
2. Add daily random lives

All Story, SBL, DLP lives will not be included.

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-07 20:30:09 +08:00
parent efc65e2eae
commit bb8158d070
115 changed files with 216992 additions and 0 deletions
+17
View File
@@ -1,5 +1,11 @@
package tools
import (
"honoka-chan/utils"
"github.com/tidwall/gjson"
)
func init() {
InitUserData(0)
@@ -613,6 +619,17 @@ func init() {
// jsonStr = strings.TrimRight(jsonStr, ",")
// jsonStr += "]"
// fmt.Println(jsonStr)
gjson.Parse(utils.ReadAllText("data/notesdata.json")).ForEach(func(k, v gjson.Result) bool {
v.ForEach(func(kk, vv gjson.Result) bool {
if vv.IsObject() {
fileName := vv.Get("live.live_stage.live_difficulty_id").String()
utils.WriteAllText("temp/"+fileName+".json", vv.Get("live.live_stage").String())
}
return true
})
return true
})
}
func CheckErr(err error) {