左慈获取剩余武将牌堆改为许劭initList,添加性别更换播报
This commit is contained in:
parent
7b049aae48
commit
3dd3e9f131
|
@ -4255,24 +4255,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
addHuashen:function(player){
|
addHuashen:function(player){
|
||||||
if(!player.storage.huashen) return;
|
if(!player.storage.huashen) return;
|
||||||
if(!_status.characterlist){
|
if(!_status.characterlist){
|
||||||
if(_status.connectMode) var list=get.charactersOL();
|
lib.skill.pingjian.initList();
|
||||||
else{
|
|
||||||
var list=[];
|
|
||||||
for(var i in lib.character){
|
|
||||||
if(lib.filter.characterDisabled2(i)||lib.filter.characterDisabled(i)) continue;
|
|
||||||
list.push(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
game.countPlayer(function(current){
|
|
||||||
list.remove(current.name);
|
|
||||||
list.remove(current.name1);
|
|
||||||
list.remove(current.name2);
|
|
||||||
if(current.storage.huashen&¤t.storage.huashen.owned){
|
|
||||||
for(var i in current.storage.huashen.owned) list.removeArray(current.storage.huashen.owned[i]);
|
|
||||||
}
|
|
||||||
if(current.storage.rehuashen&¤t.storage.rehuashen.character) list.removeArray(current.storage.rehuashen.character)
|
|
||||||
});
|
|
||||||
_status.characterlist=list;
|
|
||||||
}
|
}
|
||||||
_status.characterlist.randomSort();
|
_status.characterlist.randomSort();
|
||||||
var bool=false;
|
var bool=false;
|
||||||
|
@ -4495,6 +4478,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.markSkill('huashen');
|
player.markSkill('huashen');
|
||||||
game.broadcastAll(function(character,player){
|
game.broadcastAll(function(character,player){
|
||||||
player.sex=lib.character[character][0];
|
player.sex=lib.character[character][0];
|
||||||
|
game.log(player,'将性别变为了','#y'+get.translation(lib.character[character][0])+'性');
|
||||||
//player.group=lib.character[character][1];
|
//player.group=lib.character[character][1];
|
||||||
//player.node.name.dataset.nature=get.groupnature(player.group);
|
//player.node.name.dataset.nature=get.groupnature(player.group);
|
||||||
var mark=player.marks.huashen;
|
var mark=player.marks.huashen;
|
||||||
|
@ -4514,7 +4498,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},200);
|
},200);
|
||||||
}
|
}
|
||||||
},character,player);
|
},character,player);
|
||||||
player.changeGroup(lib.character[character][1],false);
|
player.changeGroup(lib.character[character][1]);
|
||||||
}
|
}
|
||||||
player.storage.huashen.current2=skill;
|
player.storage.huashen.current2=skill;
|
||||||
if(!player.additionalSkills.huashen||!player.additionalSkills.huashen.contains(skill)){
|
if(!player.additionalSkills.huashen||!player.additionalSkills.huashen.contains(skill)){
|
||||||
|
@ -8150,4 +8134,4 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
shenhua_lei:'神话再临·雷',
|
shenhua_lei:'神话再临·雷',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue