mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 21:37:40 +08:00
bug fix
This commit is contained in:
@@ -28,13 +28,13 @@ class Property {
|
|||||||
event = event?.split(',') || [];
|
event = event?.split(',') || [];
|
||||||
|
|
||||||
event = event.map(v=>{
|
event = event.map(v=>{
|
||||||
const value = v.split('*').map(n=>Number(n));
|
const value = `${v}`.split('*').map(n=>Number(n));
|
||||||
if(value.length==1) value.push(1);
|
if(value.length==1) value.push(1);
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!Array.isArray(talent))
|
if(!Array.isArray(talent))
|
||||||
talent = talent?.split(',') || [];
|
talent = `${talent}`?.split(',') || [];
|
||||||
|
|
||||||
talent = talent.map(v=>Number(v));
|
talent = talent.map(v=>Number(v));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user