This commit is contained in:
libccy 2017-01-26 01:13:45 +08:00
parent 2c66d5a57e
commit b0ad9bc37c
13 changed files with 184 additions and 74 deletions

View File

@ -4418,7 +4418,7 @@ card.swd={
lingjiandai:'零件袋',
lingjiandai_info:'出牌阶段对自己使用获得3张随机零件',
mujiaren:'木甲人',
mujiaren_info:'出牌阶段限用一次,将你手牌中的非基本牌(含此张)替换为随机的机关牌',
mujiaren_info:'出牌阶段限用一次,获得一张随机机关牌,并将你手牌中的非基本牌替换为随机的机关牌',
jiguanyaoshu:'机关要术',
jiguanyaoshu_skill:'巧匠',
jiguanyaoshu_skill_info:'每当你于回合外失去装备区内的牌,你获得一个随机零件',

View File

@ -334,7 +334,9 @@ character.hearth={
lianjin:{
enable:'phaseUse',
usable:2,
filterCard:true,
filterCard:function(card){
return get.type(card)!='hsyaoshui';
},
check:function(card){
return 8-ai.get.value(card)
},
@ -444,6 +446,9 @@ character.hearth={
targets.sort(lib.sort.seat);
}
else{
if(target.isDead()){
return;
}
targets.push(target);
}
player.useCard(game.createCard({name:name,suit:get.suit(card),number:card.number}),targets);
@ -452,6 +457,7 @@ character.hearth={
},
ai:{
order:9.1,
threaten:1.5,
result:{
target:function(player,target,card){
var info=get.info(card);
@ -563,6 +569,7 @@ character.hearth={
}
},
ai:{
maixie:true,
effect:{
target:function(card,player,target){
if(player.hasSkill('jueqing')) return [1,-2];

View File

@ -84,7 +84,10 @@ character.ow={
content:function(){
player.gain(game.createCard(get.typeCard('hslingjian').randomGet()),'gain2');
},
group:'maoding2'
group:'maoding2',
ai:{
threaten:1.5
}
},
maoding2:{
enable:'phaseUse',
@ -96,7 +99,7 @@ character.ow={
return !target.hujia;
},
selectCard:2,
usable:1,
// usable:1,
content:function(){
target.changeHujia();
},
@ -170,11 +173,12 @@ character.ow={
forced:true,
popup:false,
filter:function(event,player){
return player.storage.paotai>0;
return player.storage.paotai>0&&event.num>0;
},
content:function(){
player.storage.paotai--;
if(player.storage.paotai==0){
player.storage.paotai-=trigger.num;
if(player.storage.paotai<=0){
player.storage.paotai=0;
player.unmarkSkill('paotai');
}
else{
@ -2597,22 +2601,42 @@ character.ow={
content:function(storage,player){
var str='';
if(player.storage.shanxian_h.length){
str+='手牌区:'+get.translation(player.storage.shanxian_h);
if(player.isUnderControl(true)){
str+='手牌区:'+get.translation(player.storage.shanxian_h);
}
else{
str+='手牌区:'+(player.storage.shanxian_h.length)+'张牌';
}
}
if(player.storage.shanxian_e.length){
if(str.length) str+='、';
str+='装备区:'+get.translation(player.storage.shanxian_e);
if(player.isUnderControl(true)){
str+='装备区:'+get.translation(player.storage.shanxian_e);
}
else{
str+='装备区:'+(player.storage.shanxian_e.length)+'张牌';
}
}
return str;
},
mark:function(dialog,content,player){
if(player.storage.shanxian_h.length){
dialog.add('<div class="text center">手牌区</div>');
dialog.addSmall(player.storage.shanxian_h);
if(player.isUnderControl(true)){
dialog.add('<div class="text center">手牌区</div>');
dialog.addSmall(player.storage.shanxian_h);
}
else{
dialog.add('<div class="text center">手牌区:'+player.storage.shanxian_h.length+'张牌</div>');
}
}
if(player.storage.shanxian_e.length){
dialog.add('<div class="text center">装备区</div>');
dialog.addSmall(player.storage.shanxian_e);
if(player.isUnderControl(true)){
dialog.add('<div class="text center">装备区</div>');
dialog.addSmall(player.storage.shanxian_e);
}
else{
dialog.add('<div class="text center">装备区:'+player.storage.shanxian_e.length+'张牌</div>');
}
}
},
},
@ -2730,10 +2754,10 @@ character.ow={
zhongdun_info:'游戏开始时,你获得等同于游戏人数护甲;出牌阶段限一次,你可以弃置一张牌并将一点护甲分给一名没有护甲的其他角色',
paotai:'炮台',
paotai2:'炮台',
paotai_info:'出牌阶段你可以弃置一张杀布置或升级一个炮台最高3级回合结束阶段炮台有一定机率对一名随机敌人造成一点火焰伤害每当你受到一伤害,炮台降低一级',
paotai_info:'出牌阶段你可以弃置一张杀布置或升级一个炮台最高3级回合结束阶段炮台有一定机率对一名随机敌人造成一点火焰伤害每当你受到一伤害,炮台降低一级',
maoding:'铆钉',
maoding2:'铆钉',
maoding_info:'每当你造成或受到一次伤害,你可以获得一个零件;出牌限阶段限一次,你可以弃置两张零件牌令一名没有护甲的角色获得一点护甲',
maoding_info:'每当你造成或受到一次伤害,你可以获得一个零件;出牌限阶段,你可以弃置两张零件牌令一名没有护甲的角色获得一点护甲',
fengshi:'风矢',
fengshi2:'风矢',
fengshi_info:'锁定技,在一合内每当你使用一张牌,你的攻击范围+1你的杀增加20%的概率强制命中你的杀造成伤害后增加20%的概率令伤害+1',

View File

@ -2708,8 +2708,8 @@ character.shenhua={
save:true,
result:{
player:function(player){
if(player.hp<=1) return 10;
if(player.hp==2&&player.num('he')<=1) return 10;
if(player.hp==0) return 10;
if(player.hp<=2&&player.num('he')<=1) return 10;
return 0;
}
},

View File

@ -490,7 +490,7 @@ character.xianjian={
event.finish();
}
'step 2'
player.chooseCard('将两张牌置于牌堆顶(先选择的在上)',2,true);
player.chooseCard('将两张牌置于牌堆顶(先选择的在上)',2,'he',true);
'step 3'
if(result.bool){
player.lose(result.cards,ui.special);
@ -540,6 +540,7 @@ character.xianjian={
}
"step 1"
if(result.bool){
player.logSkill('zhangmu');
player.showCards(result.cards);
trigger.untrigger();
trigger.responded=true;

View File

@ -3233,6 +3233,7 @@ character.yijiang={
huomo_sha:{
enable:'chooseToUse',
viewAs:{name:'sha'},
position:'he',
viewAsFilter:function(player){
if(!player.storage.huomo) player.storage.huomo={};
if(player.storage.huomo.sha) return false;
@ -3291,6 +3292,7 @@ character.yijiang={
}
return false;
},
position:'he',
precontent:function(){
'step 0'
var card=event.result.cards[0];
@ -3350,6 +3352,7 @@ character.yijiang={
'step 2'
ui.cardPile.insertBefore(event.card,ui.cardPile.firstChild);
},
position:'he',
filterCard:function(card){
return get.type(card)!='basic'&&get.color(card)=='black';
},

View File

@ -1209,6 +1209,20 @@
game.saveConfig('fewplayer',item);
if(ui.arena) ui.arena.setNumber(ui.arena.dataset.number);
}
},
player_height:{
name:'手杀布局角色高度',
init:'default',
unfrequent:true,
item:{
short:'减短',
default:'默认',
long:'增长',
},
onclick:function(item){
game.saveConfig('player_height',item);
ui.arena.dataset.player_height=item;
}
},
target_shake:{
name:'目标特效',
@ -1233,20 +1247,23 @@
mark:'标记'
},
onclick:function(style){
var list=[];
for(var i=0;i<game.players.length;i++){
if(ui.arena.classList.contains('oblongcard')&&game.players[i]==game.me) continue;
if(game.players[i].isLinked()){
if(style=='mark'){
game.players[i].classList.add('linked2');
game.players[i].classList.remove('linked');
}
else{
game.players[i].classList.add('linked');
game.players[i].classList.remove('linked2');
}
list.push(game.players[i]);
}
}
game.saveConfig('link_style',style);
for(var i=0;i<list.length;i++){
if(get.is.linked2(list[i])){
list[i].classList.add('linked2');
list[i].classList.remove('linked');
}
else{
list[i].classList.add('linked');
list[i].classList.remove('linked2');
}
}
}
},
cardshape:{
@ -9138,7 +9155,11 @@
}
if(!this.node.serving){
this.node.serving=ui.create.div('.gaming','服务器',this);
this.node.serving.dataset.nature='water';
this.node.serving.dataset.nature='wood';
}
if(!this.node.waiting){
this.node.waiting=ui.create.div('.gaming','等待中',this);
this.node.waiting.dataset.nature='water';
}
this.serving=false;
if(!info||info=='server'){
@ -9155,6 +9176,7 @@
this.node.serving.hide();
}
this.node.gaming.hide();
this.node.waiting.hide();
}
else{
this.roomempty=false;
@ -9162,9 +9184,11 @@
this.initOL(get.modetrans(config),info[1]);
if(config.gameStarted){
this.node.gaming.show();
this.node.waiting.hide();
}
else{
this.node.gaming.hide();
this.node.waiting.show();
}
this.node.serving.hide();
this.setNickname(info[0]);
@ -28153,7 +28177,6 @@
if(lib.config.textequip=='text') ui.arena.classList.add('textequip');
if(lib.config.cardshape=='oblong') ui.arena.classList.add('oblongcard');
}
if(lib.config.blur_ui){
ui.window.classList.add('blur_ui');
}
@ -28166,6 +28189,7 @@
// document.body.dataset[themeentry]=lib.config[themeentry];
// }
ui.arena.dataset.player_height=lib.config.player_height||'default';
ui.arena.dataset.target_shake=lib.config.target_shake||'off';
ui.arena.dataset.name_font=lib.config.name_font||'xinwei';
ui.arena.dataset.identity_font=lib.config.identity_font||'huangcao';
@ -31643,12 +31667,11 @@
is:{
linked2:function(player){
if(lib.config.link_style=='mark') return true;
if(lib.config.layout=='long'||lib.config.layout=='long2') return true;
if(player.dataset.position=='0'){
return ui.arena.classList.contains('oblongcard');
}
else{
return lib.config.layout=='long'||lib.config.layout=='long2';
}
return false;
},
empty:function(obj){
for(var i in obj) return false;

View File

@ -5,13 +5,18 @@ window.noname_update={
'bug修复',
],
files:[
// 'game/game.js',
'game/game.js',
'character/ow.js',
'character/hearth.js',
'character/old.js',
'character/rank.js',
'character/xianjian.js',
'character/yijiang.js',
// 'card/swd.js',
// 'mode/tafang.js',
'card/swd.js',
'mode/chess.js',
'theme/simple/style.css',
'layout/long/layout.css',
'layout/mobile/layout.css',
'layout/newlayout/global.css',
]
}

View File

@ -3,31 +3,37 @@
width: 120px !important;
height: 220px !important;
}
#arena:not(.fewplayer)[data-player_height='default']>.player:not(.minskin):not(*[data-position='0']){
height: 200px !important;
}
#arena:not(.fewplayer)[data-player_height='short']>.player:not(.minskin):not(*[data-position='0']){
height: 180px !important;
}
#arena:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.equips{
transform: scale(0.8);
transform-origin: bottom left;
}
#arena:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.avatar,
#arena:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.avatar2{
width: 106px !important;
height: 206px !important;
width: calc(100% - 14px) !important;
height: calc(100% - 14px) !important;
background-position: 50% !important;
}
#arena.uslim_player:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.avatar,
#arena.uslim_player:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.avatar2{
width: 114px !important;
height: 214px !important;
width: calc(100% - 6px) !important;
height: calc(100% - 6px) !important;
background-position: 50% !important;
}
#arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar,
#arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar2{
height: 110px !important;
height: 50% !important;
background-position: 0 0 !important;
border-radius: 8px !important;
}
#arena.uslim_player:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar,
#arena.uslim_player:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar2{
height: 107px !important;
height: calc(50% + 4px) !important;
}
#window[data-radius_size='reduce'] #arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar,
#window[data-radius_size='reduce'] #arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar2{
@ -43,13 +49,25 @@
}
#arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
border-radius: 8px 8px 0 0 !important;
height: 124px !important;
height: calc(50% + 14px) !important;
-webkit-clip-path: polygon(-10px -10px, 116px -10px, 116px 92px, 106px 92px, 0px 114px, -10px 114px);
}
#arena:not(.fewplayer)[data-player_height='default']>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
-webkit-clip-path: polygon(-10px -10px, 116px -10px, 116px 82px, 106px 82px, 0px 104px, -10px 104px);
}
#arena:not(.fewplayer)[data-player_height='short']>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
-webkit-clip-path: polygon(-10px -10px, 116px -10px, 116px 72px, 106px 72px, 0px 94px, -10px 94px);
}
#arena.uslim_player:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
height: 128px !important;
height: calc(50% + 18px) !important;
-webkit-clip-path: polygon(-10px -10px, 124px -10px, 124px 96px, 114px 96px, 0px 118px, -10px 118px);
}
#arena.uslim_player:not(.fewplayer)[data-player_height='default']>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
-webkit-clip-path: polygon(-10px -10px, 124px -10px, 124px 86px, 114px 86px, 0px 108px, -10px 108px);
}
#arena.uslim_player:not(.fewplayer)[data-player_height='short']>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
-webkit-clip-path: polygon(-10px -10px, 124px -10px, 124px 76px, 114px 76px, 0px 98px, -10px 98px);
}
#window[data-radius_size='reduce'] #arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen2):not(*[data-position='0'])>.avatar{
border-radius: 4px 4px 0 0 !important;
}
@ -61,14 +79,14 @@
}
#arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen):not(*[data-position='0'])>.avatar2{
border-radius: 0 0 8px 8px !important;
top: 89px !important;
height: 124px !important;
top: calc(50% - 21px) !important;
height: calc(50% + 14px) !important;
background-position: 0 10px !important;
-webkit-clip-path: polygon(-10px 32px, 0 32px, 106px 10px, 116px 10px, 116px 134px, -10px 134px);
}
#arena.uslim_player:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen):not(*[data-position='0'])>.avatar2{
top: 89px !important;
height: 128px !important;
top: calc(50% - 21px) !important;
height: calc(50% + 18px) !important;
-webkit-clip-path: polygon(-10px 32px, 0 32px, 114px 10px, 124px 10px, 124px 138px, -10px 138px);
}
#window[data-radius_size='reduce'] #arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(.unseen):not(*[data-position='0'])>.avatar2{
@ -81,7 +99,7 @@
border-radius: 0 0 16px 16px !important;
}
#arena:not(.fewplayer)>.player.fullskin2:not(.minskin):not(*[data-position='0'])>.avatar2{
top: 103px !important;
top: calc(50% - 7px) !important;
}
#arena:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.identity{
left: 102px;
@ -92,20 +110,20 @@
#arena:not(.fewplayer)>.player:not(.minskin):not(*[data-position='0'])>.hp:not(.actcount).text{
left: 89px;
}
#arena:not(.fewplayer).player.fullskin2 .avatar2{
#arena:not(.fewplayer)>.player.fullskin2 .avatar2{
z-index: 2;
}
#arena:not(.fewplayer).player.unseen:not(.unseen2) .count{
#arena:not(.fewplayer)>.player.unseen:not(.unseen2) .count{
text-align: left;
border-radius:3px 0 0 3px;
}
#arena:not(.fewplayer).player.unseen2 .count{
#arena:not(.fewplayer)>.player.unseen2 .count{
border-radius: 3px;
text-align: center;
}
#arena:not(.fewplayer) .timerbar>div{
top: 205px;
top: calc(100% - 15px);
width: 96px;
left: 12px;
}

View File

@ -19,19 +19,29 @@
bottom:150px;
height: 40px;
}
/*#control>div{
height: 40px;
font-family: 'xinwei';
font-size: 30px;
line-height: 34px;
}*/
#arena:not(.chess)>#me,
#arena:not(.chess)>#mebg,
#arena:not(.chess)>#autonode{
bottom: 50px;
width: calc(100% - 20px);
left: 20px;
top: auto;
height: 120px;
bottom:30px;
width: calc(5000% / 47);
left:calc(-150% / 47);
top:auto;
border-radius:0 !important;
height:120px;
}
#arena:not(.chess)>#autonode{
width: calc(5000% / 47 - 240px);
left:calc(-150% / 47 + 120px);
}
#arena:not(.mobile).single-handcard #handcards1{
width: calc(100% - 120px);
}
#window.leftbar #arena:not(.chess)>#me,
#window.leftbar #arena:not(.chess)>#mebg,
#window.leftbar #arena:not(.chess)>#autonode,
@ -60,8 +70,8 @@
top:calc(100% - 120px);
}
#arena:not(.chess):not(.single-handcard) #handcards1{
width: calc(100% - 100px);
left: 100px;
width:calc(100% - 240px);
left:calc(150% / 47 - 300% / 94 + 625% / 47 - 105px + 120px);
}
#handcards2{
display:none;
@ -87,18 +97,14 @@
#window[data-radius_size='reduce'] #me>.fakeme.avatar{
border-radius:0px;
}
#arena>.player[data-position='0']{
left: 0;
top: calc(100% - 220px);
}
#arena:not(.mobile):not(.single-handcard) #handcards1>div{
left: 0;
#arena>.player[data-position='0']:not(.minskin){
top: calc(100% - 238px);
}
#arena>.player:not(.minskin){
width: 120px !important;
height: 180px !important;
height: 200px !important;
}
#arena>.player:not(.minskin)>.equips{
transform: scale(0.8);
@ -186,6 +192,14 @@
#arena>.player:not(.minskin)>.hp:not(.actcount).text{
left: 89px;
}
#arena>.player.fullskin2 .avatar2{
z-index: 2;
}
#arena>.player .count{
text-align: center;
border-radius: 3px;
z-index: 3;
}
.timerbar>div{
top: 205px;
@ -201,6 +215,8 @@
#arena[data-number='8']>.player[data-position='5']{top:0;left:calc(-300% / 94 + 1875% / 47 - 315px + 240px);}
#arena[data-number='8']>.player[data-position='6']{top:calc(8% - 32px);left:calc(-300% / 94 + 1250% / 47 - 210px + 120px);}
#arena[data-number='8']>.player[data-position='7']{top:calc(30% - 120px);left:calc(-300% / 94 + 625% / 47 - 105px);}
#arena[data-number='8']>.player[data-position='0']{left:calc(-300% / 94 + 625% / 47 - 105px);}
#arena>.player[data-position='0']{left:0;}
@media screen and (min-width: 1105px){
#arena[data-number='8']>.player[data-position='1']{left:calc(100% - 120px);}
#arena[data-number='8']>.player[data-position='2']{left:calc(500% / 6 - 100px);}
@ -209,6 +225,7 @@
#arena[data-number='8']>.player[data-position='5']{left:calc(200% / 6 - 40px);}
#arena[data-number='8']>.player[data-position='6']{left:calc(100% / 6 - 20px);}
#arena[data-number='8']>.player[data-position='7']{left:0;}
#arena[data-number='8']>.player[data-position='0']{left:0;}
}
/*--------位置(7人)------*/
#arena[data-number='7']>.player[data-position='1']{top:calc(30% - 120px);left:calc(100% - 120px);}

View File

@ -222,9 +222,9 @@
text-align: right;
}
#arena.uslim_player .player:not([data-position='0'])>.count{
z-index: 3;
border-radius: 2px;
text-align: center;
z-index: 3 !important;
border-radius: 2px !important;
text-align: center !important;
}
#arena:not(.chess) .player[data-position='0']>.hp.actcount{
top:10px;

View File

@ -21,6 +21,9 @@
height: 174px;
left:3px;
top:3px;
}
#arena:not(.mobile).uslim_player .player:not(.minskin):not(.fakeme) .avatar,
#arena.mobile.uslim_player .player:not(.minskin):not(.fakeme):not(*[data-position='0']) .avatar{
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px;
}
#window>.player.minskin>.avatar{

View File

@ -4675,10 +4675,19 @@ mode.chess={
return num+get.cardCount(true,player)-get.cardCount('sha',player);
}
},
attackFrom:function(from,to,distance){
return distance-1;
}
},
trigger:{player:'useCard'},
frequent:true,
filter:function(event){
return event.card&&event.card.name=='sha';
},
usable:1,
content:function(){
player.draw();
},
ai:{
threaten:1.5
}
},
pianyi:{
trigger:{player:'phaseEnd'},
@ -5191,7 +5200,7 @@ mode.chess={
lingdong:'灵动',
lingdong_info:'回合结束阶段你可以移动X个格X为你回合内出杀的次数',
lianshe:'箭舞',
lianshe_info:'你的攻击范围+1回合内回合内,每当你使用一张不是杀的牌,你可以额外使用一张杀',
lianshe_info:'当你于一个回合中首次使用杀时,你可以摸一张牌;在你的回合内,每当你使用一张不是杀的牌,你可以额外使用一张杀',
zhiming:'穿杨',
zhiming_info:'锁定技,当你使用杀造成伤害时,若你不在目标的攻击范围内,此伤害+1',
sanjiansheji:'散箭',
@ -5511,7 +5520,7 @@ mode.chess={
//
// chess_lvbu:['male','qun',3,['']],
chess_sunshangxiang:['female','wu',3,['lingdong','lianshe','gongji']],
chess_diaochan:['female','qun',3,['xingzhui','pianyi']],
chess_diaochan:['female','qun',3,['xingzhui','pianyi','biyue']],
// chess_huatuo:['male','qun',3,['zhenjiu','mazui']],
// chess_zhangjiao:['male','qun',3,['']],
// chess_menghuo:['male','qun',3,['']],