From 3159e081767a301d2aefa8bd08fe184ecfd9dee3 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sat, 22 Oct 2022 23:11:10 +0800 Subject: [PATCH] v1.9.116.1 --- character/mobile.js | 5 +++-- character/sp.js | 2 +- character/sp2.js | 2 +- game/game.js | 31 ++++++++++++++++++++++----- game/update.js | 42 +++++++++++++++++++------------------ layout/default/layout.css | 17 ++++++++++++--- layout/long2/layout.css | 3 +++ layout/mobile/layout.css | 10 +++++++++ layout/newlayout/global.css | 10 +++++++++ layout/nova/layout.css | 3 +++ 10 files changed, 93 insertions(+), 32 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index ca02032c8..449fc1afe 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -1623,8 +1623,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(event.current&&event.current.countCards('he')){ if(player.hasSkill('mobileyanzhu')||event.targets2.length==1) event.current.chooseCard('选择一张牌置于牌堆顶','he',true); else event.current.chooseCardTarget({ - prompt:'选择一张牌置于牌堆顶,或交给其他目标角色', + prompt:'将一张牌置于牌堆顶,或交给其他目标角色', filterCard:true, + position:'he', filterTarget:function(card,player,target){ return target!=player&&_status.event.getParent().targets2.contains(target); }, @@ -16372,7 +16373,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ list2.add(get.suit(card)); }); list2.removeArray(list); - return list2.length; + return Math.max(1,list2.length); }()],function(card,player){ return !player.countCards('s',function(cardx){ return cardx.hasGaintag('gnjinfan')&&get.suit(cardx,false)==get.suit(card,player); diff --git a/character/sp.js b/character/sp.js index 1389035cf..c618cb1cc 100755 --- a/character/sp.js +++ b/character/sp.js @@ -873,7 +873,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ cards.addArray(cardsx); list.push([current,cardsx]); current.$throw(cardsx); - game.log(current,'将',cardsx,'化作“'+(color==''?'':'')+'”良缘') + game.log(current,'将',cardsx,'化作“'+(color=='black'?'灵杉':'玉树')+'”良缘') } }); event.result.cards=cards; diff --git a/character/sp2.js b/character/sp2.js index 45f842f5b..44d18cc72 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -17426,7 +17426,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ mouni:'谋逆', mouni_info:'准备阶段,你可对一名其他角色依次使用你手牌中所有的【杀】(若其进入了濒死状态,则终止此流程)。然后若这些【杀】中有未造成伤害的【杀】,则你跳过本回合的出牌阶段和弃牌阶段。', zongfan:'纵反', - zongfan_info:'觉醒技,结束阶段,若你本回合内因〖谋逆〗使用过【杀】且未跳过本回合的出牌阶段,则你将任意张牌交给一名其他角色,然后加X点体力上限并回复X点体力(X为你以此法给出的牌数)。最后失去〖谋逆〗并获得〖战孤〗。', + zongfan_info:'觉醒技。结束阶段,若你本回合内因〖谋逆〗使用过【杀】且未跳过本回合的出牌阶段,则你将任意张牌交给一名其他角色,然后加X点体力上限并回复X点体力(X为你以此法给出的牌数且至多为5)。最后失去〖谋逆〗并获得〖战孤〗。', zhangu:'战孤', zhangu_info:'锁定技,准备阶段,若你的体力上限大于1且没有手牌/装备区内没有牌,则你减1点体力上限,然后从牌堆中获得三张类型不同的牌。', re_niujin:'牛金', diff --git a/game/game.js b/game/game.js index 2e738e4c0..3bbc1e3d9 100644 --- a/game/game.js +++ b/game/game.js @@ -2836,6 +2836,15 @@ lib.init.cssstyles(); } }, + suits_font:{ + name:'替换花色字体', + init:true, + unfrequent:true, + intro:'使用全角字符的花色替代系统自带的花色(重启游戏后生效)', + onclick:function(bool){ + game.saveConfig('suits_font',bool); + } + }, update:function(config,map){ if(lib.config.custom_button){ map.custom_button_system_top.show(); @@ -7585,9 +7594,8 @@ lib.configMenu.appearence.config.cardtext_font.item[i]=pack.font[i]; lib.configMenu.appearence.config.global_font.item[i]=pack.font[i]; ui.css.fontsheet.sheet.insertRule("@font-face {font-family: '"+i+"'; src: url('"+lib.assetURL+"font/"+i+".ttf');}",0); - ui.css.fontsheet.sheet.insertRule("@font-face {font-family: '"+i+"'; src: url('"+lib.assetURL+"font/suits.ttf');}",0); } - ui.css.fontsheet.sheet.insertRule("@font-face {font-family: 'Suits'; src: url('"+lib.assetURL+"font/suits.ttf');}",0); + if(lib.config.suits_font) ui.css.fontsheet.sheet.insertRule("@font-face {font-family: 'Suits'; src: url('"+lib.assetURL+"font/suits.ttf');}",0); lib.configMenu.appearence.config.cardtext_font.item.default='默认'; lib.configMenu.appearence.config.global_font.item.default='默认'; } @@ -7650,8 +7658,12 @@ extensionlist.push(lib.config.plays[i]); } } + var alerted=false; for(var i=0;i'+list[i][0]+''); + var tex=event.dialog.add('
'+list[i][0]+'
'); + tex.classList.add('choosetomove'); var buttons=ui.create.div('.buttons',event.dialog.content,clickButtons); buttonss.push(buttons); buttons.classList.add('popup'); @@ -10689,6 +10704,9 @@ } if(list[i][2]&&typeof list[i][2]=='function') buttons.textPrompt=list[i][2]; } + var tex=event.dialog.add('
点击两张牌以交换位置;点击一张牌并点击其他区域以移动卡牌
'); + tex.classList.add('choosetomove'); + event.dialog.open(); updateButtons(); @@ -10723,6 +10741,9 @@ if(ui.confirm) ui.confirm.close(); game.resume(); _status.imchoosing=false; + setTimeout(function(){ + ui.arena.classList.remove('choose-to-move'); + },500); }; game.pause(); diff --git a/game/update.js b/game/update.js index 783326037..70a08e759 100644 --- a/game/update.js +++ b/game/update.js @@ -1,6 +1,6 @@ window.noname_update={ - version:'1.9.116', - update:'1.9.115.3', + version:'1.9.116.1', + update:'1.9.116', changeLog:[ '派对浪客、樱庭星罗入选稿公布', 'OL曹宪曹华、十周年刘巴、陆凯、夏侯令女', @@ -8,13 +8,13 @@ window.noname_update={ '技能调整与bug修复', ], files:[ - 'card/extra.js', + //'card/extra.js', //'card/gujian.js', - 'card/guozhan.js', + //'card/guozhan.js', //'card/gwent.js', //'card/huanlekapai.js', //'card/mtg.js', - 'card/sp.js', + //'card/sp.js', //'card/standard.js', //'card/swd.js', //'card/yunchou.js', @@ -22,8 +22,8 @@ window.noname_update={ //'card/yongjian.js', //'card/zhenfa.js', //'card/zhulu.js', - 'character/diy.js', - 'character/extra.js', + //'character/diy.js', + //'character/extra.js', //'character/hearth.js', //'character/gujian.js', //'character/gwent.js', @@ -31,35 +31,37 @@ window.noname_update={ 'character/mobile.js', //'character/mtg.js', //'character/offline.js', - 'character/old.js', + //'character/old.js', //'character/ow.js', - 'character/rank.js', - 'character/refresh.js', + //'character/rank.js', + //'character/refresh.js', //'character/sb.js', - 'character/shenhua.js', + //'character/shenhua.js', 'character/sp.js', 'character/sp2.js', //'character/standard.js', - 'character/tw.js', + //'character/tw.js', //'character/swd.js', //'character/xianjian.js', //'character/xinghuoliaoyuan.js', //'character/yingbian.js', - 'character/yijiang.js', + //'character/yijiang.js', //'character/yxs.js', //'extension/boss/extension.js', - 'font/suits.ttf', + //'font/suits.ttf', 'layout/default/layout.css', - //'layout/newlayout/global.css', //'layout/default/menu.css', - //'layout/nova/layout.css', + 'layout/long2/layout.css', //'layout/mobile/equip.css', + 'layout/mobile/layout.css', + 'layout/newlayout/global.css', + 'layout/nova/layout.css', //'mode/boss.js', //'mode/brawl.js', //'mode/chess.js', //'mode/connect.js', //'mode/doudizhu.js', - 'mode/guozhan.js', + //'mode/guozhan.js', //'mode/identity.js', //'mode/single.js', //'mode/stone.js', @@ -68,16 +70,16 @@ window.noname_update={ 'game/game.js', //'game/keyWords.js', //'game/NoSleep.js', - 'game/config.js', + //'game/config.js', //'game/package.js', //'game/asset.js', - 'game/source.js', + //'game/source.js', //'theme/style/hp/custom.css', //'theme/style/hp/emotion.css', //'theme/style/hp/glass.css', //'theme/style/hp/image', //'theme/style/hp/official.css', - 'theme/style/hp/ol.css', + //'theme/style/hp/ol.css', //'theme/style/hp/round.css', //'theme/style/hp/xinglass.css', //'theme/style/hp/xinround.css', diff --git a/layout/default/layout.css b/layout/default/layout.css index ff5ef7efe..a438d5be9 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -1156,7 +1156,7 @@ body>.background.land { background-size:cover; } -.popup { +.popup:not(.guanxing) { padding: 5px; } .forcehide { @@ -1449,8 +1449,9 @@ div:not(.handcards)>.card>.info>span, top: 69px; } .buttons.guanxing { - min-height: 110px; + min-height: 106px; width: 90%; + margin: 0px; } .buttons.smallzoom { display: block; @@ -1724,7 +1725,6 @@ div:not(.handcards)>.card>.info>span, height: 100%; top: 0; } - .content>table { width: 100% } @@ -1769,6 +1769,10 @@ div:not(.handcards)>.card>.info>span, .content { display: block; width: 100%; + font-size: 0px; +} +.content>*{ + font-size: 16px; } .dialog:not(.popped) .content { vertical-align: top; @@ -1841,6 +1845,10 @@ div:not(.handcards)>.card>.info>span, font-size: 20px; display: block; } +.caption.choosetomove{ + margin: 5px; + padding: 0px !important; +} .caption:only-child { padding-bottom: 8px; } @@ -2058,6 +2066,9 @@ div:not(.handcards)>.card>.info>span, position: absolute; left: 50%; } +#arena.choose-to-move>#control{ + top: calc(80%) !important; +} /*--------角色--------*/ .player>.avatar>.action { margin: 5px; diff --git a/layout/long2/layout.css b/layout/long2/layout.css index 0a9ff1fd3..8f1ece16e 100644 --- a/layout/long2/layout.css +++ b/layout/long2/layout.css @@ -187,13 +187,16 @@ #arena.ipad.choose-character>.dialog{ bottom:96px; } +#arena.choose-to-move>#control, #arena.choose-character>#control{ bottom: 30px; transition: all 0s; } +#arena.phone.choose-to-move>#control, #arena.phone.choose-character>#control{ bottom: 43px; } +#arena.ipad.choose-to-move>#control, #arena.ipad.choose-character>#control{ bottom: 45px; } diff --git a/layout/mobile/layout.css b/layout/mobile/layout.css index 7f1c91a61..27fd7b260 100644 --- a/layout/mobile/layout.css +++ b/layout/mobile/layout.css @@ -24,6 +24,16 @@ bottom:150px; height: 40px; } +#arena.choose-to-move>#control{ + bottom: 30px; + transition: all 0s; +} +#arena.phone.choose-to-move>#control{ + bottom: 43px; +} +#arena.ipad.choose-to-move>#control{ + bottom: 45px; +} #arena:not(.chess)>#me, #arena:not(.chess)>#mebg, #arena:not(.chess)>#autonode{ diff --git a/layout/newlayout/global.css b/layout/newlayout/global.css index 556c17864..7f75e583e 100644 --- a/layout/newlayout/global.css +++ b/layout/newlayout/global.css @@ -517,6 +517,16 @@ width: calc(100% - 300px); left:150px; } +#arena.choose-to-move>#control{ + bottom: 30px; + transition: all 0s; +} +#arena.phone.choose-to-move>#control{ + bottom: 43px; +} +#arena.ipad.choose-to-move>#control{ + bottom: 45px; +} .popup{z-index:6} .dialog.scroll1, .dialog.scroll2, diff --git a/layout/nova/layout.css b/layout/nova/layout.css index 13b5bd44d..cdae5e5fb 100644 --- a/layout/nova/layout.css +++ b/layout/nova/layout.css @@ -187,13 +187,16 @@ #arena.ipad.choose-character>.dialog{ bottom:96px; } +#arena.choose-to-move>#control, #arena.choose-character>#control{ bottom: 30px; transition: all 0s; } +#arena.phone.choose-to-move>#control, #arena.phone.choose-character>#control{ bottom: 43px; } +#arena.ipad.choose-to-move>#control, #arena.ipad.choose-character>#control{ bottom: 45px; }