战力:皮肤战力属性修复
This commit is contained in:
@@ -41,10 +41,10 @@ function parseAttr(str: string) {
|
|||||||
if(!str) return result;
|
if(!str) return result;
|
||||||
let decodeArr = decodeArrayListStr(str);
|
let decodeArr = decodeArrayListStr(str);
|
||||||
for(let [id, number] of decodeArr) {
|
for(let [id, number] of decodeArr) {
|
||||||
if(isNaN(parseInt(id)) || isNaN(parseInt(number))) {
|
if(isNaN(parseInt(id)) || isNaN(parseFloat(number))) {
|
||||||
throw new Error('data table format wrong');
|
throw new Error('data table format wrong');
|
||||||
}
|
}
|
||||||
result.push({id: parseInt(id), number: parseInt(number)});
|
result.push({id: parseInt(id), number: parseFloat(number)});
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user