|
@ -1,105 +0,0 @@
|
|||
card.compensate={
|
||||
list:[
|
||||
["diamond",3,'guohe'],
|
||||
['club',8,'guohe'],
|
||||
['spade',13,'guohe'],
|
||||
|
||||
['diamond',8,'shunshou'],
|
||||
['heart',5,'shunshou'],
|
||||
|
||||
["club",10,"wuxie"],
|
||||
["spade",10,"wuxie"],
|
||||
["spade",11,"wuxie"],
|
||||
|
||||
['heart',8,'tao'],
|
||||
['heart',10,'tao'],
|
||||
|
||||
["heart",10,"sha","fire"],
|
||||
["diamond",4,"sha","fire"],
|
||||
["heart",5,"sha","fire"],
|
||||
["spade",4,"sha","thunder"],
|
||||
["spade",5,"sha","thunder"],
|
||||
["club",5,"sha","thunder"],
|
||||
["spade",9,"sha","thunder"],
|
||||
["club",8,"sha"],
|
||||
["club",10,"sha"],
|
||||
["club",2,"sha"],
|
||||
["club",10,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["spade",11,"sha"],
|
||||
["spade",6,"sha"],
|
||||
["club",2,"sha"],
|
||||
["club",8,"sha"],
|
||||
["spade",9,"sha"],
|
||||
|
||||
["spade",4,"sha"],
|
||||
["spade",7,"sha"],
|
||||
["spade",1,"sha"],
|
||||
["club",4,"sha"],
|
||||
["club",7,"sha"],
|
||||
["club",2,"sha"],
|
||||
|
||||
["heart",10,"sha","fire"],
|
||||
["diamond",4,"sha","fire"],
|
||||
["heart",5,"sha","fire"],
|
||||
["spade",4,"sha","thunder"],
|
||||
["spade",5,"sha","thunder"],
|
||||
["club",5,"sha","thunder"],
|
||||
["spade",9,"sha","thunder"],
|
||||
["club",8,"sha"],
|
||||
["club",10,"sha"],
|
||||
["club",2,"sha"],
|
||||
["club",10,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["spade",11,"sha"],
|
||||
["spade",6,"sha"],
|
||||
["club",2,"sha"],
|
||||
["club",8,"sha"],
|
||||
["spade",9,"sha"],
|
||||
|
||||
["spade",4,"sha"],
|
||||
["spade",7,"sha"],
|
||||
["spade",1,"sha"],
|
||||
["club",4,"sha"],
|
||||
["club",7,"sha"],
|
||||
["club",2,"sha"],
|
||||
|
||||
["spade",4,"sha"],
|
||||
["spade",7,"sha"],
|
||||
["spade",1,"sha"],
|
||||
["club",4,"sha"],
|
||||
["club",7,"sha"],
|
||||
["club",2,"sha"],
|
||||
|
||||
["heart",11,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["heart",11,"shan"],
|
||||
["heart",8,"shan"],
|
||||
["diamond",5,"shan"],
|
||||
["diamond",2,"shan"],
|
||||
["heart",11,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["heart",4,"shan"],
|
||||
["heart",4,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
["heart",11,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
["heart",11,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
|
||||
["club",5,"tiesuo"],
|
||||
["spade",8,"tiesuo"],
|
||||
],
|
||||
}
|
14
card/swd.js
|
@ -811,16 +811,25 @@ card.swd={
|
|||
},
|
||||
xianluhui:{
|
||||
fullskin:true,
|
||||
type:'trick',
|
||||
type:'basic',
|
||||
enable:true,
|
||||
selectTarget:-1,
|
||||
filterTarget:function(card,player,target){
|
||||
return target.isDamaged();
|
||||
},
|
||||
content:function(){
|
||||
target.draw(Math.min(3,target.maxHp-target.hp));
|
||||
targets.sort(lib.sort.seat);
|
||||
var list=[];
|
||||
for(var i=0;i<targets.length;i++){
|
||||
list.push(Math.min(3,targets[i].maxHp-targets[i].hp));
|
||||
}
|
||||
game.asyncDraw(targets,list);
|
||||
},
|
||||
multitarget:true,
|
||||
ai:{
|
||||
tag:{
|
||||
multitarget:1,
|
||||
},
|
||||
basic:{
|
||||
order:7,
|
||||
useful:3,
|
||||
|
@ -3926,7 +3935,6 @@ card.swd={
|
|||
|
||||
// ['diamond',9,'tianxianjiu'],
|
||||
['heart',9,'tianxianjiu'],
|
||||
['spade',5,'jiu'],
|
||||
['diamond',2,'tianxianjiu'],
|
||||
|
||||
['spade',2,'qinglonglingzhu'],
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
play.cardpile={
|
||||
arenaReady:function(){
|
||||
var data={
|
||||
total:160,
|
||||
sha:{
|
||||
diamond:6,
|
||||
club:14,
|
||||
heart:3,
|
||||
spade:7,
|
||||
},
|
||||
huosha:{
|
||||
diamond:2,
|
||||
hearth:3
|
||||
},
|
||||
leisha:{
|
||||
spade:5,
|
||||
club:4
|
||||
},
|
||||
shan:{
|
||||
heart:6,
|
||||
diamond:18
|
||||
},
|
||||
jiu:{
|
||||
diamond:1,
|
||||
spade:2,
|
||||
club:2
|
||||
},
|
||||
tao:{
|
||||
heart:9,
|
||||
diamond:3,
|
||||
},
|
||||
wanjian:{
|
||||
heart:1,
|
||||
},
|
||||
nanman:{
|
||||
spade:2,
|
||||
club:1,
|
||||
},
|
||||
guohe:{
|
||||
spade:3,
|
||||
club:2,
|
||||
heart:1
|
||||
},
|
||||
shunshou:{
|
||||
spade:3,
|
||||
diamond:2
|
||||
},
|
||||
wuxie:{
|
||||
heart:2,
|
||||
diamond:1,
|
||||
spade:2,
|
||||
club:2
|
||||
},
|
||||
tiesuo:{
|
||||
spade:2,
|
||||
club:4
|
||||
}
|
||||
}
|
||||
var rand=function(){
|
||||
return Math.ceil(Math.random()*13);
|
||||
};
|
||||
var num=0;
|
||||
for(var i in data){
|
||||
if(lib.config['cardpile_'+i+'_playpackconfig']){
|
||||
for(var j in data[i]){
|
||||
num+=data[i][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
var dn=num*(lib.card.list.length-data.total)/(data.total-num);
|
||||
if(dn>1000) dn=1000;
|
||||
if(dn>0){
|
||||
var p=0;
|
||||
for(var i in data){
|
||||
if(lib.config['cardpile_'+i+'_playpackconfig']){
|
||||
for(var j in data[i]){
|
||||
var n=Math.round(dn*data[i][j]/num);
|
||||
while(n--){
|
||||
if(i=='huosha'||i=='leisha'){
|
||||
lib.card.list.push([j,rand(),'sha',i.slice(0,3)]);
|
||||
}
|
||||
else{
|
||||
lib.card.list.push([j,rand(),i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
help:{
|
||||
'牌堆补充':'<ul><li>维持特定卡牌在牌堆中的比例,防止开启扩展包后重要的牌被过多地稀释'
|
||||
},
|
||||
}
|
260
game/asset.js
|
@ -6,8 +6,8 @@ window.noname_asset_list=[
|
|||
'image/background/yinxiang_bg.jpg',
|
||||
'image/background/zhulian_bg.jpg',
|
||||
'image/background/zhulin_bg.jpg',
|
||||
'image/card/spell_jingshenkongzhi.jpg',
|
||||
'image/card/bagua.png',
|
||||
'image/card/baihupifeng.png',
|
||||
'image/card/baishouzhihu.png',
|
||||
'image/card/baiyin.png',
|
||||
'image/card/bingliang.png',
|
||||
|
@ -15,8 +15,6 @@ window.noname_asset_list=[
|
|||
'image/card/caomu.png',
|
||||
'image/card/caoyao.png',
|
||||
'image/card/chenhuodajie.png',
|
||||
'image/card/chess_chuzhang.png',
|
||||
'image/card/chess_shezhang.png',
|
||||
'image/card/chitu.png',
|
||||
'image/card/chilongya.png',
|
||||
'image/card/chiyuxi.png',
|
||||
|
@ -131,134 +129,8 @@ window.noname_asset_list=[
|
|||
'image/card/shunshou.png',
|
||||
'image/card/shushangkaihua.png',
|
||||
'image/card/sifeizhenmian.png',
|
||||
'image/card/spell_ansezhadan.jpg',
|
||||
'image/card/spell_anyingkuangluan.jpg',
|
||||
'image/card/spell_anyinglieyan.jpg',
|
||||
'image/card/spell_anyingxingtai.jpg',
|
||||
'image/card/spell_anzhongpohuai.jpg',
|
||||
'image/card/spell_aoshufeidan.jpg',
|
||||
'image/card/spell_aoshuzhihui.jpg',
|
||||
'image/card/spell_baofengxue.jpg',
|
||||
'image/card/spell_beici.jpg',
|
||||
'image/card/spell_bianxingshu.jpg',
|
||||
'image/card/spell_bingdong.jpg',
|
||||
'image/card/spell_binghuan.jpg',
|
||||
'image/card/spell_canying.jpg',
|
||||
'image/card/spell_chazhuangshandian.jpg',
|
||||
'image/card/spell_chenmo.jpg',
|
||||
'image/card/spell_chirehuoba.jpg',
|
||||
'image/card/spell_chongfeng.jpg',
|
||||
'image/card/spell_cigu.jpg',
|
||||
'image/card/spell_cisha.jpg',
|
||||
'image/card/spell_conglinzhihun.jpg',
|
||||
'image/card/spell_daoshan.jpg',
|
||||
'image/card/spell_diyulieyan.jpg',
|
||||
'image/card/spell_dubiao.jpg',
|
||||
'image/card/spell_dunpaimengji.jpg',
|
||||
'image/card/spell_duochongsheji.jpg',
|
||||
'image/card/spell_emozhinu.jpg',
|
||||
'image/card/spell_emozhixin.jpg',
|
||||
'image/card/spell_enzeshu.jpg',
|
||||
'image/card/spell_fengnu.jpg',
|
||||
'image/card/spell_fengxian.jpg',
|
||||
'image/card/spell_fennu.jpg',
|
||||
'image/card/spell_fennuzhichui.jpg',
|
||||
'image/card/spell_fuchoudaji.jpg',
|
||||
'image/card/spell_fuchouzhinu.jpg',
|
||||
'image/card/spell_fugen.jpg',
|
||||
'image/card/spell_fushishu.jpg',
|
||||
'image/card/spell_guanmenfanggou.jpg',
|
||||
'image/card/spell_hanbingjian.jpg',
|
||||
'image/card/spell_hanbingpingzhang.jpg',
|
||||
'image/card/spell_heiandiyu.jpg',
|
||||
'image/card/spell_heianqiyue.jpg',
|
||||
'image/card/spell_hengsao.jpg',
|
||||
'image/card/spell_huoqiushu.jpg',
|
||||
'image/card/spell_huotigenxu.jpg',
|
||||
'image/card/spell_jianrenluanwu.jpg',
|
||||
'image/card/baihupifeng.png',
|
||||
'image/card/spell_jingxiang.jpg',
|
||||
'image/card/spell_jinyingduijue.jpg',
|
||||
'image/card/spell_jipao.jpg',
|
||||
'image/card/spell_juemingluandou.jpg',
|
||||
'image/card/spell_kongxinshu.jpg',
|
||||
'image/card/spell_kuaisusheji.jpg',
|
||||
'image/card/spell_kuaisuzhiliao.jpg',
|
||||
'image/card/spell_kuangbao.jpg',
|
||||
'image/card/spell_laojiuhuoba.jpg',
|
||||
'image/card/spell_lianhuanbaolie.jpg',
|
||||
'image/card/spell_lierenyinji.jpg',
|
||||
'image/card/spell_lieyanfengbao.jpg',
|
||||
'image/card/spell_liliangdaijia.jpg',
|
||||
'image/card/spell_liliangzhufu.jpg',
|
||||
'image/card/spell_linghunhongxi.jpg',
|
||||
'image/card/spell_maizang.jpg',
|
||||
'image/card/spell_mengun.jpg',
|
||||
'image/card/spell_modaoyou.jpg',
|
||||
'image/card/spell_morizaihuo.jpg',
|
||||
'image/card/spell_naluzhiguang.jpg',
|
||||
'image/card/spell_niuquxukong.jpg',
|
||||
'image/card/spell_nuhuozhongshao.jpg',
|
||||
'image/card/tao.png',
|
||||
'image/card/spell_nuxi.jpg',
|
||||
'image/card/spell_piaoqie.jpg',
|
||||
'image/card/spell_qiangfengsheji.jpg',
|
||||
'image/card/spell_rongyanbaolie.jpg',
|
||||
'image/card/spell_sanghunzhao.jpg',
|
||||
'image/card/spell_shalumingling.jpg',
|
||||
'image/card/spell_shandianfengbao.jpg',
|
||||
'image/card/spell_shengerpingdeng.jpg',
|
||||
'image/card/spell_shengguangzhadan.jpg',
|
||||
'image/card/spell_shengliaoshu.jpg',
|
||||
'image/card/spell_shenpan.jpg',
|
||||
'image/card/spell_shenshengfennu.jpg',
|
||||
'image/card/spell_shenshengxinxing.jpg',
|
||||
'image/card/spell_shihuawuqi.jpg',
|
||||
'image/card/spell_shixue.jpg',
|
||||
'image/card/spell_sijidaifa.jpg',
|
||||
'image/card/spell_siwangchanrao.jpg',
|
||||
'image/card/spell_tanxianmao.jpg',
|
||||
'image/card/spell_tianjiangzhuqun.jpg',
|
||||
'image/card/spell_wangzhezhufu.jpg',
|
||||
'image/card/spell_weijisifu.jpg',
|
||||
'image/card/spell_wuyashenxiang.jpg',
|
||||
'image/card/spell_xianzuzhaohuan.jpg',
|
||||
'image/card/spell_xianzuzhihun.jpg',
|
||||
'image/card/spell_xianzuzhiliao.jpg',
|
||||
'image/card/spell_xianzuzhishi.jpg',
|
||||
'image/card/spell_xiaoguibaopo.jpg',
|
||||
'image/card/spell_xiaoshi.jpg',
|
||||
'image/card/spell_xingchenzhuiluo.jpg',
|
||||
'image/card/spell_xinlinghanbao.jpg',
|
||||
'image/card/spell_xinlingshijie.jpg',
|
||||
'image/card/spell_xishengqiyue.jpg',
|
||||
'image/card/spell_xuanfengzhan.jpg',
|
||||
'image/card/spell_yanbaoshu.jpg',
|
||||
'image/card/spell_yanmie.jpg',
|
||||
'image/card/spell_yaoshu.jpg',
|
||||
'image/card/spell_yemanpaoxiao.jpg',
|
||||
'image/card/spell_yexingchengzhang.jpg',
|
||||
'image/card/spell_yexinglanghun.jpg',
|
||||
'image/card/spell_yingyongdaji.jpg',
|
||||
'image/card/spell_yongshizhufu.jpg',
|
||||
'image/card/spell_zhandounuhuo.jpg',
|
||||
'image/card/spell_zhansha.jpg',
|
||||
'image/card/spell_zhaohuanchongwu.jpg',
|
||||
'image/card/spell_zhengqianghaosheng.jpg',
|
||||
'image/card/spell_zhenyanshu.jpg',
|
||||
'image/card/spell_zhihuizhufu.jpg',
|
||||
'image/card/spell_zhiliaoshui.jpg',
|
||||
'image/card/spell_zhiliaozhichu.jpg',
|
||||
'image/card/spell_zhiliaozhihuan.jpg',
|
||||
'image/card/spell_zhongnian.jpg',
|
||||
'image/card/spell_zhuizongshu.jpg',
|
||||
'image/card/spell_zhumo.jpg',
|
||||
'image/card/spell_zidanshangtang.jpg',
|
||||
'image/card/spell_ziranzhili.jpg',
|
||||
'image/card/spell_ziyang.jpg',
|
||||
'image/card/spell_zuozhandongyuan.jpg',
|
||||
'image/card/spell_zuzhou.jpg',
|
||||
'image/card/suolianjia.png',
|
||||
'image/card/tao.png',
|
||||
'image/card/tanshezhiren.png',
|
||||
'image/card/taoyuan.png',
|
||||
'image/card/tengjia.png',
|
||||
|
@ -884,6 +756,8 @@ window.noname_asset_list=[
|
|||
'image/mode/chess/character/chess_wuzhaojinlong.jpg',
|
||||
'image/mode/chess/character/chess_xingtian.jpg',
|
||||
'image/mode/chess/character/chess_zhangliao.jpg',
|
||||
'image/mode/chess/card/chess_chuzhang.png',
|
||||
'image/mode/chess/card/chess_shezhang.png',
|
||||
'image/mode/tafang/character/tafang_mech_dubiaoxianjing.jpg',
|
||||
'image/mode/tafang/character/tafang_mech_jiqishi.jpg',
|
||||
'image/mode/tafang/character/tafang_mech_shenmidiaoxiang.jpg',
|
||||
|
@ -1078,6 +952,132 @@ window.noname_asset_list=[
|
|||
'image/mode/stone/character/stone_zhumo.jpg',
|
||||
'image/mode/stone/character/stone_zongxiong.jpg',
|
||||
'image/mode/stone/character/stone_zousishangfan.jpg',
|
||||
'image/mode/stone/card/spell_ansezhadan.jpg',
|
||||
'image/mode/stone/card/spell_anyingkuangluan.jpg',
|
||||
'image/mode/stone/card/spell_anyinglieyan.jpg',
|
||||
'image/mode/stone/card/spell_anyingxingtai.jpg',
|
||||
'image/mode/stone/card/spell_anzhongpohuai.jpg',
|
||||
'image/mode/stone/card/spell_aoshufeidan.jpg',
|
||||
'image/mode/stone/card/spell_aoshuzhihui.jpg',
|
||||
'image/mode/stone/card/spell_baofengxue.jpg',
|
||||
'image/mode/stone/card/spell_beici.jpg',
|
||||
'image/mode/stone/card/spell_bianxingshu.jpg',
|
||||
'image/mode/stone/card/spell_bingdong.jpg',
|
||||
'image/mode/stone/card/spell_binghuan.jpg',
|
||||
'image/mode/stone/card/spell_canying.jpg',
|
||||
'image/mode/stone/card/spell_chazhuangshandian.jpg',
|
||||
'image/mode/stone/card/spell_chenmo.jpg',
|
||||
'image/mode/stone/card/spell_chirehuoba.jpg',
|
||||
'image/mode/stone/card/spell_chongfeng.jpg',
|
||||
'image/mode/stone/card/spell_cigu.jpg',
|
||||
'image/mode/stone/card/spell_cisha.jpg',
|
||||
'image/mode/stone/card/spell_conglinzhihun.jpg',
|
||||
'image/mode/stone/card/spell_daoshan.jpg',
|
||||
'image/mode/stone/card/spell_diyulieyan.jpg',
|
||||
'image/mode/stone/card/spell_dubiao.jpg',
|
||||
'image/mode/stone/card/spell_dunpaimengji.jpg',
|
||||
'image/mode/stone/card/spell_duochongsheji.jpg',
|
||||
'image/mode/stone/card/spell_emozhinu.jpg',
|
||||
'image/mode/stone/card/spell_emozhixin.jpg',
|
||||
'image/mode/stone/card/spell_enzeshu.jpg',
|
||||
'image/mode/stone/card/spell_fengnu.jpg',
|
||||
'image/mode/stone/card/spell_fengxian.jpg',
|
||||
'image/mode/stone/card/spell_fennu.jpg',
|
||||
'image/mode/stone/card/spell_fennuzhichui.jpg',
|
||||
'image/mode/stone/card/spell_fuchoudaji.jpg',
|
||||
'image/mode/stone/card/spell_fuchouzhinu.jpg',
|
||||
'image/mode/stone/card/spell_fugen.jpg',
|
||||
'image/mode/stone/card/spell_fushishu.jpg',
|
||||
'image/mode/stone/card/spell_guanmenfanggou.jpg',
|
||||
'image/mode/stone/card/spell_hanbingjian.jpg',
|
||||
'image/mode/stone/card/spell_hanbingpingzhang.jpg',
|
||||
'image/mode/stone/card/spell_heiandiyu.jpg',
|
||||
'image/mode/stone/card/spell_heianqiyue.jpg',
|
||||
'image/mode/stone/card/spell_hengsao.jpg',
|
||||
'image/mode/stone/card/spell_huoqiushu.jpg',
|
||||
'image/mode/stone/card/spell_huotigenxu.jpg',
|
||||
'image/mode/stone/card/spell_jianrenluanwu.jpg',
|
||||
'image/mode/stone/card/spell_jingxiang.jpg',
|
||||
'image/mode/stone/card/spell_jingshenkongzhi.jpg',
|
||||
'image/mode/stone/card/spell_jinyingduijue.jpg',
|
||||
'image/mode/stone/card/spell_jipao.jpg',
|
||||
'image/mode/stone/card/spell_juemingluandou.jpg',
|
||||
'image/mode/stone/card/spell_kongxinshu.jpg',
|
||||
'image/mode/stone/card/spell_kuaisusheji.jpg',
|
||||
'image/mode/stone/card/spell_kuaisuzhiliao.jpg',
|
||||
'image/mode/stone/card/spell_kuangbao.jpg',
|
||||
'image/mode/stone/card/spell_laojiuhuoba.jpg',
|
||||
'image/mode/stone/card/spell_lianhuanbaolie.jpg',
|
||||
'image/mode/stone/card/spell_lierenyinji.jpg',
|
||||
'image/mode/stone/card/spell_lieyanfengbao.jpg',
|
||||
'image/mode/stone/card/spell_liliangdaijia.jpg',
|
||||
'image/mode/stone/card/spell_liliangzhufu.jpg',
|
||||
'image/mode/stone/card/spell_linghunhongxi.jpg',
|
||||
'image/mode/stone/card/spell_maizang.jpg',
|
||||
'image/mode/stone/card/spell_mengun.jpg',
|
||||
'image/mode/stone/card/spell_modaoyou.jpg',
|
||||
'image/mode/stone/card/spell_morizaihuo.jpg',
|
||||
'image/mode/stone/card/spell_naluzhiguang.jpg',
|
||||
'image/mode/stone/card/spell_niuquxukong.jpg',
|
||||
'image/mode/stone/card/spell_nuhuozhongshao.jpg',
|
||||
'image/mode/stone/card/spell_nuxi.jpg',
|
||||
'image/mode/stone/card/spell_piaoqie.jpg',
|
||||
'image/mode/stone/card/spell_qiangfengsheji.jpg',
|
||||
'image/mode/stone/card/spell_rongyanbaolie.jpg',
|
||||
'image/mode/stone/card/spell_sanghunzhao.jpg',
|
||||
'image/mode/stone/card/spell_shalumingling.jpg',
|
||||
'image/mode/stone/card/spell_shandianfengbao.jpg',
|
||||
'image/mode/stone/card/spell_shengerpingdeng.jpg',
|
||||
'image/mode/stone/card/spell_shengguangzhadan.jpg',
|
||||
'image/mode/stone/card/spell_shengliaoshu.jpg',
|
||||
'image/mode/stone/card/spell_shenpan.jpg',
|
||||
'image/mode/stone/card/spell_shenshengfennu.jpg',
|
||||
'image/mode/stone/card/spell_shenshengxinxing.jpg',
|
||||
'image/mode/stone/card/spell_shihuawuqi.jpg',
|
||||
'image/mode/stone/card/spell_shixue.jpg',
|
||||
'image/mode/stone/card/spell_sijidaifa.jpg',
|
||||
'image/mode/stone/card/spell_siwangchanrao.jpg',
|
||||
'image/mode/stone/card/spell_tanxianmao.jpg',
|
||||
'image/mode/stone/card/spell_tianjiangzhuqun.jpg',
|
||||
'image/mode/stone/card/spell_wangzhezhufu.jpg',
|
||||
'image/mode/stone/card/spell_weijisifu.jpg',
|
||||
'image/mode/stone/card/spell_wuyashenxiang.jpg',
|
||||
'image/mode/stone/card/spell_xianzuzhaohuan.jpg',
|
||||
'image/mode/stone/card/spell_xianzuzhihun.jpg',
|
||||
'image/mode/stone/card/spell_xianzuzhiliao.jpg',
|
||||
'image/mode/stone/card/spell_xianzuzhishi.jpg',
|
||||
'image/mode/stone/card/spell_xiaoguibaopo.jpg',
|
||||
'image/mode/stone/card/spell_xiaoshi.jpg',
|
||||
'image/mode/stone/card/spell_xingchenzhuiluo.jpg',
|
||||
'image/mode/stone/card/spell_xinlinghanbao.jpg',
|
||||
'image/mode/stone/card/spell_xinlingshijie.jpg',
|
||||
'image/mode/stone/card/spell_xishengqiyue.jpg',
|
||||
'image/mode/stone/card/spell_xuanfengzhan.jpg',
|
||||
'image/mode/stone/card/spell_yanbaoshu.jpg',
|
||||
'image/mode/stone/card/spell_yanmie.jpg',
|
||||
'image/mode/stone/card/spell_yaoshu.jpg',
|
||||
'image/mode/stone/card/spell_yemanpaoxiao.jpg',
|
||||
'image/mode/stone/card/spell_yexingchengzhang.jpg',
|
||||
'image/mode/stone/card/spell_yexinglanghun.jpg',
|
||||
'image/mode/stone/card/spell_yingyongdaji.jpg',
|
||||
'image/mode/stone/card/spell_yongshizhufu.jpg',
|
||||
'image/mode/stone/card/spell_zhandounuhuo.jpg',
|
||||
'image/mode/stone/card/spell_zhansha.jpg',
|
||||
'image/mode/stone/card/spell_zhaohuanchongwu.jpg',
|
||||
'image/mode/stone/card/spell_zhengqianghaosheng.jpg',
|
||||
'image/mode/stone/card/spell_zhenyanshu.jpg',
|
||||
'image/mode/stone/card/spell_zhihuizhufu.jpg',
|
||||
'image/mode/stone/card/spell_zhiliaoshui.jpg',
|
||||
'image/mode/stone/card/spell_zhiliaozhichu.jpg',
|
||||
'image/mode/stone/card/spell_zhiliaozhihuan.jpg',
|
||||
'image/mode/stone/card/spell_zhongnian.jpg',
|
||||
'image/mode/stone/card/spell_zhuizongshu.jpg',
|
||||
'image/mode/stone/card/spell_zhumo.jpg',
|
||||
'image/mode/stone/card/spell_zidanshangtang.jpg',
|
||||
'image/mode/stone/card/spell_ziranzhili.jpg',
|
||||
'image/mode/stone/card/spell_ziyang.jpg',
|
||||
'image/mode/stone/card/spell_zuozhandongyuan.jpg',
|
||||
'image/mode/stone/card/spell_zuzhou.jpg',
|
||||
'image/splash/boss.jpg',
|
||||
'image/splash/chess.jpg',
|
||||
'image/splash/guozhan.jpg',
|
||||
|
|
189
game/game.js
|
@ -727,7 +727,7 @@
|
|||
onclick:function(bool){
|
||||
if(lib.config.show_history=='right') ui.window.animate('rightbar2');
|
||||
game.saveConfig('show_history',bool);
|
||||
if(_status.video||!_status.gameStarted) return;
|
||||
if(_status.video||!_status.prepareArena) return;
|
||||
if(bool=='left'){
|
||||
ui.window.classList.add('leftbar');
|
||||
ui.window.classList.remove('rightbar');
|
||||
|
@ -1572,7 +1572,7 @@
|
|||
if(this.innerHTML!='已隐藏'){
|
||||
this.innerHTML='已隐藏';
|
||||
game.saveConfig('hiddenModePack',['stone','chess','boss','tafang']);
|
||||
game.saveConfig('hiddenCardPack',['zhenfa','yunchou','swd','shenqi','hearth','compensate']);
|
||||
game.saveConfig('hiddenCardPack',['zhenfa','yunchou','swd','shenqi','hearth']);
|
||||
game.saveConfig('hiddenCharacterPack',['diy','yxs','hearth','swd','gujian','xianjian','xiake','boss','ow']);
|
||||
var that=this;
|
||||
setTimeout(function(){
|
||||
|
@ -1586,6 +1586,70 @@
|
|||
}
|
||||
},
|
||||
extensionMenu:{
|
||||
cardpile:{
|
||||
enable:{
|
||||
name:'开启',
|
||||
init:false,
|
||||
restart:true,
|
||||
},
|
||||
sha:{
|
||||
name:'杀',
|
||||
init:true,
|
||||
},
|
||||
huosha:{
|
||||
name:'火杀',
|
||||
init:true,
|
||||
},
|
||||
leisha:{
|
||||
name:'雷杀',
|
||||
init:true,
|
||||
},
|
||||
shan:{
|
||||
name:'闪',
|
||||
init:true,
|
||||
},
|
||||
tao:{
|
||||
name:'桃',
|
||||
init:true,
|
||||
},
|
||||
jiu:{
|
||||
name:'酒',
|
||||
init:true,
|
||||
},
|
||||
wuxie:{
|
||||
name:'无懈可击',
|
||||
init:false,
|
||||
},
|
||||
nanman:{
|
||||
name:'南蛮入侵',
|
||||
init:false,
|
||||
},
|
||||
wanjian:{
|
||||
name:'万箭齐发',
|
||||
init:false,
|
||||
},
|
||||
guohe:{
|
||||
name:'过河拆桥',
|
||||
init:false,
|
||||
},
|
||||
shunshou:{
|
||||
name:'顺手牵羊',
|
||||
init:false,
|
||||
},
|
||||
tiesuo:{
|
||||
name:'铁索连环',
|
||||
init:false,
|
||||
},
|
||||
hide:{
|
||||
name:'隐藏此扩展',
|
||||
clear:true,
|
||||
onclick:function(){
|
||||
this.innerHTML='此扩展将在重启后隐藏';
|
||||
lib.config.hiddenPlayPack.add('cardpile');
|
||||
game.saveConfig('hiddenPlayPack',lib.config.hiddenPlayPack);
|
||||
}
|
||||
},
|
||||
},
|
||||
character:{
|
||||
enable:{
|
||||
name:'开启',
|
||||
|
@ -2807,10 +2871,10 @@
|
|||
// name:'守卫剑阁',
|
||||
// init:true,
|
||||
// },
|
||||
chess_card:{
|
||||
name:'战棋卡牌',
|
||||
init:true,
|
||||
},
|
||||
// chess_card:{
|
||||
// name:'战棋卡牌',
|
||||
// init:true,
|
||||
// },
|
||||
free_choose:{
|
||||
name:'自由选将',
|
||||
init:true,
|
||||
|
@ -4100,57 +4164,59 @@
|
|||
delete lib.cardPack.mode_derivation;
|
||||
}
|
||||
}
|
||||
for(i in play){
|
||||
if(lib.config.hiddenPlayPack.contains(i)) continue;
|
||||
if(play[i].forbid&&play[i].forbid.contains(lib.config.mode)) continue;
|
||||
if(play[i].mode&&play[i].mode.contains(lib.config.mode)==false) continue;
|
||||
for(j in play[i].element){
|
||||
if(!lib.element[j]) lib.element[j]=[];
|
||||
for(k in play[i].element[j]){
|
||||
if(k=='init'){
|
||||
if(!lib.element[j].inits) lib.element[j].inits=[];
|
||||
lib.element[j].inits.push(lib.init.eval(play[i].element[j][k]));
|
||||
}
|
||||
else{
|
||||
lib.element[j][k]=lib.init.eval(play[i].element[j][k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(j in play[i].ui){
|
||||
if(typeof play[i].ui[j]=='object'){
|
||||
if(ui[j]==undefined) ui[j]={};
|
||||
for(k in play[i].ui[j]){
|
||||
ui[j][k]=lib.init.eval(play[i].ui[j][k]);
|
||||
}
|
||||
}
|
||||
else{
|
||||
ui[j]=lib.init.eval(play[i].ui[j]);
|
||||
}
|
||||
}
|
||||
for(j in play[i].game){
|
||||
game[j]=lib.init.eval(play[i].game[j]);
|
||||
}
|
||||
for(j in play[i].get){
|
||||
get[j]=lib.init.eval(play[i].get[j]);
|
||||
}
|
||||
for(j in play[i]){
|
||||
if(j=='mode'||j=='forbid'||j=='init'||j=='element'||
|
||||
j=='game'||j=='get'||j=='ui'||j=='arenaReady') continue;
|
||||
for(k in play[i][j]){
|
||||
if(j=='translate'&&k==i){
|
||||
// lib[j][k+'_play_config']=play[i][j][k];
|
||||
}
|
||||
else{
|
||||
if(lib[j][k]!=undefined){
|
||||
console.log('dublicate '+j+' in play '+i+':\n'+k+'\n'+': '+lib[j][k]+'\n'+play[i][j][k]);
|
||||
}
|
||||
lib[j][k]=lib.init.eval(play[i][j][k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(typeof play[i].init=='function') (lib.init.eval(play[i].init))();
|
||||
if(typeof play[i].arenaReady=='function') lib.arenaReady.push(play[i].arenaReady);
|
||||
}
|
||||
if(lib.config.mode!='connect'){
|
||||
for(i in play){
|
||||
if(lib.config.hiddenPlayPack.contains(i)) continue;
|
||||
if(play[i].forbid&&play[i].forbid.contains(lib.config.mode)) continue;
|
||||
if(play[i].mode&&play[i].mode.contains(lib.config.mode)==false) continue;
|
||||
for(j in play[i].element){
|
||||
if(!lib.element[j]) lib.element[j]=[];
|
||||
for(k in play[i].element[j]){
|
||||
if(k=='init'){
|
||||
if(!lib.element[j].inits) lib.element[j].inits=[];
|
||||
lib.element[j].inits.push(lib.init.eval(play[i].element[j][k]));
|
||||
}
|
||||
else{
|
||||
lib.element[j][k]=lib.init.eval(play[i].element[j][k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
for(j in play[i].ui){
|
||||
if(typeof play[i].ui[j]=='object'){
|
||||
if(ui[j]==undefined) ui[j]={};
|
||||
for(k in play[i].ui[j]){
|
||||
ui[j][k]=lib.init.eval(play[i].ui[j][k]);
|
||||
}
|
||||
}
|
||||
else{
|
||||
ui[j]=lib.init.eval(play[i].ui[j]);
|
||||
}
|
||||
}
|
||||
for(j in play[i].game){
|
||||
game[j]=lib.init.eval(play[i].game[j]);
|
||||
}
|
||||
for(j in play[i].get){
|
||||
get[j]=lib.init.eval(play[i].get[j]);
|
||||
}
|
||||
for(j in play[i]){
|
||||
if(j=='mode'||j=='forbid'||j=='init'||j=='element'||
|
||||
j=='game'||j=='get'||j=='ui'||j=='arenaReady') continue;
|
||||
for(k in play[i][j]){
|
||||
if(j=='translate'&&k==i){
|
||||
// lib[j][k+'_play_config']=play[i][j][k];
|
||||
}
|
||||
else{
|
||||
if(lib[j][k]!=undefined){
|
||||
console.log('dublicate '+j+' in play '+i+':\n'+k+'\n'+': '+lib[j][k]+'\n'+play[i][j][k]);
|
||||
}
|
||||
lib[j][k]=lib.init.eval(play[i][j][k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(typeof play[i].init=='function') (lib.init.eval(play[i].init))();
|
||||
if(typeof play[i].arenaReady=='function') lib.arenaReady.push(play[i].arenaReady);
|
||||
}
|
||||
}
|
||||
|
||||
lib.connectCharacterPack=[];
|
||||
lib.connectCardPack=[];
|
||||
|
@ -12687,7 +12753,13 @@
|
|||
this.setBackground(lib.card[bg].image);
|
||||
}
|
||||
else{
|
||||
this.setBackground('card/'+bg);
|
||||
var cardPack=lib.cardPack['mode_'+get.mode()];
|
||||
if(Array.isArray(cardPack)&&cardPack.contains(bg)){
|
||||
this.setBackground('mode/'+get.mode()+'/card/'+bg);
|
||||
}
|
||||
else{
|
||||
this.setBackground('card/'+bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(lib.card[bg].image=='card'){
|
||||
|
@ -19417,6 +19489,7 @@
|
|||
return arg[arg.length-1];
|
||||
},
|
||||
prepareArena:function(num){
|
||||
_status.prepareArena=true;
|
||||
game.showHistory();
|
||||
ui.create.players(num);
|
||||
ui.create.me();
|
||||
|
|
|
@ -25,9 +25,9 @@ card.pack={
|
|||
yunchou:'运筹帷幄',
|
||||
swd:'轩辕剑',
|
||||
hearth:'炉石传说',
|
||||
compensate:'补充卡牌',
|
||||
};
|
||||
play.pack={
|
||||
cardpile:'牌堆补充',
|
||||
character:'技能卡牌',
|
||||
soldier:'士兵模式',
|
||||
wuxing:'五行生克',
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
window.noname_source_list=[
|
||||
'card/compensate.js',
|
||||
'card/extra.js',
|
||||
'card/guozhan.js',
|
||||
'card/hearth.js',
|
||||
|
@ -60,6 +59,7 @@ window.noname_source_list=[
|
|||
'mode/brawl.js',
|
||||
'mode/versus.js',
|
||||
'mode/connect.js',
|
||||
'extension/cardpile/extension.js',
|
||||
'extension/character/extension.js',
|
||||
'extension/coin/extension.js',
|
||||
'extension/soldier/extension.js',
|
||||
|
|
|
@ -17,3 +17,6 @@ window.noname_update={
|
|||
'1.9.0.1':[]
|
||||
}
|
||||
}
|
||||
|
||||
//增加牌堆补充扩展
|
||||
//改进塔防模式
|
||||
|
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |