添加removeSkillLog机制,用于失去技能的播报

This commit is contained in:
mengxinzxz 2023-11-19 09:24:55 +08:00
parent 8f8ef2f380
commit 7429d47e0e
1 changed files with 14 additions and 3 deletions

View File

@ -27370,8 +27370,19 @@
} }
addSkillLog(skill){ addSkillLog(skill){
this.addSkill(skill); this.addSkill(skill);
this.popup(skill); if(!Array.isArray(skill)) skill=[skill];
game.log(this,'获得了技能','#g【'+get.translation(skill)+'】'); skill.forEach(i=>{
this.popup(i);
game.log(this,'获得了技能','#g【'+get.translation(i)+'】');
});
}
removeSkillLog(skill,popop){
this.removeSkill(skill);
if(!Array.isArray(skill)) skill=[skill];
skill.forEach(i=>{
if(popop===true) this.popup(i);
game.log(this,'失去了技能','#g【'+get.translation(i)+'】');
});
} }
addInvisibleSkill(skill){ addInvisibleSkill(skill){
if(Array.isArray(skill)){ if(Array.isArray(skill)){
@ -27859,7 +27870,7 @@
this.removeAdditionalSkill(i); this.removeAdditionalSkill(i);
} }
} }
this.removeSkill(list); this[all?'removeSkill':'removeSkillLog'](list);
this.checkConflict(); this.checkConflict();
this.checkMarks(); this.checkMarks();
return list; return list;