修复空行没有缩进的问题
This commit is contained in:
parent
95ff76342d
commit
3268c182e5
|
@ -26714,7 +26714,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
//olfeiyang_info:'限定技。准备阶段,你可以弃置两张牌,然后弃置判定区的一张牌。',
|
//olfeiyang_info:'限定技。准备阶段,你可以弃置两张牌,然后弃置判定区的一张牌。',
|
||||||
olfeiyang_info:'准备阶段,你可以弃置三张牌,然后弃置判定区的一张牌。',
|
olfeiyang_info:'准备阶段,你可以弃置三张牌,然后弃置判定区的一张牌。',
|
||||||
|
|
||||||
|
|
||||||
sp_tianji:'天极·皇室宗亲',
|
sp_tianji:'天极·皇室宗亲',
|
||||||
sp_sibi:'四弼·辅国文曲',
|
sp_sibi:'四弼·辅国文曲',
|
||||||
sp_tianzhu:'天柱·势冠一方',
|
sp_tianzhu:'天柱·势冠一方',
|
||||||
|
|
|
@ -323,7 +323,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
if(lib.config.show_handcardbutton){
|
if(lib.config.show_handcardbutton){
|
||||||
lib.setPopped(ui.create.system('手牌',null,true),function(){
|
lib.setPopped(ui.create.system('手牌',null,true),function(){
|
||||||
var uiintro=ui.create.dialog('hidden');
|
var uiintro=ui.create.dialog('hidden');
|
||||||
|
|
||||||
var players=game.players.concat(game.dead);
|
var players=game.players.concat(game.dead);
|
||||||
for(var i=0;i<players.length;i++){
|
for(var i=0;i<players.length;i++){
|
||||||
if(players[i].side==game.me.side&&players[i]!=game.me){
|
if(players[i].side==game.me.side&&players[i]!=game.me){
|
||||||
|
@ -337,7 +336,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return uiintro;
|
return uiintro;
|
||||||
},220);
|
},220);
|
||||||
}
|
}
|
||||||
|
@ -367,7 +365,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
td.innerHTML='无法重整'
|
td.innerHTML='无法重整'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!added){
|
if(!added){
|
||||||
uiintro.add('<div class="text center">(无重整角色)</div>');
|
uiintro.add('<div class="text center">(无重整角色)</div>');
|
||||||
uiintro.add(ui.create.div('.placeholder.slim'))
|
uiintro.add(ui.create.div('.placeholder.slim'))
|
||||||
|
@ -375,7 +372,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
uiintro.add(table);
|
uiintro.add(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
return uiintro;
|
return uiintro;
|
||||||
},180);
|
},180);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3803,7 +3803,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
lib.translate.nei=lib.translate.nei||'内';
|
lib.translate.nei=lib.translate.nei||'内';
|
||||||
lib.translate.fan=lib.translate.fan||'反';
|
lib.translate.fan=lib.translate.fan||'反';
|
||||||
|
|
||||||
|
|
||||||
this.style.transition='all 0s';
|
this.style.transition='all 0s';
|
||||||
this.style.height=(this.offsetHeight-10)+'px';
|
this.style.height=(this.offsetHeight-10)+'px';
|
||||||
this.style.overflow='scroll';
|
this.style.overflow='scroll';
|
||||||
|
@ -3812,7 +3811,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
var style2={position:'relative',display:'block',left:0,top:0,marginBottom:'6px',padding:0,width:'100%'};
|
var style2={position:'relative',display:'block',left:0,top:0,marginBottom:'6px',padding:0,width:'100%'};
|
||||||
var style3={marginLeft:'4px',marginRight:'4px',position:'relative'}
|
var style3={marginLeft:'4px',marginRight:'4px',position:'relative'}
|
||||||
|
|
||||||
|
|
||||||
var scenename=ui.create.node('input',ui.create.div(style2,'','场景名称:',this),{width:'120px'});
|
var scenename=ui.create.node('input',ui.create.div(style2,'','场景名称:',this),{width:'120px'});
|
||||||
scenename.type='text';
|
scenename.type='text';
|
||||||
scenename.style.marginTop='20px';
|
scenename.style.marginTop='20px';
|
||||||
|
@ -3921,7 +3919,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
game.addScene(scene.name,true);
|
game.addScene(scene.name,true);
|
||||||
},style);
|
},style);
|
||||||
|
|
||||||
|
|
||||||
var capt1=ui.create.div(style2,'','角色信息',this);
|
var capt1=ui.create.div(style2,'','角色信息',this);
|
||||||
var line2=ui.create.div(style2,this);
|
var line2=ui.create.div(style2,this);
|
||||||
line2.style.display='none';
|
line2.style.display='none';
|
||||||
|
@ -3985,7 +3982,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
var capt9=ui.create.div(style2,'','编辑牌堆',this);
|
var capt9=ui.create.div(style2,'','编辑牌堆',this);
|
||||||
capt9.style.display='none';
|
capt9.style.display='none';
|
||||||
|
|
||||||
|
|
||||||
var capt2=ui.create.div(style2,'','添加卡牌',this);
|
var capt2=ui.create.div(style2,'','添加卡牌',this);
|
||||||
var line3=ui.create.div(style2,this);
|
var line3=ui.create.div(style2,this);
|
||||||
line3.style.display='none';
|
line3.style.display='none';
|
||||||
|
@ -4271,7 +4267,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
player.style.margin='-18px';
|
player.style.margin='-18px';
|
||||||
player.node.marks.remove();
|
player.node.marks.remove();
|
||||||
|
|
||||||
|
|
||||||
line7.appendChild(player);
|
line7.appendChild(player);
|
||||||
player.listen(function(){
|
player.listen(function(){
|
||||||
if(confirm('是否删除此角色?')){
|
if(confirm('是否删除此角色?')){
|
||||||
|
@ -4322,7 +4317,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
var line7=ui.create.div(style2,this);
|
var line7=ui.create.div(style2,this);
|
||||||
line7.style.marginTop='12px';
|
line7.style.marginTop='12px';
|
||||||
|
|
||||||
|
|
||||||
var capt8=ui.create.div(style2,'','胜负条件',this);
|
var capt8=ui.create.div(style2,'','胜负条件',this);
|
||||||
capt8.style.display='none';
|
capt8.style.display='none';
|
||||||
var line8=ui.create.div(style2,this);
|
var line8=ui.create.div(style2,this);
|
||||||
|
@ -4335,7 +4329,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
ui.create.node('span','个回合后',line8,style);
|
ui.create.node('span','个回合后',line8,style);
|
||||||
var turnsresult=ui.create.selectlist(results,'none',line8);
|
var turnsresult=ui.create.selectlist(results,'none',line8);
|
||||||
|
|
||||||
|
|
||||||
var washes=ui.create.selectlist(turnslist,'1',line8);
|
var washes=ui.create.selectlist(turnslist,'1',line8);
|
||||||
washes.style.marginLeft='20px';
|
washes.style.marginLeft='20px';
|
||||||
ui.create.node('span','次洗牌后',line8,style);
|
ui.create.node('span','次洗牌后',line8,style);
|
||||||
|
@ -4361,7 +4354,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
line3.style.display='none';
|
line3.style.display='none';
|
||||||
line7.style.display='block';
|
line7.style.display='block';
|
||||||
|
|
||||||
|
|
||||||
line6_t.style.display='none';
|
line6_t.style.display='none';
|
||||||
line6_b.style.display='none';
|
line6_b.style.display='none';
|
||||||
line6_d.style.display='none';
|
line6_d.style.display='none';
|
||||||
|
|
|
@ -3730,7 +3730,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
addToButton();
|
addToButton();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
for(var i=0;i<bossbuttons.length;i++){
|
for(var i=0;i<bossbuttons.length;i++){
|
||||||
bossbuttons[i].classList.add('noclick');
|
bossbuttons[i].classList.add('noclick');
|
||||||
bossbuttons[i].listen(clickBoss);
|
bossbuttons[i].listen(clickBoss);
|
||||||
|
|
|
@ -190,7 +190,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
event.playerx=player;
|
event.playerx=player;
|
||||||
event.trigger('gameStart');
|
event.trigger('gameStart');
|
||||||
|
|
||||||
"step 3"
|
"step 3"
|
||||||
game.gameDraw(event.playerx);
|
game.gameDraw(event.playerx);
|
||||||
game.broadcastAll(function(player){
|
game.broadcastAll(function(player){
|
||||||
|
@ -12599,7 +12598,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
gzqianxi:{
|
gzqianxi:{
|
||||||
|
|
|
@ -1503,7 +1503,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
identityList=get.identityList(game.players.length);
|
identityList=get.identityList(game.players.length);
|
||||||
}
|
}
|
||||||
var stratagemMode=event.stratagemMode;
|
var stratagemMode=event.stratagemMode;
|
||||||
|
|
||||||
var addSetting=function(dialog){
|
var addSetting=function(dialog){
|
||||||
dialog.add('选择身份').classList.add('add-setting');
|
dialog.add('选择身份').classList.add('add-setting');
|
||||||
var table=document.createElement('div');
|
var table=document.createElement('div');
|
||||||
|
@ -1634,7 +1633,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
delete _status.cheat_seat;
|
delete _status.cheat_seat;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(stratagemMode){
|
if(stratagemMode){
|
||||||
this.classList.add('bluebg');
|
this.classList.add('bluebg');
|
||||||
|
@ -2803,7 +2801,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
giveup.showGiveup();
|
giveup.showGiveup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
logAi:function(targets,card){
|
logAi:function(targets,card){
|
||||||
if(this.ai.shown==1||this.isMad()) return;
|
if(this.ai.shown==1||this.isMad()) return;
|
||||||
|
@ -2934,7 +2931,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
showIdentity:function(){
|
showIdentity:function(){
|
||||||
this.node.identity.classList.remove('guessing');
|
this.node.identity.classList.remove('guessing');
|
||||||
|
|
|
@ -829,27 +829,27 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
"step 2"
|
"step 2"
|
||||||
var source=player;
|
var source=player;
|
||||||
var name=result.links[0];
|
var name=result.links[0];
|
||||||
var color=source.node.identity.dataset.color;
|
var color=source.node.identity.dataset.color;
|
||||||
|
|
||||||
game.broadcastAll(function(source,name,color){
|
game.broadcastAll(function(source,name,color){
|
||||||
source.revive(null,false);
|
source.revive(null,false);
|
||||||
source.uninit();
|
source.uninit();
|
||||||
source.init(name);
|
source.init(name);
|
||||||
source.node.identity.dataset.color=color;
|
source.node.identity.dataset.color=color;
|
||||||
},source,name,color);
|
},source,name,color);
|
||||||
game.log(source,'出场');
|
game.log(source,'出场');
|
||||||
|
|
||||||
var num=_status.mode == 'normal' ? 4 : source.maxHp;
|
var num=_status.mode == 'normal' ? 4 : source.maxHp;
|
||||||
if(player.hasSkill('cuorui')){
|
if(player.hasSkill('cuorui')){
|
||||||
player.logSkill('cuorui');
|
player.logSkill('cuorui');
|
||||||
num=2+_status.characterChoice[player.identity].length;
|
num=2+_status.characterChoice[player.identity].length;
|
||||||
}
|
}
|
||||||
source.draw(num);
|
source.draw(num);
|
||||||
var evt=event.getParent('dying');
|
var evt=event.getParent('dying');
|
||||||
if(evt&&evt.parent) evt.parent.untrigger(false,source);
|
if(evt&&evt.parent) evt.parent.untrigger(false,source);
|
||||||
game.addVideo('reinit',source,[name,color]);
|
game.addVideo('reinit',source,[name,color]);
|
||||||
game.triggerEnter(source);
|
game.triggerEnter(source);
|
||||||
_status.characterChoice[player.identity].remove(name);
|
_status.characterChoice[player.identity].remove(name);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
logAi:function(targets,card){},
|
logAi:function(targets,card){},
|
||||||
|
|
|
@ -975,7 +975,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
game.resume();
|
game.resume();
|
||||||
game.updateStatusCount();
|
game.updateStatusCount();
|
||||||
},lib.config.duration);
|
},lib.config.duration);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(game.enemy.isDead()){
|
else if(game.enemy.isDead()){
|
||||||
|
@ -8781,7 +8780,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
event.chooser.useCard({name:'sha'},result.targets,false);
|
event.chooser.useCard({name:'sha'},result.targets,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stone_zhucangzhe1:{
|
stone_zhucangzhe1:{
|
||||||
|
@ -9985,7 +9983,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
druid_huwei:'护卫',
|
druid_huwei:'护卫',
|
||||||
druid_huwei_info:'你出场时,己方主将可以选择一项:对一名随从造成1点伤害,或弃置一名随从的所有牌并将其体力上限改为2。',
|
druid_huwei_info:'你出场时,己方主将可以选择一项:对一名随从造成1点伤害,或弃置一名随从的所有牌并将其体力上限改为2。',
|
||||||
|
|
||||||
|
|
||||||
stone_fachao:'法潮图腾',
|
stone_fachao:'法潮图腾',
|
||||||
stone_tutengyongshi:'图腾勇士',
|
stone_tutengyongshi:'图腾勇士',
|
||||||
stone_huoshe:'火舌图腾',
|
stone_huoshe:'火舌图腾',
|
||||||
|
|
|
@ -2489,7 +2489,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
game.friend[i].identity='zhong';
|
game.friend[i].identity='zhong';
|
||||||
game.friend[i].setIdentity(_status.color+'Zhong');
|
game.friend[i].setIdentity(_status.color+'Zhong');
|
||||||
|
|
||||||
}
|
}
|
||||||
if(lib.storage.zhu&&get.distance(game.enemy[i],game.me,'pure')==num){
|
if(lib.storage.zhu&&get.distance(game.enemy[i],game.me,'pure')==num){
|
||||||
game.enemy[i].identity='zhu';
|
game.enemy[i].identity='zhu';
|
||||||
|
@ -3906,9 +3905,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
ui.intro=ui.create.dialog();
|
ui.intro=ui.create.dialog();
|
||||||
ui.intro.source='versusCheckFriend';
|
ui.intro.source='versusCheckFriend';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(_status.friendDied.length){
|
if(_status.friendDied.length){
|
||||||
ui.intro.add('已阵亡');
|
ui.intro.add('已阵亡');
|
||||||
ui.intro.add([_status.friendDied,'character']);
|
ui.intro.add([_status.friendDied,'character']);
|
||||||
|
|
Loading…
Reference in New Issue