fix: the pity value in excel is incorrect (#15)

This commit is contained in:
mio 2023-05-05 14:04:08 +08:00
parent 38ed348865
commit bbc52af184
2 changed files with 2 additions and 3 deletions

@ -1,6 +1,6 @@
{ {
"name": "star-rail-warp-export", "name": "star-rail-warp-export",
"version": "0.0.11", "version": "0.0.12",
"main": "./dist/electron/main/main.js", "main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>", "author": "biuuu <https://github.com/biuuu>",
"license": "MIT", "license": "MIT",

@ -4,7 +4,6 @@ const { app, ipcMain, dialog } = require('electron')
const fs = require('fs-extra') const fs = require('fs-extra')
const path = require('path') const path = require('path')
const i18n = require('./i18n') const i18n = require('./i18n')
const cloneDeep = require('lodash-es/cloneDeep').default
function pad(num) { function pad(num) {
return `${num}`.padStart(2, "0"); return `${num}`.padStart(2, "0");
@ -87,7 +86,7 @@ const start = async () => {
arr.push(total) arr.push(total)
arr.push(pity) arr.push(pity)
temp.push(arr) temp.push(arr)
if (log.rank_type === 5) { if (log.rank_type === '5') {
pity = 0 pity = 0
} }
// if (key === '301') { // if (key === '301') {