This commit is contained in:
libccy 2016-08-29 19:00:45 +08:00
parent f1977725ee
commit 02e8455f25
13 changed files with 96 additions and 36 deletions

View File

@ -1365,7 +1365,7 @@ card.standard={
},player); },player);
event.jiu=true; event.jiu=true;
} }
player.chooseToUse('是否发动青龙偃月刀?',{name:'sha'},trigger.target,-1).logSkill='qinglong'; player.chooseToUse('是否发动青龙偃月刀?',{name:'sha'},trigger.target,-1).logSkill='qinglong_skill';
"step 1" "step 1"
if(result.bool); if(result.bool);
else if(event.jiu){ else if(event.jiu){

View File

@ -4738,8 +4738,8 @@ character.hearth={
fengxing_info:'每当你使用一张杀,你可以摸一张牌', fengxing_info:'每当你使用一张杀,你可以摸一张牌',
xinci:'心刺', xinci:'心刺',
xinci_info:'出牌阶段限一次,你可以弃置一张黑色牌令一名角色流失一点体力', xinci_info:'出牌阶段限一次,你可以弃置一张黑色牌令一名角色流失一点体力',
zhongjia:'甲', zhongjia:'甲',
zhongjia_info:'锁定技,每当你受到一次伤害,你获得一点护甲当你的体力值大于1时你的护甲不为你抵挡伤害', zhongjia_info:'锁定技,每当你受到一次伤害,你获得一点护甲当你的体力值大于1时你的护甲不为你抵挡伤害',
dunji:'盾击', dunji:'盾击',
dunji_info:'出牌阶段,你可以失去你的所有护甲,并对等量的其他角色各造成一点伤害', dunji_info:'出牌阶段,你可以失去你的所有护甲,并对等量的其他角色各造成一点伤害',
qiaodong:'巧动', qiaodong:'巧动',

View File

@ -2572,7 +2572,7 @@ character.ow={
translate:{ translate:{
mengji:'猛击', mengji:'猛击',
mengji_info:'锁定技,当你没有护甲时,你的杀造成的伤害+1', mengji_info:'锁定技,当你没有护甲时,你的杀造成的伤害+1',
lzhongjia:'重', lzhongjia:'重',
lzhongjia_info:'游戏开始时你获得8点护甲出牌阶段限一次你可以弃置一张牌并将一点护甲分给一名没有护甲的其他角色', lzhongjia_info:'游戏开始时你获得8点护甲出牌阶段限一次你可以弃置一张牌并将一点护甲分给一名没有护甲的其他角色',
paotai:'炮台', paotai:'炮台',
paotai2:'炮台', paotai2:'炮台',

View File

@ -2012,7 +2012,7 @@ character.yijiang={
event.jiu=true; event.jiu=true;
} }
player.chooseToUse('是否对'+get.translation(trigger.target)+'再使用一张杀?', player.chooseToUse('是否对'+get.translation(trigger.target)+'再使用一张杀?',
{name:'sha'},trigger.target,-1).logSkill='qinglong'; {name:'sha'},trigger.target,-1).logSkill='qinglong_skill';
"step 3" "step 3"
if(result.bool); if(result.bool);
else if(event.jiu){ else if(event.jiu){

View File

@ -24,7 +24,7 @@ window.config={
forbidchess:['hetaihou','swd_kangnalishi'], forbidchess:['hetaihou','swd_kangnalishi'],
forbidboss:['caiwenji','gjqt_aruan','pal_xuanxiao','swd_hupo'], forbidboss:['caiwenji','gjqt_aruan','pal_xuanxiao','swd_hupo'],
forbiddouble:['zhugedan','swd_kangnalishi','dongzhuo','wutugu','jg_simayi','hs_siwangzhiyi','hs_ronghejuren','hs_shanlingjuren'], forbiddouble:['zhugedan','swd_kangnalishi','dongzhuo','wutugu','jg_simayi','hs_siwangzhiyi','hs_ronghejuren','hs_shanlingjuren'],
layoutfixed:['chess'], layoutfixed:['chess','brawl'],
all:{ all:{
stockmode:['identity','guozhan','versus','boss','chess','stone','connect','brawl','tafang'], stockmode:['identity','guozhan','versus','boss','chess','stone','connect','brawl','tafang'],
layout:['default','newlayout'], layout:['default','newlayout'],

View File

@ -6527,6 +6527,7 @@
else{ else{
event.dialog.add('选择'+get.translation(target)+'的一张牌'); event.dialog.add('选择'+get.translation(target)+'的一张牌');
} }
var directh=true;
for(var i=0;i<event.position.length;i++){ for(var i=0;i<event.position.length;i++){
if(event.position[i]=='h'&&target.num('h')){ if(event.position[i]=='h'&&target.num('h')){
event.dialog.add('手牌'); event.dialog.add('手牌');
@ -6534,6 +6535,7 @@
hs.randomSort(); hs.randomSort();
if(event.visible||target.isUnderControl(true)){ if(event.visible||target.isUnderControl(true)){
event.dialog.add(hs); event.dialog.add(hs);
directh=false;
} }
else{ else{
event.dialog.add([hs,'blank']); event.dialog.add([hs,'blank']);
@ -6542,10 +6544,12 @@
else if(event.position[i]=='e'&&target.num('e')){ else if(event.position[i]=='e'&&target.num('e')){
event.dialog.add('装备牌'); event.dialog.add('装备牌');
event.dialog.add(target.get('e')); event.dialog.add(target.get('e'));
directh=false;
} }
else if(event.position[i]=='j'&&target.num('j')){ else if(event.position[i]=='j'&&target.num('j')){
event.dialog.add('判定牌'); event.dialog.add('判定牌');
event.dialog.add(target.get('j')); event.dialog.add(target.get('j'));
directh=false;
} }
} }
if(event.dialog.buttons.length==0){ if(event.dialog.buttons.length==0){
@ -6553,13 +6557,24 @@
return; return;
} }
var cs=target.get(event.position||'h'); var cs=target.get(event.position||'h');
if(event.forced&&get.select(event.selectButton)[0]>=cs.length){ var select=get.select(event.selectButton);
if(event.forced&&select[0]>=cs.length){
event.result={ event.result={
bool:true, bool:true,
buttons:event.dialog.buttons, buttons:event.dialog.buttons,
links:cs links:cs
} }
} }
else if(event.forced&&directh&&select[0]==select[1]){
event.result={
bool:true,
buttons:event.dialog.buttons.randomGets(select[0]),
links:[]
}
for(var i=0;i<event.result.buttons.length;i++){
event.result.links[i]=event.result.buttons[i].link;
}
}
else{ else{
if(event.isMine()){ if(event.isMine()){
event.dialog.open(); event.dialog.open();
@ -6602,6 +6617,7 @@
if(event.prompt){ if(event.prompt){
event.dialog.add(event.prompt); event.dialog.add(event.prompt);
} }
var directh=true;
for(var i=0;i<event.position.length;i++){ for(var i=0;i<event.position.length;i++){
if(event.position[i]=='h'&&target.num('h')){ if(event.position[i]=='h'&&target.num('h')){
event.dialog.add('手牌'); event.dialog.add('手牌');
@ -6609,6 +6625,7 @@
hs.randomSort(); hs.randomSort();
if(event.visible||target.isUnderControl(true)){ if(event.visible||target.isUnderControl(true)){
event.dialog.add(hs); event.dialog.add(hs);
directh=false;
} }
else{ else{
event.dialog.add([hs,'blank']); event.dialog.add([hs,'blank']);
@ -6617,10 +6634,12 @@
else if(event.position[i]=='e'&&target.num('e')){ else if(event.position[i]=='e'&&target.num('e')){
event.dialog.add('装备牌'); event.dialog.add('装备牌');
event.dialog.add(target.get('e')); event.dialog.add(target.get('e'));
directh=false;
} }
else if(event.position[i]=='j'&&target.num('j')){ else if(event.position[i]=='j'&&target.num('j')){
event.dialog.add('判定牌'); event.dialog.add('判定牌');
event.dialog.add(target.get('j')); event.dialog.add(target.get('j'));
directh=false;
} }
} }
if(event.dialog.buttons.length==0){ if(event.dialog.buttons.length==0){
@ -6628,13 +6647,24 @@
return; return;
} }
var cs=target.get(event.position||'h'); var cs=target.get(event.position||'h');
if(event.forced&&get.select(event.selectButton)[0]>=cs.length){ var select=get.select(event.selectButton);
if(event.forced&&select[0]>=cs.length){
event.result={ event.result={
bool:true, bool:true,
buttons:event.dialog.buttons, buttons:event.dialog.buttons,
links:cs links:cs
} }
} }
else if(event.forced&&directh&&select[0]==select[1]){
event.result={
bool:true,
buttons:event.dialog.buttons.randomGets(select[0]),
links:[]
}
for(var i=0;i<event.result.buttons.length;i++){
event.result.links[i]=event.result.buttons[i].link;
}
}
else{ else{
if(event.isMine()){ if(event.isMine()){
event.dialog.open(); event.dialog.open();
@ -6693,6 +6723,7 @@
if(event.prompt){ if(event.prompt){
event.dialog.add(event.prompt); event.dialog.add(event.prompt);
} }
var directh=true;
for(var i=0;i<event.position.length;i++){ for(var i=0;i<event.position.length;i++){
if(event.position[i]=='h'&&target.num('h')){ if(event.position[i]=='h'&&target.num('h')){
event.dialog.add('手牌'); event.dialog.add('手牌');
@ -6700,6 +6731,7 @@
hs.randomSort(); hs.randomSort();
if(event.visible||target.isUnderControl(true)){ if(event.visible||target.isUnderControl(true)){
event.dialog.add(hs); event.dialog.add(hs);
directh=false;
} }
else{ else{
event.dialog.add([hs,'blank']); event.dialog.add([hs,'blank']);
@ -6708,10 +6740,12 @@
else if(event.position[i]=='e'&&target.num('e')){ else if(event.position[i]=='e'&&target.num('e')){
event.dialog.add('装备牌'); event.dialog.add('装备牌');
event.dialog.add(target.get('e')); event.dialog.add(target.get('e'));
directh=false;
} }
else if(event.position[i]=='j'&&target.num('j')){ else if(event.position[i]=='j'&&target.num('j')){
event.dialog.add('判定牌'); event.dialog.add('判定牌');
event.dialog.add(target.get('j')); event.dialog.add(target.get('j'));
directh=false;
} }
} }
if(event.dialog.buttons.length==0){ if(event.dialog.buttons.length==0){
@ -6720,13 +6754,24 @@
return; return;
} }
var cs=target.get(event.position||'h'); var cs=target.get(event.position||'h');
if(event.forced&&get.select(event.selectButton)[0]>=cs.length){ var select=get.select(event.selectButton);
if(event.forced&&select[0]>=cs.length){
event.result={ event.result={
bool:true, bool:true,
buttons:event.dialog.buttons, buttons:event.dialog.buttons,
links:cs links:cs
} }
} }
else if(event.forced&&directh&&select[0]==select[1]){
event.result={
bool:true,
buttons:event.dialog.buttons.randomGets(select[0]),
links:[]
}
for(var i=0;i<event.result.buttons.length;i++){
event.result.links[i]=event.result.buttons[i].link;
}
}
else{ else{
if(event.isMine()){ if(event.isMine()){
event.dialog.open(); event.dialog.open();
@ -10362,7 +10407,7 @@
if(logv===true){ if(logv===true){
game.logv(this,name,targets,null,true); game.logv(this,name,targets,null,true);
} }
else if(info.logv!==false){ else if(info&&info.logv!==false){
game.logv(this,name,targets); game.logv(this,name,targets);
} }
}, },
@ -18981,6 +19026,9 @@
}); });
}, },
switchMode:function(name,configx){ switchMode:function(name,configx){
if(lib.config.layout=='default'&&lib.config.layoutfixed.contains(lib.config.mode)&&!lib.config.layoutfixed.contains(name)){
lib.init.layout('default');
}
window.mode={}; window.mode={};
var script=lib.init.js(lib.assetURL+'mode',name,function(){ var script=lib.init.js(lib.assetURL+'mode',name,function(){
script.remove(); script.remove();
@ -30326,7 +30374,7 @@
} }
} }
else{ else{
if(!ui.dialog.buttons||!ui.dialog.buttons.length){ if((!ui.dialog.buttons||!ui.dialog.buttons.length)&&ui.dialog.classList.contains('fullheight')==false){
ui.dialog.classList.add('nobutton'); ui.dialog.classList.add('nobutton');
if(ui.dialog.content.offsetHeight<240){ if(ui.dialog.content.offsetHeight<240){
if(!ui.dialog._heightset){ if(!ui.dialog._heightset){

View File

@ -1,14 +1,21 @@
window.noname_update={ window.noname_update={
version:'1.9.0', version:'1.9.0.1',
changeLog:[ changeLog:[
'增加乱斗模式', 'bug修复',
'显示时间选项',
'历史记录栏',
'更新源调整',
], ],
files:{ files:{
global:[ global:[
'game/game.js', 'game/game.js',
'game/config.js',
'card/standard.js',
'character/hearth.js',
'character/ow.js',
'character/yijiang.js',
'mode/brawl.js',
'layout/mode/chess.css',
'layout/default/layout.css',
'layout/mobile/layout.css',
], ],
'1.9.0':[]
} }
} }

View File

@ -296,11 +296,11 @@ table{table-layout: fixed;}
#arena[data-font_size='20']{ #arena[data-font_size='20']{
font-size:20px; font-size:20px;
}*/ }*/
#arena{width:90%;height: 90%;top: calc(5% + 10px);left: 5%;} #arena{width:94%;height: 90%;top: calc(5% + 10px);left: 3%;}
#arena.right:not(.noleft){left:240px;opacity: 0.6;} #arena.right:not(.noleft){left:240px;opacity: 0.6;}
#arena.left:not(.noleft){left:calc(10% - 240px);opacity: 0.6;} #arena.left:not(.noleft){left:calc(10% - 240px);opacity: 0.6;}
#window.leftbar #arena:not(.chess){left:calc(5% + 50px);width: calc(90% - 50px)} #window.leftbar #arena:not(.chess){left: calc(3% + 50px);width: calc(94% - 50px);}
#window.rightbar #arena:not(.chess){width: calc(90% - 50px)} #window.rightbar #arena:not(.chess){width: calc(94% - 50px);}
#arena.top{top:-100%;} #arena.top{top:-100%;}
#arena.paused,#arena.unfocus,#historybar.paused{opacity: 0.3 !important;} #arena.paused,#arena.unfocus,#historybar.paused{opacity: 0.3 !important;}
#arena.paused2{opacity: 0.1 !important;} #arena.paused2{opacity: 0.1 !important;}
@ -329,7 +329,7 @@ table{table-layout: fixed;}
opacity: 0.3 !important; opacity: 0.3 !important;
} }
#historybar{ #historybar{
left: 2.5%; left: 1.5%;
width: 50px; width: 50px;
height: calc(90% - 20px); height: calc(90% - 20px);
top: calc(5% + 25px); top: calc(5% + 25px);
@ -403,7 +403,7 @@ table{table-layout: fixed;}
} }
#window.rightbar #historybar, #window.rightbar #historybar,
#window.rightbar2:not(.leftbar) #historybar{ #window.rightbar2:not(.leftbar) #historybar{
left: calc(97.5% - 50px); left: calc(98.5% - 50px);
} }
#window.leftbar #historybar, #window.leftbar #historybar,
#window.rightbar #historybar{ #window.rightbar #historybar{

View File

@ -3,25 +3,11 @@
@import "equip.css"; @import "equip.css";
#arena{ #arena{
width: 94%;
height: calc(95% + 20px); height: calc(95% + 20px);
left: 3%;
}
#window.leftbar #arena:not(.chess){
left: calc(3% + 50px);
width: calc(94% - 50px);
}
#window.rightbar #arena:not(.chess){
width: calc(94% - 50px);
} }
#historybar{ #historybar{
left: 1.5%;
height: calc(95% - 160px); height: calc(95% - 160px);
} }
#window.rightbar #historybar,
#window.rightbar2:not(.leftbar) #historybar{
left: calc(98.5% - 50px);
}
#control{ #control{
width: calc(5000% / 47 - 240px); width: calc(5000% / 47 - 240px);
left:calc(-150% / 47 + 120px); left:calc(-150% / 47 + 120px);
@ -44,6 +30,10 @@
border-radius:0 !important; border-radius:0 !important;
height:120px; height:120px;
} }
#arena:not(.chess)>#autonode{
width: calc(5000% / 47 - 240px);
left:calc(-150% / 47 + 120px);
}
#window.leftbar #arena:not(.chess)>#me, #window.leftbar #arena:not(.chess)>#me,
#window.leftbar #arena:not(.chess)>#mebg, #window.leftbar #arena:not(.chess)>#mebg,
#window.leftbar #arena:not(.chess)>#autonode, #window.leftbar #arena:not(.chess)>#autonode,
@ -51,6 +41,10 @@
width: calc(5000% / 47 + 2500px / 47); width: calc(5000% / 47 + 2500px / 47);
left:calc(-150% / 47 - 50px - 75px / 47); left:calc(-150% / 47 - 50px - 75px / 47);
} }
#window.leftbar #arena:not(.chess)>#autonode{
width: calc(5000% / 47 + 2500px / 47 - 240px);
left:calc(-150% / 47 - 50px - 75px / 47 + 120px);
}
#window.rightbar #arena:not(.chess)>#me, #window.rightbar #arena:not(.chess)>#me,
#window.rightbar #arena:not(.chess)>#mebg, #window.rightbar #arena:not(.chess)>#mebg,
#window.rightbar #arena:not(.chess)>#autonode, #window.rightbar #arena:not(.chess)>#autonode,
@ -58,6 +52,10 @@
width: calc(5000% / 47 + 2500px / 47); width: calc(5000% / 47 + 2500px / 47);
left:calc(-150% / 47 - 75px / 47); left:calc(-150% / 47 - 75px / 47);
} }
#window.rightbar #arena:not(.chess)>#autonode{
width: calc(5000% / 47 + 2500px / 47 - 240px);
left:calc(-150% / 47 - 75px / 47 + 120px);
}
#arena:not(.chess) #handcards1{ #arena:not(.chess) #handcards1{
height:120px; height:120px;
padding:0; padding:0;

View File

@ -12,6 +12,10 @@
top:auto; top:auto;
border-radius:0; border-radius:0;
} }
#arena.chess>#autonode{
width: calc(100% - 240px);
left: 120px;
}
#me>.fakeme.avatar { #me>.fakeme.avatar {
width: 120px; width: 120px;
height: 120px; height: 120px;

View File

@ -4,7 +4,7 @@ mode.brawl={
if(!lib.storage.scene){ if(!lib.storage.scene){
lib.storage.scene={}; lib.storage.scene={};
} }
var dialog=ui.create.dialog(); var dialog=ui.create.dialog('hidden');
dialog.classList.add('fixed'); dialog.classList.add('fixed');
dialog.classList.add('scroll1'); dialog.classList.add('scroll1');
dialog.classList.add('scroll2'); dialog.classList.add('scroll2');
@ -16,6 +16,7 @@ mode.brawl={
dialog.style.overflow='hidden'; dialog.style.overflow='hidden';
dialog.content.style.height='100%'; dialog.content.style.height='100%';
dialog.contentContainer.style.transition='all 0s'; dialog.contentContainer.style.transition='all 0s';
dialog.open();
var packnode=ui.create.div('.packnode',dialog); var packnode=ui.create.div('.packnode',dialog);
lib.setScroll(packnode); lib.setScroll(packnode);
var clickCapt=function(){ var clickCapt=function(){

View File

@ -0,0 +1 @@
/*default*/

View File

@ -0,0 +1 @@
/*default*/