diff --git a/game/game.js b/game/game.js index a8e40cfc6..4f19504ff 100755 --- a/game/game.js +++ b/game/game.js @@ -7799,6 +7799,7 @@ for(var i in player.tempSkills){ player.removeSkill(i); } + player.clearEquipTrigger(); // for(var i in lib.skill.globalmap){ // if(lib.skill.globalmap[i].contains(player)){ // lib.skill.globalmap[i].remove(player); @@ -9997,8 +9998,8 @@ next.setContent('die'); return next; }, - revive:function(hp){ - game.log(this,'复活'); + revive:function(hp,log){ + if(log!==false) game.log(this,'复活'); if(this.maxHp<1) this.maxHp=1; if(hp) this.hp=hp; else{ @@ -10850,7 +10851,7 @@ var roles=['player','source','target']; for(var i=0;i'+active.nodes[1].innerHTML+''); + var ul=uiintro.querySelector('ul'); + if(ul){ + ul.style.width='180px'; + } + uiintro.add(ui.create.div('.placeholder')); + return uiintro; + },250); + _status.brawl=info.content; + game.switchMode(info.mode); + if(info.init){ + info.init(); + } + } + }); + start.style.position='absolute'; + start.style.left='auto'; + start.style.right='10px'; + start.style.top='auto'; + start.style.bottom='10px'; + start.style.width='80px'; + start.style.height='80px'; + start.style.lineHeight='80px'; + start.style.fontSize='72px'; + start.style.zIndex=2; }, game:{ + }, + brawl:{ + duzhansanguo:{ + name:'毒战三国', + mode:'identity', + intro:'牌堆中额外添加10%的毒', + showcase:function(){ + var node=this; + node.nodes=node.nodes||[]; + node.showcaseinterval=setInterval(function(){ + var card=game.createCard('du'); + node.nodes.push(card); + card.style.position='absolute'; + var rand1=Math.round(Math.random()*100); + var rand2=Math.round(Math.random()*100); + card.style.left='calc('+rand1+'% - '+rand1+'px)'; + card.style.top='calc('+rand2+'% - '+rand2+'px)'; + card.style.transform='rotate('+Math.round(Math.random()*360)+'deg)'; + card.style.opacity=0; + node.appendChild(card); + ui.refresh(card); + card.style.opacity=1; + if(node.nodes.length>7){ + setTimeout(function(){ + while(node.nodes.length>5){ + node.nodes.shift().delete(); + } + },500); + } + },1000); + }, + content:{ + cardPile:function(list){ + var num=Math.ceil(list.length/10); + while(num--){ + list.push([['heart','diamond','club','spade'].randomGet(),Math.ceil(Math.random()*13),'du']); + } + return list; + } + }, + }, + daozhiyueying:{ + name:'导师月英', + mode:'identity', + intro:'牌堆中所有非延时锦囊牌数量翻倍;移除拥有集智技能的角色', + showcase:function(init){ + var node=this; + var player1,player2; + if(init){ + player1=ui.create.player().init('huangyueying'); + player2=ui.create.player().init('re_huangyueying'); + player1.style.left='20px'; + player1.style.top='20px'; + player1.style.transform='scale(0.9)'; + player1.node.count.remove(); + player2.style.left='auto'; + player2.style.right='20px'; + player2.style.top='20px'; + player2.style.transform='scale(0.9)'; + player2.node.count.remove(); + this.appendChild(player1); + this.appendChild(player2); + this.player1=player1; + this.player2=player2; + } + else{ + player1=this.player1; + player2=this.player2; + } + var rect1=player1.getBoundingClientRect(); + var rect2=player2.getBoundingClientRect(); + var left1=rect1.left+rect1.width/2-ui.arena.offsetLeft; + var left2=rect2.left+rect2.width/2-ui.arena.offsetLeft; + var top1=rect1.top+rect1.height/2-ui.arena.offsetTop; + var top2=rect2.top+rect2.height/2-ui.arena.offsetTop; + node.showcaseinterval=setInterval(function(){ + game.linexy([left1,top1,left2,top2]); + },1000); + }, + init:function(){ + for(var i in lib.character){ + var skills=lib.character[i][3] + if(skills.contains('jizhi')||skills.contains('rejizhi')||skills.contains('lingzhou')){ + delete lib.character[i]; + } + } + }, + content:{ + cardPile:function(list){ + var list2=[]; + for(var i=0;i=4){ @@ -2469,7 +2469,7 @@ mode.versus={ "step 1" _status.friend.remove(event.character); _status.enemy.remove(event.character); - source.revive(); + source.revive(null,false); game.additionaldead.push({ name:source.name, stat:source.stat @@ -2477,6 +2477,7 @@ mode.versus={ game.addVideo('reinit',source,[event.character,get.translation(source.side+'Color')]); source.uninit(); source.init(event.character); + game.log(source,'出场'); source.node.identity.dataset.color=get.translation(source.side+'Color'); source.draw(4); _status.event.parent.parent.parent.untrigger(false,source); @@ -2599,7 +2600,7 @@ mode.versus={ game.broadcastAll(function(source,name,color){ _status.friend.remove(name); _status.enemy.remove(name); - source.revive(); + source.revive(null,false); source.uninit(); source.init(name); source.node.identity.dataset.color=color; @@ -2607,6 +2608,7 @@ mode.versus={ ui.arena.classList.remove('selecting'); } },source,name,color); + game.log(source,'出场'); source.draw(4); _status.event.parent.parent.parent.untrigger(false,source);