This commit is contained in:
libccy 2016-02-06 09:58:11 +08:00
parent da3e1a91cd
commit 8c885e6215
7 changed files with 65 additions and 25 deletions

View File

@ -1536,6 +1536,8 @@ card.standard={
},
translate:{
sha:'杀',
huosha:'火杀',
leisha:'雷杀',
shan:'闪',
tao:'桃',
bagua:'八卦阵',

View File

@ -490,7 +490,7 @@ card.yibao={
liuxinghuoyu:'流星火羽',
liuxinghuoyu_info:'出牌阶段对一名有手牌或装备牌的角色使用令其弃置0~2张牌并受到2-X点火焰伤害X为弃置的卡牌数',
dujian:'毒箭',
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,你对其造成一点毒属性伤害',
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
qiankundai:'乾坤袋',
qiankundai_info:'你的手牌上限+1。当你失去该装备时你摸取一张牌。',
hufu:'虎符',

View File

@ -777,7 +777,7 @@ character.standard={
}
}
bottom=cards;
for(i=0;i<top.length;i++){
for(var i=0;i<top.length;i++){
ui.cardPile.insertBefore(top[i],ui.cardPile.firstChild);
}
for(i=0;i<bottom.length;i++){
@ -966,7 +966,7 @@ character.standard={
position:'he',
viewAs:{name:'guohe'},
viewAsFilter:function(player){
if(!player.num('h',{color:'black'})) return false;
if(!player.num('he',{color:'black'})) return false;
},
prompt:'将一张黑色牌当过河拆桥使用',
check:function(card){return 4-ai.get.value(card)}

View File

@ -8,8 +8,8 @@ window.config={
forbidstone:['zhugedan','pal_xuanxiao','hs_malfurion','lusu','chenlin',
'gjqt_bailitusu','yuanshao','swd_anka','swd_nicole','daqiao','re_daqiao',
'zhuran','huatuo','swd_tuwei','hs_guldan','wangyi','caoang','swd_guyue',
'swd_jiangziya','guojia','re_guojia','shen_caocao','swd_qiner',
'gjqt_aruan','swd_hanluo','hs_anduin','swd_huanglei'],
'swd_jiangziya','guojia','re_guojia','shen_caocao','swd_qiner','caopi','hs_yngvar',
'gjqt_aruan','swd_hanluo','hs_anduin','swd_huanglei','yxs_luzhishen'],
forbidchess:['hetaihou','swd_kangnalishi'],
forbidboss:['caiwenji','gjqt_aruan','pal_xuanxiao','swd_hupo'],
forbiddouble:['zhugedan','swd_kangnalishi','dongzhuo','wutugu','jg_simayi','hs_siwangzhiyi','hs_ronghejuren','hs_shanlingjuren'],

View File

@ -8484,6 +8484,16 @@
},
card:{
init:function(card){
if(Array.isArray(card)){
if(card[2]=='huosha'){
card[2]='sha';
card[3]='fire';
}
if(card[2]=='leisha'){
card[2]='sha';
card[3]='thunder';
}
}
var bg=card[2];
if(!lib.config.hide_card_image&&lib.card[card[2]].fullskin){
this.classList.add('fullskin');
@ -12644,7 +12654,7 @@
event.changeCard='disabled';
}
"step 1"
if(event.changeCard!='disabled'){
if(event.changeCard!='disabled'&&!_status.auto){
event.dialog=ui.create.dialog('是否使用手气卡?');
ui.create.confirm('oc');
event.custom.replace.confirm=function(bool){
@ -15974,6 +15984,10 @@
for(var j=0;j<lib.cardPack[lib.config.cards[i]].length;j++){
var cname=lib.cardPack[lib.config.cards[i]][j];
pileaddlist.push([cname,get.translation(cname)]);
if(cname=='sha'){
pileaddlist.push(['huosha','火杀']);
pileaddlist.push(['leisha','雷杀']);
}
}
}
var cardpileaddname=ui.create.selectlist(pileaddlist,null,cardpileadd);
@ -22373,6 +22387,16 @@
if(typeof play[i].arenaReady=='function') lib.arenaReady.push(play[i].arenaReady);
}
for(i=0;i<lib.card.list.length;i++){
if(lib.card.list[i][2]=='huosha'){
lib.card.list[i]=lib.card.list[i].slice(0);
lib.card.list[i][2]='sha';
lib.card.list[i][3]='fire';
}
else if(lib.card.list[i][2]=='leisha'){
lib.card.list[i]=lib.card.list[i].slice(0);
lib.card.list[i][2]='sha';
lib.card.list[i][3]='thunder';
}
if(!lib.card[lib.card.list[i][2]]){
lib.card.list.splice(i,1);i--;
}

View File

@ -525,7 +525,7 @@ mode.stone={
stone_tuyuansu:['male','qun',5,['chaofeng'],['minskin','stone'],[5,4,'shaman']],
stone_huoyuansu:['male','shu',3,['shaman_huoxi'],['minskin','stone'],[4,3,'shaman']],
stone_fachao:['male','wei',3,['shaman_tuteng','shaman_fachao'],['minskin','stone'],[3,0,'shaman']],
stone_huoshe:['male','shu',3,['shaman_tuteng','shaman_huoshe'],['minskin','stone'],[4,0,'shaman']],
stone_huoshe:['male','shu',3,['shaman_tuteng','shaman_huoshe'],['minskin','stone'],[3,0,'shaman']],
stone_huoli:['male','wei',3,['shaman_tuteng','shaman_huoli'],['minskin','stone'],[2,0,'shaman']],
stone_huoyanweishi:['male','shu',4,['shaman_zhuhuo'],['minskin','stone'],[4,1,'shaman']],
stone_tutengshi:['female','wei',2,['shaman_peiyu'],['minskin','stone'],[3,3,'shaman']],
@ -649,7 +649,7 @@ mode.stone={
stone_yuanguanying:['male','shu',3,['stone_yuanguanying1'],['minskin','stone'],[3,1]],
stone_dijieshicong:['male','wu',2,['stone_dijieshicong1'],['minskin','stone'],[1,1]],
stone_yaosaishouwei:['male','wu',1,['stone_yaosaishouwei1'],['minskin','stone'],[1,2]],
stone_yaosaishouwei:['male','wu',2,['stone_yaosaishouwei1'],['minskin','stone'],[1,1]],
stone_famingjia:['male','wu',3,['stone_famingjia1'],['minskin','stone'],[3,1]],
stone_chilundashi:['male','qun',2,['stone_chilundashi1'],['minskin','stone'],[1,1]],
@ -5445,14 +5445,17 @@ mode.stone={
content:function(){
'step 0'
var list=[];
event.num=0;
for(var i=0;i<game.players.length;i++){
if(game.players[i].isMin()&&game.players[i]!=player){
list.push(game.players[i]);
if(game.players[i].side!=player.side){
event.num+=2;
}
}
}
list.sort(lib.sort.seat);
event.list=list;
event.num=list.length;
'step 1'
if(event.list.length){
var target=event.list.shift();
@ -5464,12 +5467,11 @@ mode.stone={
}
'step 2'
var target=player.getLeader();
// var hs=target.get('h');
// if(hs.length){
// target.discard(hs);
// }
target.skip('phaseJudge');
target.skip('phaseUse');
var hs=target.get('h');
if(hs.length){
target.discard(hs);
}
game.delay();
'step 3'
if(event.num){
player.damage(event.num,'nosource');
@ -5537,7 +5539,7 @@ mode.stone={
event.card&&get.type(event.card)=='stonecard';
},
content:function(){
trigger.num++
trigger.num+=2;
},
ai:{
threaten:1.6
@ -7553,13 +7555,13 @@ mode.stone={
forced:true,
mark:true,
intro:{
content:'使用下一张随从牌时,获得点行动值'
content:'使用下一张随从牌时,获得点行动值'
},
filter:function(event,player){
return get.type(event.card)=='stonecharacter';
},
content:function(){
player.actused--;
player.actused-=2;
player.updateActCount();
player.removeSkill('paladin_zhaohuan2');
}
@ -8061,7 +8063,8 @@ mode.stone={
trigger:{global:'damageBegin'},
forced:true,
filter:function(event,player){
return event.source&&event.source!=player&&player.side==event.source.side&&event.notLink();
return event.source&&event.source!=player&&event.source.isMin()&&
player.side==event.source.side&&event.notLink();
},
content:function(){
trigger.num++
@ -8344,7 +8347,7 @@ mode.stone={
filter:function(event,player){
if(player.career!='druid') return false;
if(player.getActCount()+2>player.actcount) return false;
return player.num('he')>0&&lib.filter.cardEnabled({name:'sha'},player);
return lib.filter.cardEnabled({name:'sha'},player);
},
usable:1,
filterTarget:function(card,player,target){
@ -9147,7 +9150,10 @@ mode.stone={
heilong=true;
}
else if(dc==2){
if(player.actcount-player.getActCount()<=0){
if(player.getEnemy().countFellow()>=3){
heilong=Math.random()<0.5;
}
else if(player.actcount-player.getActCount()<=0){
heilong=true;
}
else{
@ -9263,13 +9269,13 @@ mode.stone={
stone_fushi:'缚誓',
stone_fushi_info:'你出场时,为所有友方角色回复所有体力值',
stone_mieshi:'灭世',
stone_mieshi_info:'你出场时,消灭所有其他随从,跳过己方主将的下个判定和出牌阶段,并受到等同于死亡随从数的伤害',
stone_mieshi_info:'你出场时,消灭所有其他随从,弃置己方主将的所有手牌,每有一名敌方随从死亡,便受到两点伤害',
stone_shixu:'时序',
stone_shixu_info:'你出场的回合内己方主将获得3点行动值',
stone_chenshui:'沉睡',
stone_chenshui_info:'己方主将的回合结束阶段,令其获得一张梦境牌',
stone_mowang:'魔网',
stone_mowang_info:'己方法术伤害+1',
stone_mowang_info:'己方法术伤害+2',
stone_zhiyin:'指引',
stone_zhiyin_info:'每当己方主将使用一张法术牌,将一张火球术置于其手牌',
@ -9770,7 +9776,7 @@ mode.stone={
paladin_zhaohuan:'召唤',
paladin_zhaohuan2:'召唤',
paladin_zhaohuan_info:'你出场后,你的主将在使用下一张随从牌时获得点行动值',
paladin_zhaohuan_info:'你出场后,你的主将在使用下一张随从牌时获得点行动值',
paladin_shouwei:'守卫',
paladin_shouwei_info:'你出场时,你的主将回复两点体力值',
paladin_chidun:'持盾',
@ -9928,7 +9934,7 @@ mode.stone={
shaman_fachao:'法潮',
shaman_fachao_info:'己方主将在其每个回合结束阶从牌库中获得一张牌并回复一点体力',
shaman_huoshe:'火舌',
shaman_huoshe_info:'其他己方角色造成的伤害始终+1',
shaman_huoshe_info:'其他友方随从造成的伤害始终+1',
shaman_jili:'激励',
shaman_jili_info:'己方主将回合结束时,所有友方图腾摸一张牌',

View File

@ -296,6 +296,14 @@ mode.versus={
game.loadPackage('character/boss');
}
'step 1'
for(var i in lib.skill){
if(lib.skill[i].changeSeat){
lib.skill[i]={};
if(lib.translate[i+'_info']){
lib.translate[i+'_info']='此模式下不可用';
}
}
}
var list={
weilist:[],shulist:[],
weimech:[],shumech:[],