From 1bb96e5989eb803e766eb7f0f0f8fefbd6e13279 Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 3 Aug 2017 12:15:31 +0800 Subject: [PATCH] w --- card/gwent.js | 35 +++++++++++++++++++++++-------- character/gwent.js | 41 ++++++++++++++----------------------- game/game.js | 14 ++++++++++--- game/update.js | 1 + layout/default/layout.css | 4 ++++ mode/stone.js | 4 ++-- theme/music/style.css | 4 ++++ theme/style/card/custom.css | 4 ++++ theme/style/card/music.css | 14 +++++++++++++ theme/style/card/new.css | 4 ++++ theme/style/card/ol.css | 5 +++++ theme/style/card/simple.css | 4 ++++ theme/style/card/wood.css | 14 +++++++++++++ theme/woodden/style.css | 4 ++++ 14 files changed, 112 insertions(+), 40 deletions(-) diff --git a/card/gwent.js b/card/gwent.js index 89e2d1210..f651d37c9 100644 --- a/card/gwent.js +++ b/card/gwent.js @@ -1681,6 +1681,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ var info=get.info(skills[i]); if(info&&info.ai&&info.ai.weather){ target.removeSkill(skills[i]); + game.log(target,'解除了','【'+get.translation(skills[i])+'】','的效果'); } } } @@ -1755,11 +1756,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){ subtype:'spell_bronze', enable:true, filterTarget:function(card,player,target){ - return target.isMinHp()&&target.countCards('he'); + return target.isMinHp()&&target.countCards('h'); }, selectTarget:-1, content:function(){ - target.randomDiscard(); + target.randomDiscard('h'); }, ai:{ basic:{ @@ -1795,14 +1796,30 @@ game.import('card',function(lib,game,ui,get,ai,_status){ selectTarget:-1, content:function(){ var list=target.getEnemies(); + var equips=[]; for(var i=0;i.card>.info>span, background-position: -4px -4px; background-repeat: no-repeat; } + +#arena:not(.chess) .player[data-position='0']>.equips>div>.image{ + background-size: 115%; +} /*.equips>div:hover>.info{display: inline-block; animation:equip_hover 1s; -webkit-animation:equip_hover 1s; diff --git a/mode/stone.js b/mode/stone.js index dc7b97f26..231f06d56 100644 --- a/mode/stone.js +++ b/mode/stone.js @@ -1575,10 +1575,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ game.pause(); var list=_status.mylist.slice(0); if(_status.double_character){ - event.dialog=ui.create.dialog('','hidden'); + event.dialog=ui.create.dialog('','hidden','forcebutton'); } else{ - event.dialog=ui.create.dialog('','hidden'); + event.dialog=ui.create.dialog('','hidden','forcebutton'); } var buttons=ui.create.div('.buttons',event.dialog.content); diff --git a/theme/music/style.css b/theme/music/style.css index 784490c7e..ba9568c0b 100644 --- a/theme/music/style.css +++ b/theme/music/style.css @@ -104,3 +104,7 @@ body[data-background_color_music='blue'] #arena.mobile:not(.chess) .player[data- background: linear-gradient(#4b4b4b, #464646); box-shadow: rgba(0,0,0,0.6) 0 0 5px inset; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -6px -6px; +} diff --git a/theme/style/card/custom.css b/theme/style/card/custom.css index dd83d20ff..da2a6ea87 100644 --- a/theme/style/card/custom.css +++ b/theme/style/card/custom.css @@ -29,3 +29,7 @@ right: 3px; top: 3px; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -4px -4px; +} diff --git a/theme/style/card/music.css b/theme/style/card/music.css index c9ee444b4..1b618d9c4 100644 --- a/theme/style/card/music.css +++ b/theme/style/card/music.css @@ -4,3 +4,17 @@ background: url('../../music/wood3.png'); background-size:auto; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -6px -6px; +} + +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5 { + border-radius: 100%; +} +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5>.name{ + display: none; +} +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5>.info{ + display: none; +} diff --git a/theme/style/card/new.css b/theme/style/card/new.css index 977ec448b..2ed8cf53f 100644 --- a/theme/style/card/new.css +++ b/theme/style/card/new.css @@ -30,3 +30,7 @@ right: 3px; top: 3px; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -4px -4px; +} diff --git a/theme/style/card/ol.css b/theme/style/card/ol.css index 4aed6e502..f7aea61c0 100644 --- a/theme/style/card/ol.css +++ b/theme/style/card/ol.css @@ -30,3 +30,8 @@ right: 3px; top: 3px; } + + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -4px -4px; +} diff --git a/theme/style/card/simple.css b/theme/style/card/simple.css index 42fb8aac7..2c3f44fe4 100644 --- a/theme/style/card/simple.css +++ b/theme/style/card/simple.css @@ -30,3 +30,7 @@ right: 3px; top: 3px; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -4px -4px; +} diff --git a/theme/style/card/wood.css b/theme/style/card/wood.css index eb1a801f5..28f26d3c3 100644 --- a/theme/style/card/wood.css +++ b/theme/style/card/wood.css @@ -4,3 +4,17 @@ background: url('../../woodden/wood.jpg'); background-size:auto; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -6px -6px; +} + +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5 { + border-radius: 100%; +} +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5>.name{ + display: none; +} +#arena.mobile:not(.chess) .player[data-position='0']>.equips>.equip5>.info{ + display: none; +} diff --git a/theme/woodden/style.css b/theme/woodden/style.css index c972c00b7..1a47c40dc 100644 --- a/theme/woodden/style.css +++ b/theme/woodden/style.css @@ -242,3 +242,7 @@ html{ .menubg.charactercard>.ava>.avatar{ box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.3) 0 0 5px; } + +#arena:not(.chess) .player[data-position='0']>.equips>.equip5>.image{ + background-position: -6px -6px; +}