This commit is contained in:
parent
69674aaada
commit
2d740eb360
|
@ -21663,6 +21663,11 @@
|
||||||
console.log(num);
|
console.log(num);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
hidePlayer:function(player){
|
||||||
|
if(player){
|
||||||
|
player.hide();
|
||||||
|
}
|
||||||
|
},
|
||||||
hideCharacter:function(player,num){
|
hideCharacter:function(player,num){
|
||||||
if(player&&player.classList){
|
if(player&&player.classList){
|
||||||
switch(num){
|
switch(num){
|
||||||
|
@ -22244,7 +22249,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeSeat:function(player,info){
|
changeSeat:function(player,info){
|
||||||
if(player){
|
if(player&&player.getBoundingClientRect){
|
||||||
game.changeSeat(player,info);
|
game.changeSeat(player,info);
|
||||||
game.playerMap={};
|
game.playerMap={};
|
||||||
var players=game.players.concat(game.dead);
|
var players=game.players.concat(game.dead);
|
||||||
|
@ -24588,6 +24593,7 @@
|
||||||
_status.dragline.length=0;
|
_status.dragline.length=0;
|
||||||
},
|
},
|
||||||
changeSeat:function(player,position){
|
changeSeat:function(player,position){
|
||||||
|
game.addVideo('changeSeat',player,position);
|
||||||
var rect1=player.getBoundingClientRect();
|
var rect1=player.getBoundingClientRect();
|
||||||
player.style.transition='all 0s';
|
player.style.transition='all 0s';
|
||||||
ui.refresh(player);
|
ui.refresh(player);
|
||||||
|
@ -24599,7 +24605,6 @@
|
||||||
ui.refresh(player);
|
ui.refresh(player);
|
||||||
player.style.transform='';
|
player.style.transform='';
|
||||||
},100);
|
},100);
|
||||||
game.addVideo('changeSeat',player,position);
|
|
||||||
},
|
},
|
||||||
swapSeat:function(player1,player2,prompt,behind){
|
swapSeat:function(player1,player2,prompt,behind){
|
||||||
if(behind){
|
if(behind){
|
||||||
|
|
82
mode/boss.js
82
mode/boss.js
|
@ -959,7 +959,15 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_chiyan2:{
|
boss_chiyan2:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_chiyan2x'
|
global:'boss_chiyan2x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_chiyan2x:{
|
boss_chiyan2x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -1006,7 +1014,19 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_chiyan3:{
|
boss_chiyan3:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_chiyan3x'
|
global:'boss_chiyan3x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
player.nextSeat.hide();
|
||||||
|
player.previousSeat.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
game.addVideo('hidePlayer',player.nextSeat);
|
||||||
|
game.addVideo('hidePlayer',player.previousSeat);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_chiyan3x:{
|
boss_chiyan3x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -1022,8 +1042,6 @@ game.import('mode',function(){
|
||||||
game.delay();
|
game.delay();
|
||||||
'step 1'
|
'step 1'
|
||||||
game.changeBoss('boss_yandi');
|
game.changeBoss('boss_yandi');
|
||||||
game.boss.nextSeat.hide();
|
|
||||||
game.boss.previousSeat.hide();
|
|
||||||
game.delay(0.5);
|
game.delay(0.5);
|
||||||
'step 2'
|
'step 2'
|
||||||
game.changeBoss('boss_yanling',game.boss.previousSeat);
|
game.changeBoss('boss_yanling',game.boss.previousSeat);
|
||||||
|
@ -1051,7 +1069,15 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_qingmu2:{
|
boss_qingmu2:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_qingmu2x'
|
global:'boss_qingmu2x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_qingmu2x:{
|
boss_qingmu2x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -1098,7 +1124,19 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_qingmu3:{
|
boss_qingmu3:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_qingmu3x'
|
global:'boss_qingmu3x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
player.nextSeat.hide();
|
||||||
|
player.previousSeat.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
game.addVideo('hidePlayer',player.nextSeat);
|
||||||
|
game.addVideo('hidePlayer',player.previousSeat);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_qingmu3x:{
|
boss_qingmu3x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -1114,8 +1152,6 @@ game.import('mode',function(){
|
||||||
game.delay();
|
game.delay();
|
||||||
'step 1'
|
'step 1'
|
||||||
game.changeBoss('boss_taihao');
|
game.changeBoss('boss_taihao');
|
||||||
game.boss.nextSeat.hide();
|
|
||||||
game.boss.previousSeat.hide();
|
|
||||||
game.delay(0.5);
|
game.delay(0.5);
|
||||||
'step 2'
|
'step 2'
|
||||||
game.changeBoss('boss_shujing',game.boss.previousSeat);
|
game.changeBoss('boss_shujing',game.boss.previousSeat);
|
||||||
|
@ -2266,7 +2302,15 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_bianshen2:{
|
boss_bianshen2:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_bianshen2x'
|
global:'boss_bianshen2x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_bianshen2x:{
|
boss_bianshen2x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -2286,7 +2330,15 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_bianshen3:{
|
boss_bianshen3:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_bianshen3x'
|
global:'boss_bianshen3x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_bianshen3x:{
|
boss_bianshen3x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
@ -2306,7 +2358,15 @@ game.import('mode',function(){
|
||||||
},
|
},
|
||||||
boss_bianshen4:{
|
boss_bianshen4:{
|
||||||
mode:['boss'],
|
mode:['boss'],
|
||||||
global:'boss_bianshen4x'
|
global:'boss_bianshen4x',
|
||||||
|
trigger:{player:'dieBegin'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
player.hide();
|
||||||
|
game.addVideo('hidePlayer',player);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
boss_bianshen4x:{
|
boss_bianshen4x:{
|
||||||
trigger:{global:'dieAfter'},
|
trigger:{global:'dieAfter'},
|
||||||
|
|
Loading…
Reference in New Issue