diff --git a/card/extra.js b/card/extra.js index 1c448da2b..0ab1ab688 100644 --- a/card/extra.js +++ b/card/extra.js @@ -1,4 +1,6 @@ -card.extra={ +'use strict'; +game.import('card',{ + name:'extra', connect:true, card:{ jiu:{ @@ -57,7 +59,7 @@ card.extra={ if(i==0) return 7.3; return 3; }, - value:function(card,player){ + value:function(card,player,i){ if(player.hp>1){ if(i==0) return 5; return 1; @@ -600,4 +602,4 @@ card.extra={ ["spade",10,"bingliang"], ["club",4,"bingliang"], ], -} +}); diff --git a/card/gujian.js b/card/gujian.js index 16d86c82d..e9570193a 100644 --- a/card/gujian.js +++ b/card/gujian.js @@ -1,5 +1,6 @@ 'use strict'; -card.gujian={ +game.import('card',{ + name:'gujian', card:{ luyugeng:{ fullskin:true, @@ -1685,4 +1686,4 @@ card.gujian={ ['club',3,'liufengsan'], ] -}; +}); diff --git a/card/guozhan.js b/card/guozhan.js index 3718e2c2f..68b1f6609 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -1,5 +1,6 @@ 'use strict'; -card.guozhan={ +game.import('card',{ + name:'guozhan', connect:true, card:{ feilongduofeng:{ @@ -1184,4 +1185,4 @@ card.guozhan={ ['diamond',4,'xietianzi'], ['club',1,'yuxi'], ], -} +}); diff --git a/card/hearth.js b/card/hearth.js index a83d83274..ab9ec9f0b 100644 --- a/card/hearth.js +++ b/card/hearth.js @@ -1,5 +1,6 @@ 'use strict'; -card.hearth={ +game.import('card',{ + name:'hearth', card:{ linghunzhihuo:{ fullskin:true, @@ -714,4 +715,4 @@ card.hearth={ ['diamond',2,'jihuocard'], ['diamond',1,'linghunzhihuo'], ], -} +}); diff --git a/card/sp.js b/card/sp.js index 55c99b542..2708a13fd 100644 --- a/card/sp.js +++ b/card/sp.js @@ -1,5 +1,6 @@ 'use strict'; -card.sp={ +game.import('card',{ + name:'sp', connect:true, card:{ jinchan:{ @@ -977,4 +978,4 @@ card.sp={ ["spade",2,'lanyinjia'], ["club",2,'lanyinjia'], ], -} +}); diff --git a/card/standard.js b/card/standard.js index 4c562bd25..8e2d0ea8c 100644 --- a/card/standard.js +++ b/card/standard.js @@ -1,5 +1,6 @@ 'use strict'; -card.standard={ +game.import('card',{ + name:'standard', connect:true, card:{ damage:{ @@ -218,8 +219,8 @@ card.standard={ if(player.hasSkillTag('pretao')) return 5; return 2; }, - useful:[8,6.5], - value:[8,6.5], + useful:[8,6.5,5,4], + value:[8,6.5,5,4], }, result:{ target:function(player,target){ @@ -2010,4 +2011,4 @@ card.standard={ ["heart",12,'shandian','thunder'], ["diamond",12,'wuxie'], ], -} +}); diff --git a/card/swd.js b/card/swd.js index eada96a3a..988e0a3e2 100644 --- a/card/swd.js +++ b/card/swd.js @@ -1,4 +1,6 @@ -card.swd={ +'use strict'; +game.import('card',{ + name:'swd', card:{ dujian:{ fullskin:true, @@ -1594,7 +1596,7 @@ card.swd={ if(i==0) return 7.3; return 3; }, - value:function(card,player){ + value:function(card,player,i){ if(player.hp>1){ if(i==0) return 5; return 1; @@ -5177,4 +5179,4 @@ card.swd={ // ['club',11,'dujian','poison'], // ['club',12,'dujian','poison'], ], -} +}); diff --git a/card/yunchou.js b/card/yunchou.js index b9b44ab25..bd1640f1c 100644 --- a/card/yunchou.js +++ b/card/yunchou.js @@ -1,4 +1,6 @@ -card.yunchou={ +'use strict'; +game.import('card',{ + name:'yunchou', card:{ diaobingqianjiang:{ fullskin:true, @@ -1154,4 +1156,4 @@ card.yunchou={ ['club',2,'youdishenru'], ['spade',9,'youdishenru'], ], -} +}); diff --git a/card/zhenfa.js b/card/zhenfa.js index 70f87a025..be8b3a935 100644 --- a/card/zhenfa.js +++ b/card/zhenfa.js @@ -1,4 +1,6 @@ -card.zhenfa={ +'use strict'; +game.import('card',{ + name:'zhenfa', card:{ pozhenjue:{ type:'zhenfa', @@ -214,9 +216,7 @@ card.zhenfa={ multitarget:true, selectTarget:-1, content:function(){ - lib.temp=targets[0]; - targets.sort(lib.sort.seat); - lib.temp={}; + targets.sortBySeat(); for(var i=1;i
  • 在非挑战模式中使用挑战武将' }, -} +}); diff --git a/extension/cardpile/extension.js b/extension/cardpile/extension.js index 317cfce76..f0f229a6e 100644 --- a/extension/cardpile/extension.js +++ b/extension/cardpile/extension.js @@ -1,4 +1,6 @@ -play.cardpile={ +'use strict'; +game.import('play',{ + name:'cardpile', arenaReady:function(){ var data={ total:160, @@ -93,4 +95,4 @@ play.cardpile={ help:{ '牌堆补充':'' }, -} +}); diff --git a/mode/connect.js b/mode/connect.js index b368a1e21..5c16faed3 100644 --- a/mode/connect.js +++ b/mode/connect.js @@ -1,5 +1,6 @@ 'use strict'; -mode.connect={ +game.import('mode',{ + name:'connect', start:function(){ var directstartmode=lib.config.directstartmode; ui.create.menu(true); @@ -138,4 +139,4 @@ mode.connect={ }; setTimeout(lib.init.onfree,1000); } -}; +}); diff --git a/mode/guozhan.js b/mode/guozhan.js index 79b4f1f21..432e71d5b 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -1,5 +1,6 @@ 'use strict'; -mode.guozhan={ +game.import('mode',{ + name:'guozhan', startBefore:function(){ var playback=localStorage.getItem(lib.configprefix+'playback'); for(var i in lib.characterPack.mode_guozhan){ @@ -3625,4 +3626,4 @@ mode.guozhan={ return Math.min(0,Math.random()-0.5)+difficulty; }, } -} +}); diff --git a/mode/identity.js b/mode/identity.js index 6996413db..e437b9cb4 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -1,5 +1,6 @@ 'use strict'; -mode.identity={ +game.import('mode',{ + name:'identity', start:function(){ "step 0" if(!lib.config.new_tutorial){ @@ -1940,4 +1941,4 @@ mode.identity={ '首先由亮出身份的忠臣玩家随机获得六张武将牌,挑选一名角色,并将选好的武将牌展示给其他玩家。之后其余每名玩家随机获得三张武将牌,各自从其中挑选一张同时亮出
  • '+ '亮出身份牌的忠臣增加1点体力上限。角色濒死和死亡的结算及胜利条件与普通身份局相同。', } -} +}); diff --git a/mode/realtime.js b/mode/realtime.js index c76fe797a..a468639ae 100644 --- a/mode/realtime.js +++ b/mode/realtime.js @@ -1,9 +1,10 @@ 'use strict'; -mode.realtime={ +game.import('mode',{ + name:'realtime', start:function(){ }, game:{ } -}; +}); diff --git a/mode/stone.js b/mode/stone.js index 31f3ca519..5c400a03f 100644 --- a/mode/stone.js +++ b/mode/stone.js @@ -1,5 +1,6 @@ 'use strict'; -mode.stone={ +game.import('mode',{ + name:'stone', start:function(){ "step 0" lib.init.css(lib.assetURL+'layout/mode/','stone'); @@ -10208,4 +10209,4 @@ mode.stone={ '
  • 嘲讽:若一方阵营中有嘲讽角色,则同阵营的无嘲讽角色不以能成为杀目标'+ '
  • 行动顺序为先主将后随从。主将或随从死亡后立即移出游戏,主将死亡后替补登场,替补登场时摸3+X张牌,X为对方存活的随从数,无替补时游戏结束' } -} +}); diff --git a/mode/tafang.js b/mode/tafang.js index c57cb1e23..12cd2b922 100644 --- a/mode/tafang.js +++ b/mode/tafang.js @@ -1,5 +1,6 @@ 'use strict'; -mode.tafang={ +game.import('mode',{ + name:'tafang', canvasUpdates2:[], start:function(){ "step 0" @@ -1232,4 +1233,4 @@ mode.tafang={ '战场上最多出现3个相同的机关,每个机关在置入战场3轮后消失。战场上最多招募5名友方角色。
  • '+ '敌方角色到达底部出口时游戏失败,已方角色到达底部出口,将被移出游戏', }, -} +}); diff --git a/mode/versus.js b/mode/versus.js index 214fde731..e70d81930 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -1,5 +1,6 @@ 'use strict'; -mode.versus={ +game.import('mode',{ + name:'versus', init:function(){ if(get.config('versus_mode')=='jiange'){ lib.characterPack.mode_versus={ @@ -4804,4 +4805,4 @@ mode.versus={ '8号位游戏开始时额外摸一张牌,7、8号位可在游戏开始时置换一次手牌
  • '+ '杀死对方忠臣摸2+x张牌,x为对方(含刚被杀的忠臣)与己方的存活人数之差;主公杀死己方忠臣须弃置所有牌', } -} +});