Merge pull request #318 from nofficalfs/PR-Suggest-ExtSkill-Append-Translate

[Suggest] Extension Skill Support Append Info
This commit is contained in:
Spmario233 2023-09-11 19:02:46 +08:00 committed by GitHub
commit 406583ba67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -9750,7 +9750,9 @@
if(lib.extensions[i][4].skill){
for(var j in lib.extensions[i][4].skill.skill){
game.addSkill(j,lib.extensions[i][4].skill.skill[j],
lib.extensions[i][4].skill.translate[j],lib.extensions[i][4].skill.translate[j+'_info']);
lib.extensions[i][4].skill.translate[j],
lib.extensions[i][4].skill.translate[j+'_info'],
lib.extensions[i][4].skill.translate[j+'_append']);
}
}
}
@ -36248,7 +36250,7 @@
}
}
},
addSkill:function(name,info,translate,description){
addSkill:function(name,info,translate,description,appendInfo){
if(lib.skill[name]){
return false;
}
@ -36258,6 +36260,7 @@
lib.skill[name]=info;
lib.translate[name]=translate;
lib.translate[name+'_info']=description;
lib.translate[name+'_append']=appendInfo;
return true;
},
addMode:function(name,info,info2){