v1.9.116.1

This commit is contained in:
Spmario233 2022-10-22 23:11:10 +08:00
parent 857f53d8f1
commit 3159e08176
10 changed files with 93 additions and 32 deletions

View File

@ -1623,8 +1623,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(event.current&&event.current.countCards('he')){ if(event.current&&event.current.countCards('he')){
if(player.hasSkill('mobileyanzhu')||event.targets2.length==1) event.current.chooseCard('选择一张牌置于牌堆顶','he',true); if(player.hasSkill('mobileyanzhu')||event.targets2.length==1) event.current.chooseCard('选择一张牌置于牌堆顶','he',true);
else event.current.chooseCardTarget({ else event.current.chooseCardTarget({
prompt:'选择一张牌置于牌堆顶,或交给其他目标角色', prompt:'一张牌置于牌堆顶,或交给其他目标角色',
filterCard:true, filterCard:true,
position:'he',
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
return target!=player&&_status.event.getParent().targets2.contains(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.add(get.suit(card));
}); });
list2.removeArray(list); list2.removeArray(list);
return list2.length; return Math.max(1,list2.length);
}()],function(card,player){ }()],function(card,player){
return !player.countCards('s',function(cardx){ return !player.countCards('s',function(cardx){
return cardx.hasGaintag('gnjinfan')&&get.suit(cardx,false)==get.suit(card,player); return cardx.hasGaintag('gnjinfan')&&get.suit(cardx,false)==get.suit(card,player);

View File

@ -873,7 +873,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
cards.addArray(cardsx); cards.addArray(cardsx);
list.push([current,cardsx]); list.push([current,cardsx]);
current.$throw(cardsx); current.$throw(cardsx);
game.log(current,'将',cardsx,'化作“'+(color==''?'':'')+'”良缘') game.log(current,'将',cardsx,'化作“'+(color=='black'?'灵杉':'玉树')+'”良缘')
} }
}); });
event.result.cards=cards; event.result.cards=cards;

View File

@ -17426,7 +17426,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mouni:'谋逆', mouni:'谋逆',
mouni_info:'准备阶段,你可对一名其他角色依次使用你手牌中所有的【杀】(若其进入了濒死状态,则终止此流程)。然后若这些【杀】中有未造成伤害的【杀】,则你跳过本回合的出牌阶段和弃牌阶段。', mouni_info:'准备阶段,你可对一名其他角色依次使用你手牌中所有的【杀】(若其进入了濒死状态,则终止此流程)。然后若这些【杀】中有未造成伤害的【杀】,则你跳过本回合的出牌阶段和弃牌阶段。',
zongfan:'纵反', zongfan:'纵反',
zongfan_info:'觉醒技结束阶段若你本回合内因〖谋逆〗使用过【杀】且未跳过本回合的出牌阶段则你将任意张牌交给一名其他角色然后加X点体力上限并回复X点体力X为你以此法给出的牌数。最后失去〖谋逆〗并获得〖战孤〗。', zongfan_info:'觉醒技结束阶段若你本回合内因〖谋逆〗使用过【杀】且未跳过本回合的出牌阶段则你将任意张牌交给一名其他角色然后加X点体力上限并回复X点体力X为你以此法给出的牌数且至多为5)。最后失去〖谋逆〗并获得〖战孤〗。',
zhangu:'战孤', zhangu:'战孤',
zhangu_info:'锁定技准备阶段若你的体力上限大于1且没有手牌/装备区内没有牌则你减1点体力上限然后从牌堆中获得三张类型不同的牌。', zhangu_info:'锁定技准备阶段若你的体力上限大于1且没有手牌/装备区内没有牌则你减1点体力上限然后从牌堆中获得三张类型不同的牌。',
re_niujin:'牛金', re_niujin:'牛金',

View File

@ -2836,6 +2836,15 @@
lib.init.cssstyles(); lib.init.cssstyles();
} }
}, },
suits_font:{
name:'替换花色字体',
init:true,
unfrequent:true,
intro:'使用全角字符的花色替代系统自带的花色(重启游戏后生效)',
onclick:function(bool){
game.saveConfig('suits_font',bool);
}
},
update:function(config,map){ update:function(config,map){
if(lib.config.custom_button){ if(lib.config.custom_button){
map.custom_button_system_top.show(); 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.cardtext_font.item[i]=pack.font[i];
lib.configMenu.appearence.config.global_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/"+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.cardtext_font.item.default='默认';
lib.configMenu.appearence.config.global_font.item.default='默认'; lib.configMenu.appearence.config.global_font.item.default='默认';
} }
@ -7650,8 +7658,12 @@
extensionlist.push(lib.config.plays[i]); extensionlist.push(lib.config.plays[i]);
} }
} }
var alerted=false;
for(var i=0;i<lib.config.extensions.length;i++){ for(var i=0;i<lib.config.extensions.length;i++){
if(window.bannedExtensions.contains(lib.config.extensions[i])) continue; if(!alerted&&window.bannedExtensions.contains(lib.config.extensions[i])){
alerted=true;
alert('读取某些扩展时出现问题。');
};
var extcontent=localStorage.getItem(lib.configprefix+'extension_'+lib.config.extensions[i]); var extcontent=localStorage.getItem(lib.configprefix+'extension_'+lib.config.extensions[i]);
if(extcontent){ if(extcontent){
_status.evaluatingExtension=true; _status.evaluatingExtension=true;
@ -9286,7 +9298,7 @@
} }
if(lib.config.global_font&&lib.config.global_font!='default'){ if(lib.config.global_font&&lib.config.global_font!='default'){
ui.css.styles.sheet.insertRule('#window {font-family: '+lib.config.global_font+',xinwei}',0); ui.css.styles.sheet.insertRule('#window {font-family: '+lib.config.global_font+',xinwei}',0);
ui.css.styles.sheet.insertRule('#window #control{font-family: STHeiti,SimHei,Microsoft JhengHei,Microsoft YaHei,WenQuanYi Micro Hei,Helvetica,Arial,sans-serif}',0); ui.css.styles.sheet.insertRule('#window #control{font-family: STHeiti,SimHei,Microsoft JhengHei,Microsoft YaHei,WenQuanYi Micro Hei,Suits,Helvetica,Arial,sans-serif}',0);
} }
switch(lib.config.glow_phase){ switch(lib.config.glow_phase){
case 'yellow':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(217, 152, 62) 0 0 15px, rgb(217, 152, 62) 0 0 15px !important;}',0);break; case 'yellow':ui.css.styles.sheet.insertRule('#arena .player:not(.selectable):not(.selected).glow_phase {box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgb(217, 152, 62) 0 0 15px, rgb(217, 152, 62) 0 0 15px !important;}',0);break;
@ -10617,6 +10629,7 @@
},event.chooseTime); },event.chooseTime);
} }
if(event.isMine()){ if(event.isMine()){
ui.arena.classList.add('choose-to-move');
delete ui.selected.guanxing_button; delete ui.selected.guanxing_button;
var list=event.list,filterMove=event.filterMove,filterOk=event.filterOk; var list=event.list,filterMove=event.filterMove,filterOk=event.filterOk;
_status.imchoosing=true; _status.imchoosing=true;
@ -10642,6 +10655,7 @@
event.dialog.classList.add('scroll1'); event.dialog.classList.add('scroll1');
event.dialog.classList.add('scroll2'); event.dialog.classList.add('scroll2');
event.dialog.classList.add('fullwidth'); event.dialog.classList.add('fullwidth');
event.dialog.classList.add('fullheight');
event.moved=[]; event.moved=[];
var buttonss=[]; var buttonss=[];
@ -10670,7 +10684,8 @@
}; };
for(var i=0;i<list.length;i++){ for(var i=0;i<list.length;i++){
event.dialog.add('<div class="text center">'+list[i][0]+'</div>'); var tex=event.dialog.add('<div class="text center">'+list[i][0]+'</div>');
tex.classList.add('choosetomove');
var buttons=ui.create.div('.buttons',event.dialog.content,clickButtons); var buttons=ui.create.div('.buttons',event.dialog.content,clickButtons);
buttonss.push(buttons); buttonss.push(buttons);
buttons.classList.add('popup'); buttons.classList.add('popup');
@ -10689,6 +10704,9 @@
} }
if(list[i][2]&&typeof list[i][2]=='function') buttons.textPrompt=list[i][2]; if(list[i][2]&&typeof list[i][2]=='function') buttons.textPrompt=list[i][2];
} }
var tex=event.dialog.add('<div class="text center">点击两张牌以交换位置;点击一张牌并点击其他区域以移动卡牌</div>');
tex.classList.add('choosetomove');
event.dialog.open(); event.dialog.open();
updateButtons(); updateButtons();
@ -10723,6 +10741,9 @@
if(ui.confirm) ui.confirm.close(); if(ui.confirm) ui.confirm.close();
game.resume(); game.resume();
_status.imchoosing=false; _status.imchoosing=false;
setTimeout(function(){
ui.arena.classList.remove('choose-to-move');
},500);
}; };
game.pause(); game.pause();

View File

@ -1,6 +1,6 @@
window.noname_update={ window.noname_update={
version:'1.9.116', version:'1.9.116.1',
update:'1.9.115.3', update:'1.9.116',
changeLog:[ changeLog:[
'派对浪客、樱庭星罗入选稿公布', '派对浪客、樱庭星罗入选稿公布',
'OL曹宪曹华、十周年刘巴、陆凯、夏侯令女', 'OL曹宪曹华、十周年刘巴、陆凯、夏侯令女',
@ -8,13 +8,13 @@ window.noname_update={
'技能调整与bug修复', '技能调整与bug修复',
], ],
files:[ files:[
'card/extra.js', //'card/extra.js',
//'card/gujian.js', //'card/gujian.js',
'card/guozhan.js', //'card/guozhan.js',
//'card/gwent.js', //'card/gwent.js',
//'card/huanlekapai.js', //'card/huanlekapai.js',
//'card/mtg.js', //'card/mtg.js',
'card/sp.js', //'card/sp.js',
//'card/standard.js', //'card/standard.js',
//'card/swd.js', //'card/swd.js',
//'card/yunchou.js', //'card/yunchou.js',
@ -22,8 +22,8 @@ window.noname_update={
//'card/yongjian.js', //'card/yongjian.js',
//'card/zhenfa.js', //'card/zhenfa.js',
//'card/zhulu.js', //'card/zhulu.js',
'character/diy.js', //'character/diy.js',
'character/extra.js', //'character/extra.js',
//'character/hearth.js', //'character/hearth.js',
//'character/gujian.js', //'character/gujian.js',
//'character/gwent.js', //'character/gwent.js',
@ -31,35 +31,37 @@ window.noname_update={
'character/mobile.js', 'character/mobile.js',
//'character/mtg.js', //'character/mtg.js',
//'character/offline.js', //'character/offline.js',
'character/old.js', //'character/old.js',
//'character/ow.js', //'character/ow.js',
'character/rank.js', //'character/rank.js',
'character/refresh.js', //'character/refresh.js',
//'character/sb.js', //'character/sb.js',
'character/shenhua.js', //'character/shenhua.js',
'character/sp.js', 'character/sp.js',
'character/sp2.js', 'character/sp2.js',
//'character/standard.js', //'character/standard.js',
'character/tw.js', //'character/tw.js',
//'character/swd.js', //'character/swd.js',
//'character/xianjian.js', //'character/xianjian.js',
//'character/xinghuoliaoyuan.js', //'character/xinghuoliaoyuan.js',
//'character/yingbian.js', //'character/yingbian.js',
'character/yijiang.js', //'character/yijiang.js',
//'character/yxs.js', //'character/yxs.js',
//'extension/boss/extension.js', //'extension/boss/extension.js',
'font/suits.ttf', //'font/suits.ttf',
'layout/default/layout.css', 'layout/default/layout.css',
//'layout/newlayout/global.css',
//'layout/default/menu.css', //'layout/default/menu.css',
//'layout/nova/layout.css', 'layout/long2/layout.css',
//'layout/mobile/equip.css', //'layout/mobile/equip.css',
'layout/mobile/layout.css',
'layout/newlayout/global.css',
'layout/nova/layout.css',
//'mode/boss.js', //'mode/boss.js',
//'mode/brawl.js', //'mode/brawl.js',
//'mode/chess.js', //'mode/chess.js',
//'mode/connect.js', //'mode/connect.js',
//'mode/doudizhu.js', //'mode/doudizhu.js',
'mode/guozhan.js', //'mode/guozhan.js',
//'mode/identity.js', //'mode/identity.js',
//'mode/single.js', //'mode/single.js',
//'mode/stone.js', //'mode/stone.js',
@ -68,16 +70,16 @@ window.noname_update={
'game/game.js', 'game/game.js',
//'game/keyWords.js', //'game/keyWords.js',
//'game/NoSleep.js', //'game/NoSleep.js',
'game/config.js', //'game/config.js',
//'game/package.js', //'game/package.js',
//'game/asset.js', //'game/asset.js',
'game/source.js', //'game/source.js',
//'theme/style/hp/custom.css', //'theme/style/hp/custom.css',
//'theme/style/hp/emotion.css', //'theme/style/hp/emotion.css',
//'theme/style/hp/glass.css', //'theme/style/hp/glass.css',
//'theme/style/hp/image', //'theme/style/hp/image',
//'theme/style/hp/official.css', //'theme/style/hp/official.css',
'theme/style/hp/ol.css', //'theme/style/hp/ol.css',
//'theme/style/hp/round.css', //'theme/style/hp/round.css',
//'theme/style/hp/xinglass.css', //'theme/style/hp/xinglass.css',
//'theme/style/hp/xinround.css', //'theme/style/hp/xinround.css',

View File

@ -1156,7 +1156,7 @@ body>.background.land {
background-size:cover; background-size:cover;
} }
.popup { .popup:not(.guanxing) {
padding: 5px; padding: 5px;
} }
.forcehide { .forcehide {
@ -1449,8 +1449,9 @@ div:not(.handcards)>.card>.info>span,
top: 69px; top: 69px;
} }
.buttons.guanxing { .buttons.guanxing {
min-height: 110px; min-height: 106px;
width: 90%; width: 90%;
margin: 0px;
} }
.buttons.smallzoom { .buttons.smallzoom {
display: block; display: block;
@ -1724,7 +1725,6 @@ div:not(.handcards)>.card>.info>span,
height: 100%; height: 100%;
top: 0; top: 0;
} }
.content>table { .content>table {
width: 100% width: 100%
} }
@ -1769,6 +1769,10 @@ div:not(.handcards)>.card>.info>span,
.content { .content {
display: block; display: block;
width: 100%; width: 100%;
font-size: 0px;
}
.content>*{
font-size: 16px;
} }
.dialog:not(.popped) .content { .dialog:not(.popped) .content {
vertical-align: top; vertical-align: top;
@ -1841,6 +1845,10 @@ div:not(.handcards)>.card>.info>span,
font-size: 20px; font-size: 20px;
display: block; display: block;
} }
.caption.choosetomove{
margin: 5px;
padding: 0px !important;
}
.caption:only-child { .caption:only-child {
padding-bottom: 8px; padding-bottom: 8px;
} }
@ -2058,6 +2066,9 @@ div:not(.handcards)>.card>.info>span,
position: absolute; position: absolute;
left: 50%; left: 50%;
} }
#arena.choose-to-move>#control{
top: calc(80%) !important;
}
/*--------角色--------*/ /*--------角色--------*/
.player>.avatar>.action { .player>.avatar>.action {
margin: 5px; margin: 5px;

View File

@ -187,13 +187,16 @@
#arena.ipad.choose-character>.dialog{ #arena.ipad.choose-character>.dialog{
bottom:96px; bottom:96px;
} }
#arena.choose-to-move>#control,
#arena.choose-character>#control{ #arena.choose-character>#control{
bottom: 30px; bottom: 30px;
transition: all 0s; transition: all 0s;
} }
#arena.phone.choose-to-move>#control,
#arena.phone.choose-character>#control{ #arena.phone.choose-character>#control{
bottom: 43px; bottom: 43px;
} }
#arena.ipad.choose-to-move>#control,
#arena.ipad.choose-character>#control{ #arena.ipad.choose-character>#control{
bottom: 45px; bottom: 45px;
} }

View File

@ -24,6 +24,16 @@
bottom:150px; bottom:150px;
height: 40px; 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)>#me,
#arena:not(.chess)>#mebg, #arena:not(.chess)>#mebg,
#arena:not(.chess)>#autonode{ #arena:not(.chess)>#autonode{

View File

@ -517,6 +517,16 @@
width: calc(100% - 300px); width: calc(100% - 300px);
left:150px; 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} .popup{z-index:6}
.dialog.scroll1, .dialog.scroll1,
.dialog.scroll2, .dialog.scroll2,

View File

@ -187,13 +187,16 @@
#arena.ipad.choose-character>.dialog{ #arena.ipad.choose-character>.dialog{
bottom:96px; bottom:96px;
} }
#arena.choose-to-move>#control,
#arena.choose-character>#control{ #arena.choose-character>#control{
bottom: 30px; bottom: 30px;
transition: all 0s; transition: all 0s;
} }
#arena.phone.choose-to-move>#control,
#arena.phone.choose-character>#control{ #arena.phone.choose-character>#control{
bottom: 43px; bottom: 43px;
} }
#arena.ipad.choose-to-move>#control,
#arena.ipad.choose-character>#control{ #arena.ipad.choose-character>#control{
bottom: 45px; bottom: 45px;
} }