This commit is contained in:
libccy 2016-06-10 23:45:51 +08:00
parent 58890d9635
commit 927e4fca18
6 changed files with 130 additions and 37 deletions

View File

@ -703,7 +703,7 @@ card.swd={
trigger:{source:'damageBegin'}, trigger:{source:'damageBegin'},
forced:true, forced:true,
filter:function(event){ filter:function(event){
return event.nature=='fire'; return event.nature=='fire'&&event.notLink();
}, },
content:function(){ content:function(){
trigger.num++; trigger.num++;

View File

@ -183,7 +183,7 @@ character.ow={
trigger:{player:'phaseEnd'}, trigger:{player:'phaseEnd'},
forced:true, forced:true,
filter:function(event,player){ filter:function(event,player){
return player.storage.xie%2==1; return player.storage.xie%2==1&&player.hp<player.maxHp;
}, },
content:function(){ content:function(){
player.recover(); player.recover();
@ -609,6 +609,7 @@ character.ow={
filterCard:true, filterCard:true,
selectCard:function(){ selectCard:function(){
if(_status.event.player.storage.yuedong_eff) return 1; if(_status.event.player.storage.yuedong_eff) return 1;
if(_status.event.player.storage.yuedong_num) return 2;
return [1,2]; return [1,2];
}, },
position:'he', position:'he',
@ -676,6 +677,7 @@ character.ow={
guangshu:{ guangshu:{
enable:'phaseUse', enable:'phaseUse',
check:function(card){ check:function(card){
var player=_status.event.player;
var suit=get.suit(card); var suit=get.suit(card);
if(suit=='heart'){ if(suit=='heart'){
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){

View File

@ -16,6 +16,7 @@ window.characterRank={
'pal_liumengli', 'pal_liumengli',
], ],
ap:[ ap:[
'ow_yuanshi',
'swd_xuanyuanjianxian', 'swd_xuanyuanjianxian',
'swd_yuwentuo', 'swd_yuwentuo',
'pal_xuanxiao', 'pal_xuanxiao',
@ -51,8 +52,11 @@ window.characterRank={
'hs_xsylvanas', 'hs_xsylvanas',
'hs_malygos', 'hs_malygos',
'hs_alakir', 'hs_alakir',
'ow_luxiao',
], ],
a:[ a:[
'sundeng',
'hs_xialikeer',
'hs_sainaliusi', 'hs_sainaliusi',
'hs_lrhonin', 'hs_lrhonin',
'hs_ysera', 'hs_ysera',
@ -99,10 +103,19 @@ window.characterRank={
'yxs_guiguzi', 'yxs_guiguzi',
'hs_shanlingjuren', 'hs_shanlingjuren',
'hs_tgolem', 'hs_tgolem',
'zhangrang',
], ],
am:[ am:[
'guohuanghou',
'sunziliufang',
'hs_blingtron',
'ow_shibing',
'hs_kcthun',
'ow_tianshi',
'ow_zhixuzhiguang',
'ow_chanyata',
'ow_falaozhiying',
'hs_bolvar', 'hs_bolvar',
'hs_lafamu',
'lifeng', 'lifeng',
'hs_fuding', 'hs_fuding',
'zhugeguo', 'zhugeguo',
@ -174,8 +187,22 @@ window.characterRank={
'swd_xiyan', 'swd_xiyan',
'hs_jiaziruila', 'hs_jiaziruila',
'hs_brann', 'hs_brann',
're_liubei',
'ow_liekong',
'liyan',
], ],
bp:[ bp:[
'liuyu',
'chess_zhangliao',
'chess_sunshangxiang',
'chess_huangzhong',
'chess_taishici',
'chess_diaochan',
'cenhun',
'huanghao',
'chengyu',
'guansuo',
'ow_sishen',
'hs_hudunren', 'hs_hudunren',
'hs_nate', 'hs_nate',
'hs_finley', 'hs_finley',
@ -285,9 +312,13 @@ window.characterRank={
'hs_lreno', 'hs_lreno',
'hs_zhouzhuo', 'hs_zhouzhuo',
'hs_liadrin', 'hs_liadrin',
'hs_anomalus',
'yanbaihu',
], ],
b:[ b:[
'xin_liru',
'sp_xiahoudun', 'sp_xiahoudun',
'hs_lafamu',
'jsp_huangyueying', 'jsp_huangyueying',
'cuiyan', 'cuiyan',
'sp_zhangfei', 'sp_zhangfei',
@ -363,8 +394,10 @@ window.characterRank={
'lingju', 'lingju',
're_ganning', 're_ganning',
'xin_yujin', 'xin_yujin',
'hs_yogg',
], ],
bm:[ bm:[
'tadun',
'guohuai', 'guohuai',
'diy_feishi', 'diy_feishi',
'sunluban', 'sunluban',

View File

@ -4784,7 +4784,7 @@
} }
if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){ if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){
var tw=event.getTrigger().parent; var tw=event.getTrigger().parent;
if(tw.player==player&&tw.targets&&tw.targets.length==1){ if(tw.player.isUnderControl(true)&&tw.targets&&tw.targets.length==1){
event.result={ event.result={
bool:false bool:false
} }

View File

@ -1,32 +1,16 @@
window.noname_update={ window.noname_update={
version:'1.8.15', version:'1.8.16',
changeLog:[ changeLog:[
'修bug', '修bug',
'新武将'
], ],
files:{ files:{
global:[ global:[
'character/rank.js',
'character/ow.js', 'character/ow.js',
'character/swd.js', 'mode/chess.js',
'character/gujian.js',
'character/hearth.js',
'character/yijiang.js',
'character/yxs.js',
'character/boss.js',
'character/shenhua.js',
'character/sp.js',
'card/swd.js',
'card/hearth.js',
'card/shenqi.js',
'card/guozhan.js',
'game/package.js',
'game/game.js', 'game/game.js',
'game/source.js', 'card/swd.js',
'game/asset.js',
'image/card/fengxueren.png',
'layout/default/layout.css'
], ],
'1.8.14.2':[],
'1.8.15':[] '1.8.15':[]
} }
} }

View File

@ -40,10 +40,10 @@ mode.chess={
} }
if(get.config('chess_card')){ if(get.config('chess_card')){
lib.card.list=lib.card.list.concat(lib.chess_cardlist); lib.card.list=lib.card.list.concat(lib.chess_cardlist);
} if(parseFloat(get.config('chess_obstacle'))>0&&_status.mode!='tafang'){
if(parseFloat(get.config('chess_obstacle'))>0&&_status.mode!='tafang'){ lib.card.list=lib.card.list.concat(lib.chess_obstaclelist);
lib.card.list=lib.card.list.concat(lib.chess_obstaclelist); delete lib.chess_obstaclelist
delete lib.chess_obstaclelist }
} }
ui.create.cards(); ui.create.cards();
game.finishCards(); game.finishCards();
@ -4126,7 +4126,9 @@ mode.chess={
ui.control.style.top=''; ui.control.style.top='';
ui.control.style.transition=''; ui.control.style.transition='';
for(var i=0;i<result.links.length;i++){
game.addRecentCharacter(result.links[i]);
}
if(_status.mode=='combat'){ if(_status.mode=='combat'){
_status.mylist=result.links.slice(0,parseInt(get.config('battle_number'))); _status.mylist=result.links.slice(0,parseInt(get.config('battle_number')));
_status.replacelist=result.links.slice(parseInt(get.config('battle_number'))); _status.replacelist=result.links.slice(parseInt(get.config('battle_number')));
@ -6234,13 +6236,13 @@ mode.chess={
}, },
chess_cardlist:[], chess_cardlist:[],
chess_obstaclelist:[ chess_obstaclelist:[
['club',3,'chess_shezhang'], // ['club',3,'chess_shezhang'],
['spade',5,'chess_shezhang'], // ['spade',5,'chess_shezhang'],
['spade',7,'chess_shezhang'], // ['spade',7,'chess_shezhang'],
['diamond',1,'chess_chuzhang'], // ['diamond',1,'chess_chuzhang'],
['diamond',4,'chess_chuzhang'], // ['diamond',4,'chess_chuzhang'],
['heart',8,'chess_chuzhang'], // ['heart',8,'chess_chuzhang'],
// ['diamond',9,'chess_chuzhang'], // // ['diamond',9,'chess_chuzhang'],
], ],
rank:{ rank:{
rarity:{ rarity:{
@ -6273,7 +6275,6 @@ mode.chess={
'swd_murongshi', 'swd_murongshi',
'shen_lvmeng', 'shen_lvmeng',
'chenlin', 'chenlin',
'hs_zhouzhuo',
'diy_caiwenji', 'diy_caiwenji',
're_luxun', 're_luxun',
'shen_zhaoyun', 'shen_zhaoyun',
@ -6282,8 +6283,24 @@ mode.chess={
'shen_simayi', 'shen_simayi',
'shen_guanyu', 'shen_guanyu',
'hs_siwangzhiyi', 'hs_siwangzhiyi',
'chengyu',
'yangxiu',
'hs_yogg',
'hs_malygos',
'hs_ysera',
'hanba',
], ],
epic:[ epic:[
'lingju',
'daxiaoqiao',
'sunxiu',
'swd_weida',
'swd_lilian',
'yxs_luban',
'hs_alextrasza',
'zhugeguo',
'sp_caiwenji',
'ow_yuanshi',
'xk_fujianhan', 'xk_fujianhan',
'diy_zhenji', 'diy_zhenji',
'swd_jipeng', 'swd_jipeng',
@ -6333,8 +6350,64 @@ mode.chess={
'gjqt_fanglansheng', 'gjqt_fanglansheng',
'swd_qiner', 'swd_qiner',
'hs_xsylvanas', 'hs_xsylvanas',
'zhongyao',
'hs_blingtron',
'hs_fuding',
'shixie',
'hs_lafamu',
'hs_nozdormu',
'ow_tianshi',
'yxs_guiguzi',
'ow_zhixuzhiguang',
'hs_jiaziruila',
'hs_yelise',
'hs_xuefashi',
'hs_liadrin',
'yxs_libai',
], ],
rare:[ rare:[
'sunluban',
'sunluyu',
'zhangliang',
'zhangbao',
'sp_zhangjiao',
'swd_xiyan',
'sunluban',
'ow_falaozhiying',
'yxs_kaisa',
'yxs_napolun',
'hs_nate',
'yxs_jinke',
'yxs_yuefei',
'guyong',
'hs_anomalus',
'hs_jinglinglong',
'jiangqing',
'mayunlu',
're_liubei',
're_lidian',
'hs_alleria',
'jsp_huangyueying',
'hs_lreno',
'hs_zhouzhuo',
'cenhun',
'hs_loatheb',
'sunziliufang',
'hs_finley',
'ow_chanyata',
'yxs_huamulan',
'cuiyan',
'wangji',
'xin_liru',
'swd_quxian',
'caorui',
'ow_liekong',
'ow_zhixuzhiguang',
'lifeng',
'sundeng',
'hs_xialikeer',
'hs_sainaliusi',
'hs_lrhonin',
'yxs_diaochan', 'yxs_diaochan',
'hs_anduin', 'hs_anduin',
'swd_hengai', 'swd_hengai',
@ -6349,6 +6422,7 @@ mode.chess={
'diy_yuji', 'diy_yuji',
're_zhangliao', 're_zhangliao',
'caoang', 'caoang',
'hs_zhishigushu',
'pal_jingtian', 'pal_jingtian',
'swd_shanxiaoxiao', 'swd_shanxiaoxiao',
'yxs_caocao', 'yxs_caocao',