diff --git a/audio/skill/hongyuan1.mp3 b/audio/skill/hongyuan1.mp3 new file mode 100644 index 000000000..192f25f62 Binary files /dev/null and b/audio/skill/hongyuan1.mp3 differ diff --git a/audio/skill/hongyuan2.mp3 b/audio/skill/hongyuan2.mp3 new file mode 100644 index 000000000..3ab36fc2a Binary files /dev/null and b/audio/skill/hongyuan2.mp3 differ diff --git a/character/diy.js b/character/diy.js index 088ea8c4a..a16825ea3 100755 --- a/character/diy.js +++ b/character/diy.js @@ -433,76 +433,6 @@ character.diy={ player.draw(); }, }, - diyleiji:{ - audio:2, - trigger:{player:'respond'}, - filter:function(event,player){ - return event.card.name=='shan'; - }, - direct:true, - content:function(){ - "step 0"; - player.chooseTarget('是否发动新雷击?').ai=function(target){ - return ai.get.damageEffect(target,player,player,'thunder'); - }; - "step 1" - if(result.bool){ - player.logSkill('diyleiji',result.targets,'thunder'); - event.target=result.targets[0]; - event.target.judge(function(card){ - var suit=get.suit(card); - if(suit=='spade') return -4; - if(suit=='club') return -2; - return 0; - }); - } - else{ - event.finish(); - } - "step 2" - if(result.suit=='club'){ - event.target.damage('thunder'); - player.recover(); - } - else if(result.suit=='spade'){ - event.target.damage(2,'thunder'); - } - }, - ai:{ - effect:{ - target:function(card,player,target,current){ - if(get.tag(card,'respondShan')){ - var hastarget=false; - for(var i=0;i2){ - if(!target.skills.contains('guidao')) return 0; - return [0,hastarget?target.num('h')/4:0]; - } - if(target.num('h')>3||(be&&target.num('h')>=2)){ - return [0,0]; - } - if(target.num('h')==0){ - return [1.5,0]; - } - if(target.num('h')==1&&!be){ - return [1.2,0]; - } - if(!target.skills.contains('guidao')) return [1,0.05]; - return [1,Math.min(0.5,(target.num('h')+be)/4)]; - } - } - } - } - }, xicai:{ inherit:'jianxiong' }, @@ -731,7 +661,6 @@ character.diy={ diy_menghuo:'孟获', diy_huangzhong:'黄忠', diy_xuhuang:'徐晃', - diy_zhangjiao:'张角', diy_dianwei:'典韦', diy_weiyan:'魏延', xicai:'惜才', @@ -754,9 +683,6 @@ character.diy={ diy_liuyan:'刘焉', juedao:'绝道', geju:'割据', - diyleiji:'雷击', - tiangong:'天公', - tiangong2:'天公', shaoying:'烧营', zonghuo:'纵火', diychanyuan:'缠怨', @@ -793,8 +719,6 @@ character.diy={ diychanyuan_info:'锁定技,杀死你的角色失去一点体力上限', zonghuo_info:'你可弃置一张牌将你即将造成的伤害变为火焰伤害', shaoying_info:'每当你造成一次火焰伤害,可指定距离受伤害角色1以内的另一名角色,并展示牌堆顶的一张牌,若此牌为红色,该角色受到一点火焰伤害', - tiangong_info:'锁定技,你防止即将受到的雷电伤害,每当你造成一次雷电伤害,你摸一张牌', - diyleiji_info:'每当你使用或打出一张【闪】,可令任意一名角色进行一次判定,若结果为梅花,其受到一点雷电伤害,然后你回复一点体力;若结果为黑桃,其受到两点雷电伤害', juedao_info:'出牌阶段,你可以弃置一张手牌,横置你的武将牌;锁定技,若你处于连环状态,你与其他角色的距离、其他角色与你的距离各+1。', geju_info:'准备阶段开始时,你可以摸X张牌(X为攻击范围内不含有你的势力数)。', siji_info:'弃牌阶段结束后,你可以摸2X张牌(X为你于此阶段内弃置的【杀】的数量)。', diff --git a/character/rank.js b/character/rank.js index b7ac971fc..7fdfc50e9 100644 --- a/character/rank.js +++ b/character/rank.js @@ -271,7 +271,7 @@ window.characterRank={ 'huatuo', 'swd_luchengxuan', 'swd_moye', - 'diy_zhangjiao', + 'sp_zhangjiao', 'dongzhuo', 'niutou', 'fazheng', diff --git a/character/sp.js b/character/sp.js index e8663feb2..70bb16e72 100755 --- a/character/sp.js +++ b/character/sp.js @@ -2452,6 +2452,7 @@ character.sp={ hongyuan:{ trigger:{player:'phaseDrawBegin'}, direct:true, + audio:2, content:function(){ "step 0" var check; diff --git a/character/wind.js b/character/wind.js index 23ba471c6..9188b4450 100755 --- a/character/wind.js +++ b/character/wind.js @@ -8,11 +8,82 @@ character.wind={ xiaoqiao:['female','wu',3,['tianxiang','hongyan']], zhoutai:['male','wu',4,['buqu','fenji']], zhangjiao:['male','qun',3,['leiji','guidao','huangtian'],['zhu']], - diy_zhangjiao:['male','qun',3,['diyleiji','guidao','huangtian'],['zhu']], + sp_zhangjiao:['male','qun',3,['diyleiji','guidao','huangtian'],['zhu']], // spzhangjiao:['male','qun',3,['spleiji','guidao','huangtian'],['zhu']], // yuji:['male','qun',3,['guhuo']], }, skill:{ + + diyleiji:{ + audio:2, + trigger:{player:'respond'}, + filter:function(event,player){ + return event.card.name=='shan'; + }, + direct:true, + content:function(){ + "step 0"; + player.chooseTarget('是否发动新雷击?').ai=function(target){ + return ai.get.damageEffect(target,player,player,'thunder'); + }; + "step 1" + if(result.bool){ + player.logSkill('diyleiji',result.targets,'thunder'); + event.target=result.targets[0]; + event.target.judge(function(card){ + var suit=get.suit(card); + if(suit=='spade') return -4; + if(suit=='club') return -2; + return 0; + }); + } + else{ + event.finish(); + } + "step 2" + if(result.suit=='club'){ + event.target.damage('thunder'); + player.recover(); + } + else if(result.suit=='spade'){ + event.target.damage(2,'thunder'); + } + }, + ai:{ + effect:{ + target:function(card,player,target,current){ + if(get.tag(card,'respondShan')){ + var hastarget=false; + for(var i=0;i2){ + if(!target.skills.contains('guidao')) return 0; + return [0,hastarget?target.num('h')/4:0]; + } + if(target.num('h')>3||(be&&target.num('h')>=2)){ + return [0,0]; + } + if(target.num('h')==0){ + return [1.5,0]; + } + if(target.num('h')==1&&!be){ + return [1.2,0]; + } + if(!target.skills.contains('guidao')) return [1,0.05]; + return [1,Math.min(0.5,(target.num('h')+be)/4)]; + } + } + } + } + }, shensu:{ group:['shensu1','shensu2'] }, @@ -435,6 +506,7 @@ character.wind={ xiahouyuan:'夏侯渊', caoren:'曹仁', huangzhong:'黄忠', + sp_zhangjiao:'张角', weiyan:'魏延', xiaoqiao:'小乔', zhoutai:'周泰', @@ -457,6 +529,11 @@ character.wind={ huangtian2:'黄天', guhuo:'蛊惑', fenji:'奋激', + diyleiji:'雷击', + diyleiji_info:'每当你使用或打出一张【闪】,可令任意一名角色进行一次判定,若结果为梅花,其受到一点雷电伤害,然后你回复一点体力;若结果为黑桃,其受到两点雷电伤害', + tiangong:'天公', + tiangong2:'天公', + tiangong_info:'锁定技,你防止即将受到的雷电伤害,每当你造成一次雷电伤害,你摸一张牌', shensu_info: '你可以跳过摸牌阶段,或跳过出牌阶段并弃置一张装备牌,'+ '若如此则视为对任意一名使用一张【杀】', diff --git a/game/game.js b/game/game.js index 4464c8927..9cb56f0e9 100755 --- a/game/game.js +++ b/game/game.js @@ -13001,7 +13001,9 @@ }; for(var i in lib.mode){ - createModeConfig(i,start.firstChild); + if(lib.config.all.mode.contains(i)){ + createModeConfig(i,start.firstChild); + } } var active=start.firstChild.querySelector('.active'); if(!active){ @@ -18593,7 +18595,7 @@ cheat.z('liushan'); }, zj:function(){ - cheat.z('diy_zhangjiao'); + cheat.z('sp_zhangjiao'); }, sc:function(){ cheat.z('sunce'); diff --git a/image/character/diy_liuzan.jpg b/image/character/diy_liuzan.jpg deleted file mode 100644 index 3bca7651a..000000000 Binary files a/image/character/diy_liuzan.jpg and /dev/null differ diff --git a/image/character/diy_tianyu.jpg b/image/character/diy_tianyu.jpg deleted file mode 100644 index f328f7369..000000000 Binary files a/image/character/diy_tianyu.jpg and /dev/null differ diff --git a/image/character/diy_xizhenxihong.jpg b/image/character/diy_xizhenxihong.jpg deleted file mode 100644 index 78bcbf8cc..000000000 Binary files a/image/character/diy_xizhenxihong.jpg and /dev/null differ diff --git a/image/character/diy_yangyi.jpg b/image/character/diy_yangyi.jpg deleted file mode 100644 index 5179c8297..000000000 Binary files a/image/character/diy_yangyi.jpg and /dev/null differ diff --git a/image/character/diy_zaozhirenjun.jpg b/image/character/diy_zaozhirenjun.jpg deleted file mode 100644 index 9fbff353c..000000000 Binary files a/image/character/diy_zaozhirenjun.jpg and /dev/null differ diff --git a/image/character/diy_zhangjiao3.jpg b/image/character/diy_zhangjiao3.jpg deleted file mode 100644 index 1cbc8c709..000000000 Binary files a/image/character/diy_zhangjiao3.jpg and /dev/null differ diff --git a/image/character/diy_zhangjiao.jpg b/image/character/sp_zhangjiao.jpg similarity index 100% rename from image/character/diy_zhangjiao.jpg rename to image/character/sp_zhangjiao.jpg diff --git a/image/skin/diy_zhangjiao/1.jpg b/image/skin/sp_zhangjiao/1.jpg similarity index 100% rename from image/skin/diy_zhangjiao/1.jpg rename to image/skin/sp_zhangjiao/1.jpg diff --git a/manifest.json b/manifest.json index 933ea5669..a89d07403 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "noname", - "xwalk_version": "1.6.1", + "xwalk_version": "1.6.2", "start_url": "index.html", "icons": [ { diff --git a/mode/identity.js b/mode/identity.js index 7ca078ae9..67e31927d 100755 --- a/mode/identity.js +++ b/mode/identity.js @@ -238,7 +238,7 @@ mode.identity={ case 'liubei':skill='jizhen';break; case 'dongzhuo':skill='hengzheng';break; case 'sunquan':skill='batu';break; - case 'diy_zhangjiao':skill='tiangong';break; + case 'sp_zhangjiao':skill='tiangong';break; case 'liushan':skill='shengxi';break; case 'sunce':skill='ciqiu';break; case 'yuanshao':skill='geju';break; diff --git a/package.json b/package.json index 9554762ac..111dcec13 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name" : "无名杀", - "version" : "1.6.1", + "version" : "1.6.2", "main" : "main.js" }