mirror of
https://github.com/earthjasonlin/star-rail-warp-export.git
synced 2025-08-02 10:50:17 +08:00
feat: Refine import and export functions
This commit is contained in:
@@ -8,9 +8,13 @@ const itemCount = (map, name) => {
|
||||
}
|
||||
}
|
||||
|
||||
const order = ['11', '12', '1', '2']
|
||||
|
||||
const gachaDetail = (data) => {
|
||||
const detailMap = new Map()
|
||||
for (let [key, value] of data) {
|
||||
for (let key of order) {
|
||||
if (!data.has(key)) return
|
||||
let value = data.get(key)
|
||||
let detail = {
|
||||
count3: 0, count4: 0, count5: 0,
|
||||
count3w: 0, count4w: 0, count5w: 0, count4c: 0, count5c: 0,
|
||||
|
Reference in New Issue
Block a user