From 2cd6ea8592501cb9a33062e91297e7abca2d2c3e Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 5 Oct 2016 14:03:57 +0800 Subject: [PATCH] b --- character/yxs.js | 45 +++++++++- game/update.js | 1 + mode/brawl.js | 215 +++++++++++++++++++++++++++++++++-------------- 3 files changed, 198 insertions(+), 63 deletions(-) diff --git a/character/yxs.js b/character/yxs.js index fd2f38944..bc7d18842 100644 --- a/character/yxs.js +++ b/character/yxs.js @@ -1980,7 +1980,50 @@ character.yxs={ } }, zhexian:{ - inherit:'niepan', + unique:true, + enable:'chooseToUse', + mark:true, + skillAnimation:true, + animationStr:'谪仙', + animationColor:'metal', + init:function(player){ + player.storage.zhexian=false; + }, + filter:function(event,player){ + if(event.type!='dying') return false; + if(player!=event.dying) return false; + if(player.storage.zhexian) return false; + return true; + }, + content:function(){ + 'step 0' + player.hp=Math.min(3,player.maxHp); + player.discard(player.get('hej')); + player.draw(3); + player.unmarkSkill('zhexian'); + player.storage.zhexian=true; + 'step 1' + if(player.isLinked()) player.link(); + 'step 2' + if(player.isTurnedOver()) player.turnOver(); + }, + ai:{ + order:1, + skillTagFilter:function(player){ + if(player.storage.zhexian) return false; + if(player.hp>0) return false; + }, + save:true, + result:{ + player:10 + }, + threaten:function(player,target){ + if(!target.storage.zhexian) return 0.6; + } + }, + intro:{ + content:'limited' + } }, guifu:{ enable:'phaseUse', diff --git a/game/update.js b/game/update.js index bf14be295..0b3f98004 100644 --- a/game/update.js +++ b/game/update.js @@ -33,6 +33,7 @@ window.noname_update={ // 'character/shenhua.js', // 'character/ow.js', // 'character/yijiang.js', +// 'character/yxs.js', // 'mode/boss.js', // 'mode/versus.js', // 'mode/brawl.js', diff --git a/mode/brawl.js b/mode/brawl.js index 200aa123b..28d4cc104 100644 --- a/mode/brawl.js +++ b/mode/brawl.js @@ -1,9 +1,13 @@ 'use strict'; mode.brawl={ start:function(){ + ui.auto.hide(); if(!lib.storage.scene){ lib.storage.scene={}; } + if(!lib.storage.stage){ + lib.storage.stage={}; + } var dialog=ui.create.dialog('hidden'); dialog.classList.add('fixed'); dialog.classList.add('scroll1'); @@ -63,20 +67,32 @@ mode.brawl={ var node=ui.create.div('.dialogbutton.menubutton.large',info.name,packnode,clickCapt); node.style.transition='all 0s'; var caption=info.name; - var modeinfo=get.translation(info.mode)+'模式'; + var modeinfo=''; + if(info.mode){ + modeinfo=get.translation(info.mode)+'模式'; + } if(info.submode){ - modeinfo+=' - '+info.submode; + if(modeinfo){ + modeinfo+=' - '; + } + modeinfo+=info.submode; } var intro; if(Array.isArray(info.intro)){ intro='