diff --git a/game/asset.js b/game/asset.js index d2619ea0f..5dd79477b 100644 --- a/game/asset.js +++ b/game/asset.js @@ -239,6 +239,7 @@ window.noname_asset_list=[ 'image/card/xietianzi.png', 'image/card/xingjiegoutong.png', 'image/card/xingjunyan.png', + 'image/card/xionghuangjiu.png', 'image/card/xixueguizhihuan.png', 'image/card/xuanwuzhihuang.png', 'image/card/xuanyuanjian.png', @@ -279,6 +280,7 @@ window.noname_asset_list=[ 'image/card/zhuquezhizhang.png', 'image/card/zixin.png', 'image/card/ziyangdan.png', + 'image/card/zong.png', 'image/character/baiwuchang.jpg', 'image/character/bulianshi.jpg', 'image/character/buzhi.jpg', diff --git a/game/game.js b/game/game.js index b29386653..4c06fe991 100644 --- a/game/game.js +++ b/game/game.js @@ -8058,7 +8058,7 @@ } }, q:function(){ - if(lib.config.layout!='mobile') lib.init.layout('mobile'); + // if(lib.config.layout!='mobile') lib.init.layout('mobile'); if(arguments.length==0){ var style=ui.css.card_style; if(lib.config.card_style!='simple'){ diff --git a/game/update.js b/game/update.js index 96a9bf97d..60f69176f 100644 --- a/game/update.js +++ b/game/update.js @@ -1,32 +1,33 @@ window.noname_update={ - version:'1.9.28.3', + version:'1.9.29', // update:'1.9.28', changeLog:[ 'bug修复', + '同舟共济(对决->四国)' ], files:[ - 'game/game.js', + // 'game/game.js', // 'game/package.js', // 'game/config.js', // 'game/source.js', // 'game/pressure.js', // 'game/asset.js', - 'card/*', + // 'card/*', // 'card/standard.js', - 'character/*', + // 'character/*', // 'character/rank.js', - 'mode/boss.js', + // 'mode/boss.js', // 'mode/versus.js', // 'mode/guozhan.js', // 'mode/identity.js', - 'mode/chess.js', + // 'mode/chess.js', // 'mode/tafang.js', // 'mode/guozhan.js', // 'mode/stone.js', // 'theme/music/style.css', // 'theme/woodden/style.css', // 'theme/simple/style.css', - 'layout/default/layout.css', + // 'layout/default/layout.css', // 'layout/default/phone.css', // 'layout/default/menu.css', // 'theme/style/cardback/*', diff --git a/image/card/xionghuangjiu.png b/image/card/xionghuangjiu.png new file mode 100644 index 000000000..14b406cf5 Binary files /dev/null and b/image/card/xionghuangjiu.png differ diff --git a/image/card/zong.png b/image/card/zong.png new file mode 100644 index 000000000..4955c873a Binary files /dev/null and b/image/card/zong.png differ diff --git a/mode/versus.js b/mode/versus.js index 39a73ad06..792f6266c 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -32,6 +32,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ lib.characterIntro.boss_duanyuzhongda=lib.characterIntro.simayi; lib.characterIntro.boss_juechenmiaocai=lib.characterIntro.xiahouyuan; } + else if(get.config('versus_mode')=='siguo'){ + lib.cardPack.mode_versus=['zong','xionghuangjiu','tongzhougongji','lizhengshangyou']; + } }, start:function(){ "step 0" @@ -77,6 +80,16 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(_status.mode=='four'&&!get.config('enable_all_cards_four')){ lib.card.list=lib.cardsFour; } + else if(_status.mode=='siguo'){ + for(var i=0;i=2&&target.countCards('h','tao')<=1){ + keep=true; + } + var mode=get.mode(); + if(target.hp>=2&&keep&&target.hasFriend()){ + if(target.hp>2||nd==0) return 0; + if(target.hp==2){ + if(game.hasPlayer(function(current){ + if(target!=current&&get.attitude(target,current)>=3){ + if(current.hp<=1) return true; + } + })){ + return 0; + } + } + } + return 2; + }, + }, + tag:{ + recover:1, + save:1, + } + } + }, + xionghuangjiu:{ + fullskin:true, + type:"basic", + enable:function(event,player){ + return !player.hasSkill('jiu')&&!player.hasSkill('xionghuangjiu'); + }, + lianheng:true, + logv:false, + savable:function(card,player,dying){ + return dying==player; + }, + usable:1, + selectTarget:-1, + modTarget:true, + filterTarget:function(card,player,target){ + return target==player; + }, + content:function(){ + if(target.isDying()){ + target.recover(); + if(_status.currentPhase==target){ + target.getStat().card.jiu--; + } + } + else{ + if(cards&&cards.length){ + card=cards[0]; + } + game.broadcastAll(function(target,card,gain2){ + if(get.population(target.side)==1){ + target.addSkill('xionghuangjiu'); + } + else{ + target.addSkill('jiu'); + } + if(!target.node.jiu&&lib.config.jiu_effect){ + target.node.jiu=ui.create.div('.playerjiu',target.node.avatar); + target.node.jiu2=ui.create.div('.playerjiu',target.node.avatar2); + } + if(gain2&&card.clone&&(card.clone.parentNode==target.parentNode||card.clone.parentNode==ui.arena)){ + card.clone.moveDelete(target); + } + },target,card,target==targets[0]); + if(target==targets[0]){ + if(card.clone&&(card.clone.parentNode==target.parentNode||card.clone.parentNode==ui.arena)){ + game.addVideo('gain2',target,get.cardsInfo([card])); + } + } + } + }, + ai:{ + basic:{ + useful:function(card,i){ + if(_status.event.player.hp>1){ + if(i==0) return 5; + return 1; + } + if(i==0) return 7.3; + return 3; + }, + value:function(card,player,i){ + if(player.hp>1){ + if(i==0) return 5; + return 1; + } + if(i==0) return 7.3; + return 3; + }, + }, + order:function(){ + return get.order({name:'sha'})+0.2; + }, + result:{ + target:function(player,target){ + if(target&&target.isDying()) return 2; + if(lib.config.mode=='stone'&&!player.isMin()){ + if(player.getActCount()+1>=player.actcount) return 0; + } + var shas=player.getCards('h','sha'); + if(shas.length>1&&player.getCardUsable('sha')>1){ + return 0; + } + var card; + if(shas.length){ + for(var i=0;i0); + })){ + return 1; + } + } + return 0; + }, + }, + tag:{ + save:1 + } + } + }, + tongzhougongji:{ + fullskin:true, + cardimage:'lulitongxin', + notarget:true, + enable:true, + type:'trick', + content:function(){ + 'step 0' + var num=0; + for(var i=0;i2){ + return 0; + } + if(num==2&&get.population(player.side)==1){ + return 0; + } + return 1; + }).set('choiceList',[ + '摸'+get.cnNumber(num)+'张牌', + '你和队友各摸一张牌' + ]); + event.num=num; + 'step 1' + if(result.index==0){ + if(event.num){ + player.draw(event.num); + } + } + else{ + if(event.friend){ + player.line(event.friend); + game.asyncDraw([player,event.friend]); + } + else{ + player.draw(); + } + } + }, + ai:{ + basic:{ + order:7.2, + useful:4, + value:9.2 + }, + result:{ + target:2, + }, + tag:{ + draw:1 + } + } + }, + lizhengshangyou:{ + fullskin:true, + cardimage:'lianjunshengyan', + type:'trick', + enable:true, + selectTarget:-1, + reverseOrder:true, + filterTarget:function(card,player,target){ + for(var i=0;i