资源:武将及装备

This commit is contained in:
luying
2022-04-11 18:31:17 +08:00
parent c91f151728
commit b7a33546c9
4 changed files with 7686 additions and 3273 deletions

View File

@@ -49,10 +49,10 @@ function parseRate(str: string) {
if(!str) return result;
let decodeArr = decodeArrayListStr(str);
for(let [min, max, weight] of decodeArr) {
if(isNaN(parseInt(min)) || isNaN(parseInt(max)) || isNaN(parseInt(weight))) {
if(isNaN(parseFloat(min)) || isNaN(parseFloat(max)) || isNaN(parseFloat(weight))) {
throw new Error('data table format wrong');
}
result.push({min: parseInt(min), max: parseInt(max), weight: parseInt(weight) });
result.push({min: parseFloat(min), max: parseFloat(max), weight: parseFloat(weight) });
}
return result
}