From 5c6f4ee8f868acd0befb67b0059a1ca7c3118ddb Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 22 Jan 2017 11:22:02 +0800 Subject: [PATCH] 1 --- character/hearth.js | 10 +++++++--- character/sp.js | 2 ++ character/xianjian.js | 4 ++++ game/server.js | 30 +++++++++++++++--------------- game/update.js | 18 +++++++++--------- layout/default/layout.css | 2 +- layout/mobile/layout.css | 4 ++++ layout/mode/chess.css | 4 ++++ layout/newlayout/global.css | 3 +++ 9 files changed, 49 insertions(+), 28 deletions(-) diff --git a/character/hearth.js b/character/hearth.js index f3352d2fa..27065af8c 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -4637,7 +4637,7 @@ character.hearth={ }, fenliu:{ enable:'phaseUse', - prompt:'流失1点体力并摸两张牌', + prompt:'流失1点体力并摸三张牌', usable:1, content:function(){ "step 0" @@ -4649,8 +4649,12 @@ character.hearth={ order:4, result:{ player:function(player){ - if(player.num('h')>=player.hp-1) return -1; - if(player.hp<3) return -1; + var nh=player.num('h'); + if(nh>=player.hp) return -1; + if(player.hp<=2){ + if(player.hp==2&&nh==0) return 1; + return -1; + } return 1; } }, diff --git a/character/sp.js b/character/sp.js index 00225eb23..b0e2b19f4 100644 --- a/character/sp.js +++ b/character/sp.js @@ -5070,6 +5070,7 @@ character.sp={ forceunique:true, trigger:{player:'phaseBegin'}, filter:function(event,player){ + if(player.storage.fanxiang) return false; for(var i=0;i.skillbar{ width: 65px; height: 65px; - border-radius: 100%; + border-radius: 100% !important; font-size: 55px; font-family: 'huangcao'; top:calc(50% - 110px); diff --git a/layout/mobile/layout.css b/layout/mobile/layout.css index 34b0edefb..f7c56f6c6 100644 --- a/layout/mobile/layout.css +++ b/layout/mobile/layout.css @@ -301,6 +301,10 @@ left:0; background-size:cover; } +#window[data-radius_size='increase'] #me>.fakeme.avatar, +#window[data-radius_size='reduce'] #me>.fakeme.avatar{ + border-radius:0px; +} #arena.mobile.oblongcard:not(.chess):not(.textequip) .player[data-position='0']>.equips>.equip1, #arena.mobile.oblongcard:not(.chess):not(.textequip) .player[data-position='0']>.equips>.equip2{ diff --git a/layout/mode/chess.css b/layout/mode/chess.css index 44d565716..d840f8a38 100644 --- a/layout/mode/chess.css +++ b/layout/mode/chess.css @@ -97,6 +97,10 @@ border-radius:0px; top:0; } +#window[data-radius_size='increase'] .fakeme, +#window[data-radius_size='reduce'] .fakeme{ + border-radius:0px; +} .fakeme.avatar{ left:0; background-size:cover; diff --git a/layout/newlayout/global.css b/layout/newlayout/global.css index 2c8e3b2d6..97dec0255 100644 --- a/layout/newlayout/global.css +++ b/layout/newlayout/global.css @@ -20,6 +20,7 @@ height: 174px; left:3px; top:3px; + box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px; } #window>.player.minskin>.avatar{ width: 106px; @@ -47,6 +48,7 @@ height: 114px; left:3px; top:3px; + box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px; } .player.minskin .hp, .player.minskin .hp.text{ @@ -136,6 +138,7 @@ top:3px; right:3px; height: 174px; + box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px; } .player .marks, .player .judges{