This commit is contained in:
parent
53f668c51f
commit
dd762f66e6
|
@ -163,6 +163,7 @@ character.hearth={
|
||||||
player.skills.remove(link);
|
player.skills.remove(link);
|
||||||
player.additionalSkills.maoxian=link;
|
player.additionalSkills.maoxian=link;
|
||||||
player.popup(link);
|
player.popup(link);
|
||||||
|
game.log(player,'获得了技能','【'+get.translation(link)+'】')
|
||||||
var name=event.map[link];
|
var name=event.map[link];
|
||||||
var target;
|
var target;
|
||||||
for(var i=0;i<game.players.length;i++){
|
for(var i=0;i<game.players.length;i++){
|
||||||
|
@ -173,7 +174,7 @@ character.hearth={
|
||||||
target=game.players[i];break;
|
target=game.players[i];break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(target){
|
if(target&&(target.name==name||(target.name2==name&&!target.classList.contains('unseen2')))){
|
||||||
player.line(target,'green');
|
player.line(target,'green');
|
||||||
player.markSkillCharacter('maoxian',target,get.translation(link),lib.translate[link+'_info']);
|
player.markSkillCharacter('maoxian',target,get.translation(link),lib.translate[link+'_info']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2622,6 +2622,9 @@ character.shenhua={
|
||||||
liegong:{
|
liegong:{
|
||||||
audio:2,
|
audio:2,
|
||||||
trigger:{player:'shaBegin'},
|
trigger:{player:'shaBegin'},
|
||||||
|
check:function(event,player){
|
||||||
|
return ai.get.attitude(player,event.target)<=0;
|
||||||
|
},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
var length=event.target.num('h');
|
var length=event.target.num('h');
|
||||||
return (length>=player.hp||length<=get.attackRange(player));
|
return (length>=player.hp||length<=get.attackRange(player));
|
||||||
|
|
11
game/game.js
11
game/game.js
|
@ -14176,8 +14176,9 @@
|
||||||
lib.config.recentCharacter.unshift(arguments[i]);
|
lib.config.recentCharacter.unshift(arguments[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(lib.config.recentCharacter.length>parseInt(lib.config.recent_character_number)){
|
var num=parseInt(lib.config.recent_character_number);
|
||||||
lib.config.recentCharacter.splice(0,12);
|
if(lib.config.recentCharacter.length>num){
|
||||||
|
lib.config.recentCharacter.splice(num);
|
||||||
}
|
}
|
||||||
game.saveConfig('recentCharacter',lib.config.recentCharacter);
|
game.saveConfig('recentCharacter',lib.config.recentCharacter);
|
||||||
},
|
},
|
||||||
|
@ -25377,9 +25378,15 @@
|
||||||
a:function(name){
|
a:function(name){
|
||||||
if(lib.storage.test&&!name){
|
if(lib.storage.test&&!name){
|
||||||
game.save('test',false);
|
game.save('test',false);
|
||||||
|
if(lib.config.mode=='identity'){
|
||||||
|
game.saveConfig('double_character',false,true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
game.save('test',name||true);
|
game.save('test',name||true);
|
||||||
|
if(lib.config.mode=='identity'){
|
||||||
|
game.saveConfig('double_character',true,true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
game.reload();
|
game.reload();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue