对GameEvent.insertAfter的参数做空值判断
This commit is contained in:
parent
020be275ed
commit
7b0978d152
|
@ -31390,14 +31390,18 @@
|
|||
const next=new lib.element.GameEvent(`${this.name}Inserted`,false);
|
||||
this.next.push(next);
|
||||
next.setContent(content);
|
||||
if(map){
|
||||
Object.entries(map).forEach(entry=>next.set(entry[0],entry[1]));
|
||||
}
|
||||
return next;
|
||||
}
|
||||
insertAfter(content,map){
|
||||
const next=new lib.element.GameEvent(`${this.name}Inserted`,false);
|
||||
this.after.push(next);
|
||||
next.setContent(content);
|
||||
if(map){
|
||||
Object.entries(map).forEach(entry=>next.set(entry[0],entry[1]));
|
||||
}
|
||||
return next;
|
||||
}
|
||||
backup(skill){
|
||||
|
|
Loading…
Reference in New Issue