This commit is contained in:
parent
54eec58bcc
commit
a0cf8a8559
|
@ -10078,6 +10078,14 @@
|
||||||
console.log(player);
|
console.log(player);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setIdentity:function(player,identity){
|
||||||
|
if(player&&identity){
|
||||||
|
player.setIdentity(identity);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
console.log(num);
|
||||||
|
}
|
||||||
|
},
|
||||||
showCharacter:function(player,num){
|
showCharacter:function(player,num){
|
||||||
if(player&&player.classList){
|
if(player&&player.classList){
|
||||||
switch(num){
|
switch(num){
|
||||||
|
@ -16876,6 +16884,7 @@
|
||||||
if(_status.dragged) return;
|
if(_status.dragged) return;
|
||||||
_status.clicked=true;
|
_status.clicked=true;
|
||||||
if(!game.getIdentityList) return;
|
if(!game.getIdentityList) return;
|
||||||
|
if(_status.video) return;
|
||||||
if(_status.clickingidentity){
|
if(_status.clickingidentity){
|
||||||
for(var i=0;i<_status.clickingidentity[1].length;i++){
|
for(var i=0;i<_status.clickingidentity[1].length;i++){
|
||||||
_status.clickingidentity[1][i].delete();
|
_status.clickingidentity[1][i].delete();
|
||||||
|
|
|
@ -559,6 +559,15 @@ mode.guozhan={
|
||||||
// this.node.identity.dataset.color=this.identity;
|
// this.node.identity.dataset.color=this.identity;
|
||||||
this.setIdentity(this.identity);
|
this.setIdentity(this.identity);
|
||||||
this.ai.shown=1;
|
this.ai.shown=1;
|
||||||
|
|
||||||
|
if(_status.clickingidentity&&_status.clickingidentity[0]==this){
|
||||||
|
for(var i=0;i<_status.clickingidentity[1].length;i++){
|
||||||
|
_status.clickingidentity[1][i].delete();
|
||||||
|
_status.clickingidentity[1][i].style.transform='';
|
||||||
|
}
|
||||||
|
delete _status.clickingidentity;
|
||||||
|
}
|
||||||
|
game.addVideo('setIdentity',this,this.identity);
|
||||||
}
|
}
|
||||||
var skills;
|
var skills;
|
||||||
switch(num){
|
switch(num){
|
||||||
|
|
|
@ -292,6 +292,13 @@ mode.identity={
|
||||||
game.players[i].isZhu=true;
|
game.players[i].isZhu=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(_status.clickingidentity){
|
||||||
|
for(var i=0;i<_status.clickingidentity[1].length;i++){
|
||||||
|
_status.clickingidentity[1][i].delete();
|
||||||
|
_status.clickingidentity[1][i].style.transform='';
|
||||||
|
}
|
||||||
|
delete _status.clickingidentity;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkResult:function(){
|
checkResult:function(){
|
||||||
if(game.zhu.isAlive()&&get.population('fan')+get.population('nei')>0) return;
|
if(game.zhu.isAlive()&&get.population('fan')+get.population('nei')>0) return;
|
||||||
|
@ -787,6 +794,13 @@ mode.identity={
|
||||||
if(lib.config.animation&&!lib.config.low_performance) game.zhu.$legend();
|
if(lib.config.animation&&!lib.config.low_performance) game.zhu.$legend();
|
||||||
game.delay(2);
|
game.delay(2);
|
||||||
game.zhu.playerfocus(1000);
|
game.zhu.playerfocus(1000);
|
||||||
|
if(_status.clickingidentity&&_status.clickingidentity[0]==game.zhu){
|
||||||
|
for(var i=0;i<_status.clickingidentity[1].length;i++){
|
||||||
|
_status.clickingidentity[1][i].delete();
|
||||||
|
_status.clickingidentity[1][i].style.transform='';
|
||||||
|
}
|
||||||
|
delete _status.clickingidentity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(!this.node.dieidentity){
|
if(!this.node.dieidentity){
|
||||||
var node=ui.create.div('.damage.dieidentity',get.translation(this.identity+'2'),this);
|
var node=ui.create.div('.damage.dieidentity',get.translation(this.identity+'2'),this);
|
||||||
|
|
Loading…
Reference in New Issue