From 81139131388fab855d8f1d8d601cfec71ab41ec5 Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 4 Feb 2016 14:55:02 +0800 Subject: [PATCH] stone --- card/extra.js | 1 + card/guozhan.js | 1 + card/standard.js | 2 - card/swd.js | 11 +- character/shenhua.js | 1 + character/sp.js | 6 +- character/yijiang.js | 12 + game/config.js | 6 +- game/game.js | 70 +- image/character/stone_aidewen.jpg | Bin 0 -> 62022 bytes image/character/stone_alaikesita.jpg | Bin 0 -> 59741 bytes image/character/stone_andongni.jpg | Bin 0 -> 96659 bytes image/character/stone_aolajier.jpg | Bin 0 -> 23526 bytes image/character/stone_diyuhuox.jpg | Bin 0 -> 52609 bytes image/character/stone_fuding.jpg | Bin 0 -> 40953 bytes image/character/stone_fukongmoyan.jpg | Bin 0 -> 46231 bytes image/character/stone_geluomashi.jpg | Bin 0 -> 28866 bytes image/character/stone_heishitanfan.jpg | Bin 0 -> 39487 bytes image/character/stone_heiyaoyaoshou.jpg | Bin 0 -> 36977 bytes image/character/stone_honglongyongshi.jpg | Bin 0 -> 50103 bytes image/character/stone_jialakesi.jpg | Bin 0 -> 49976 bytes image/character/stone_jialakesix.jpg | Bin 0 -> 49543 bytes image/character/stone_jingyingweishi.jpg | Bin 0 -> 137857 bytes image/character/stone_kelushi.jpg | Bin 0 -> 110640 bytes image/character/stone_maligousi.jpg | Bin 0 -> 63553 bytes image/character/stone_meimo.jpg | Bin 0 -> 40991 bytes image/character/stone_mengmaren.jpg | Bin 0 -> 37919 bytes image/character/stone_nuoziduomu.jpg | Bin 0 -> 34236 bytes image/character/stone_peilianshi.jpg | Bin 0 -> 49190 bytes image/character/stone_sainaliusi.jpg | Bin 0 -> 49332 bytes image/character/stone_shengjiachong.jpg | Bin 0 -> 33589 bytes image/character/stone_shurenxx.jpg | Bin 0 -> 58906 bytes image/character/stone_siwangzhiyi.jpg | Bin 0 -> 106361 bytes ...hexianjishi.jpg => stone_suoxiaojishi.jpg} | Bin image/character/stone_tongkunvwang.jpg | Bin 0 -> 48418 bytes image/character/stone_weilun.jpg | Bin 0 -> 111712 bytes image/character/stone_xukongkongmo.jpg | Bin 0 -> 41557 bytes image/character/stone_xunmashi.jpg | Bin 177331 -> 47580 bytes image/character/stone_yisela.jpg | Bin 0 -> 84820 bytes image/character/stone_zhaohuanzhe.jpg | Bin 0 -> 103398 bytes image/character/stone_zhifuzhe.jpg | Bin 0 -> 29004 bytes layout/default/layout.css | 8 +- layout/mode/stone.css | 78 ++ mode/stone.js | 1208 ++++++++++++++++- theme/music/style.css | 2 +- theme/simple/style.css | 2 +- theme/woodden/style.css | 4 +- 47 files changed, 1333 insertions(+), 79 deletions(-) create mode 100644 image/character/stone_aidewen.jpg create mode 100644 image/character/stone_alaikesita.jpg create mode 100644 image/character/stone_andongni.jpg create mode 100644 image/character/stone_aolajier.jpg create mode 100644 image/character/stone_diyuhuox.jpg create mode 100644 image/character/stone_fuding.jpg create mode 100755 image/character/stone_fukongmoyan.jpg create mode 100755 image/character/stone_geluomashi.jpg create mode 100644 image/character/stone_heishitanfan.jpg create mode 100644 image/character/stone_heiyaoyaoshou.jpg create mode 100644 image/character/stone_honglongyongshi.jpg create mode 100755 image/character/stone_jialakesi.jpg create mode 100755 image/character/stone_jialakesix.jpg create mode 100755 image/character/stone_jingyingweishi.jpg create mode 100755 image/character/stone_kelushi.jpg create mode 100644 image/character/stone_maligousi.jpg create mode 100755 image/character/stone_meimo.jpg create mode 100644 image/character/stone_mengmaren.jpg create mode 100755 image/character/stone_nuoziduomu.jpg create mode 100644 image/character/stone_peilianshi.jpg create mode 100644 image/character/stone_sainaliusi.jpg create mode 100644 image/character/stone_shengjiachong.jpg create mode 100644 image/character/stone_shurenxx.jpg create mode 100644 image/character/stone_siwangzhiyi.jpg rename image/character/{stone_shexianjishi.jpg => stone_suoxiaojishi.jpg} (100%) create mode 100644 image/character/stone_tongkunvwang.jpg create mode 100644 image/character/stone_weilun.jpg create mode 100755 image/character/stone_xukongkongmo.jpg create mode 100644 image/character/stone_yisela.jpg create mode 100755 image/character/stone_zhaohuanzhe.jpg create mode 100755 image/character/stone_zhifuzhe.jpg diff --git a/card/extra.js b/card/extra.js index 85f2fe584..66974dea7 100755 --- a/card/extra.js +++ b/card/extra.js @@ -509,6 +509,7 @@ card.extra={ bingliang_bg:'粮', bingliang_info:'目标角色判定阶段进行判定:若判定结果不为梅花,则跳过该角色的摸牌阶段。', hualiu_bg:'+马', + hualiu_info:'其他角色与你的距离+1', zhuque_bg:'扇', zhuque_skill:'朱雀羽扇', zhuque_info:'你可以将一张普通【杀】当具火焰伤害的【杀】使用。', diff --git a/card/guozhan.js b/card/guozhan.js index 7d78b887d..591217a4c 100755 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -242,6 +242,7 @@ card.guozhan={ sanjian_skill:'三尖两刃刀', jingfanma_bg:'-马', jingfanma:'惊帆', + jingfanma_info:'其他角色与你的距离-1', }, list:[ ['heart',9,'yuanjiao'], diff --git a/card/standard.js b/card/standard.js index 5b46d732d..efbf11666 100755 --- a/card/standard.js +++ b/card/standard.js @@ -1603,11 +1603,9 @@ card.standard={ jueying_info:'其他角色与你的距离+1', dilu_info:'其他角色与你的距离+1', zhuahuang_info:'其他角色与你的距离+1', - hualiu_info:'其他角色与你的距离+1', chitu_info:'你与其他角色的距离-1', dawan_info:'你与其他角色的距离-1', zixin_info:'你与其他角色的距离-1', - jingfanma_info:'你与其他角色的距离-1', zhuge_skill_info:'你于出牌阶段内使用【杀】无次数限制。', zhuge_info:'你于出牌阶段内使用【杀】无次数限制。', cixiong_skill_info:'每当你使用【杀】指定一名异性的目标角色后,你可以令其选择一项:1.弃置一张手牌;2.令你摸一张牌。', diff --git a/card/swd.js b/card/swd.js index cf6004bc7..5fec01d9f 100755 --- a/card/swd.js +++ b/card/swd.js @@ -291,6 +291,9 @@ card.swd={ result:{ target:function(player,target){ if(target&&target==_status.dying) return 2; + if(lib.config.mode=='stone'&&!player.isMin()){ + if(player.getActCount()+1>=player.actcount) return false; + } var shas=target.get('h','sha'); var ok=false; if(shas.length){ @@ -847,10 +850,10 @@ card.swd={ "step 0" player.judge(function(card){ switch(get.suit(card)){ - case 'heart':return player.maxHp>player.hp?2:0;break; - case 'diamond':return 1;break; - case 'club':return 1;break; - case 'spade':return 0;break; + case 'heart':return player.maxHp>player.hp?2:0; + case 'diamond':return 1; + case 'club':return 1; + case 'spade':return 0; } }); "step 1" diff --git a/character/shenhua.js b/character/shenhua.js index f2af18f30..4c2fd6fdc 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -1775,6 +1775,7 @@ character.shenhua={ content:function(){ "step 0" player.chooseControl('baonue_hp','baonue_maxHp',function(event,player){ + if(player.hp==player.maxHp) return 'baonue_hp'; if(player.hp=player.hp) return false; for(var i=0;i0; }).ai=function(target){ return -ai.get.attitude(player,target) } diff --git a/character/yijiang.js b/character/yijiang.js index 9073c6e1d..3f418381f 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -921,6 +921,18 @@ character.yijiang={ trigger.responded=true; trigger.result={bool:true,card:{name:'shan'}} } + }, + ai:{ + effect:{ + target:function(card,player,target,current){ + if(get.tag(card,'respondShan')&¤t<0){ + var nh=player.num('h'); + for(var i=0;inh) return 0.4; + } + } + } + } } }, huaiyi:{ diff --git a/game/config.js b/game/config.js index 0a592dd47..034a9e538 100755 --- a/game/config.js +++ b/game/config.js @@ -5,9 +5,9 @@ window.config={ forbidall:['caocao','simayi','guanyu','zhangfei','zhaoyun','ganning','lvmeng','lvbu', 'xiahouyuan','huangzhong','weiyan','dianwei','gongsunzan','zhangjiao'], forbidversus:['swd_kangnalishi'], - forbidstone:['zhugedan','pal_xuanxiao','hs_malfurion','lusu','chenlin','gjqt_bailitusu', - 'swd_anka','swd_nicole','daqiao','re_daqiao','zhuran','huatuo','swd_tuwei','hs_guldan','wangyi', - 'swd_guyue','swd_jiangziya','guojia','re_guojia','shen_caocao','swd_qiner','gjqt_aruan'], + 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'], 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'], diff --git a/game/game.js b/game/game.js index 37c9d4106..7c7e68c78 100755 --- a/game/game.js +++ b/game/game.js @@ -2441,11 +2441,13 @@ // map.deck_length.show(); // map.deck_repeat.show(); map.random_length.hide(); + map.skill_bar.show(); } else{ // map.deck_length.hide(); // map.deck_repeat.hide(); map.random_length.show(); + map.skill_bar.hide(); } }, stone_mode:{ @@ -2509,6 +2511,12 @@ } }, }, + skill_bar:{ + name:'怒气值', + init:true, + frequent:true, + restart:true, + }, double_character:{ name:'双将模式', init:false, @@ -2627,13 +2635,18 @@ '
职业技能
  • 祭司:召唤一个随机图腾'+ '
  • 法师:对一名随从造成一点火焰伤害'+ '
  • 牧师:回复一点体力'+ - '
  • 战士:获得一点护甲(不能超过5点)'+ + '
  • 战士:获得一点护甲(不能超过3点)'+ '
  • 术士:牌库中摸两张牌'+ '
  • 潜行者:装备一把武器和一个随机非武器装备'+ '
  • 圣骑士:召唤一名士兵'+ '
  • 猎人:对敌方主将造成一点伤害'+ '
  • 德鲁伊:视为使用一张不计入出杀次数的杀
'+ + '
怒气值
  • 每当友方随从受到伤害获得3点怒气值,主将受到伤害获得6点怒气值'+ + '
  • 每有一个友方随从死亡,获得10点怒气值,主将死亡获得20点怒气值'+ + '
  • 回合结束阶段,若己方随从数少于对方会获得10X点怒气值,X为随从数之差'+ + '
  • 怒气值达到100时不再增加。回合开始阶段,若怒气值己满,可消耗全部怒气值并召唤一名传说随从
'+ '
战斗