This commit is contained in:
parent
1ac2c6d679
commit
7016846d60
|
@ -6023,15 +6023,15 @@ character.swd={
|
||||||
trigger:{source:'damageEnd'},
|
trigger:{source:'damageEnd'},
|
||||||
priority:1,
|
priority:1,
|
||||||
forced:true,
|
forced:true,
|
||||||
|
filter:function(event,player){
|
||||||
|
return !player.skills.contains('xiaomoyu2');
|
||||||
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
|
player.addTempSkill('xiaomoyu2','phaseAfter');
|
||||||
if(player.hp<player.maxHp){
|
if(player.hp<player.maxHp){
|
||||||
player.recover();
|
player.recover();
|
||||||
event.finish();
|
event.finish();
|
||||||
// player.chooseControl('draw_card','recover_hp',function(event,target){
|
|
||||||
// if(player.num('h')>=player.hp) return 'recover_hp';
|
|
||||||
// return 'draw_card';
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
player.draw();
|
player.draw();
|
||||||
|
@ -6056,6 +6056,7 @@ character.swd={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
xiaomoyu2:{},
|
||||||
xielv_old:{
|
xielv_old:{
|
||||||
trigger:{player:'phaseDiscardEnd'},
|
trigger:{player:'phaseDiscardEnd'},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
|
@ -7946,7 +7947,7 @@ character.swd={
|
||||||
daofa:'道法',
|
daofa:'道法',
|
||||||
daofa_info:'每当有一名其他角色造成伤害,你可以令其弃置一张牌',
|
daofa_info:'每当有一名其他角色造成伤害,你可以令其弃置一张牌',
|
||||||
xiaomoyu:'魔愈',
|
xiaomoyu:'魔愈',
|
||||||
xiaomoyu_info:'锁定技,每当你造成一次伤害,你回复一点体力,若你没有受伤,则改为摸一张牌',
|
xiaomoyu_info:'锁定技,每当你于一个回合内首次造成伤害,你回复一点体力,若你没有受伤,则改为摸一张牌',
|
||||||
yihua:'移花',
|
yihua:'移花',
|
||||||
yihua_info:'每当你成为其他角色的某张卡牌的惟一目标时,你可以弃置两张手牌,将使用者与目标对调',
|
yihua_info:'每当你成为其他角色的某张卡牌的惟一目标时,你可以弃置两张手牌,将使用者与目标对调',
|
||||||
youyin:'游吟',
|
youyin:'游吟',
|
||||||
|
|
10
game/game.js
10
game/game.js
|
@ -18520,13 +18520,14 @@
|
||||||
if(offset12>40){
|
if(offset12>40){
|
||||||
offset12=90-hs1[i].node.info.offsetWidth;
|
offset12=90-hs1[i].node.info.offsetWidth;
|
||||||
hs1[i].node.info.querySelector('span').style.display='none';
|
hs1[i].node.info.querySelector('span').style.display='none';
|
||||||
hs1[i].node.name.style.transform='translateY(17px)';
|
hs1[i].node.name.style.transform='translateY(16px)';
|
||||||
|
hs1[i].node.info.style.transform='translateX(-'+offset12+'px) translateY(-3px)';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
hs1[i].node.info.querySelector('span').style.display='';
|
hs1[i].node.info.querySelector('span').style.display='';
|
||||||
hs1[i].node.name.style.transform='';
|
hs1[i].node.name.style.transform='';
|
||||||
|
hs1[i].node.info.style.transform='translateX(-'+offset12+'px)';
|
||||||
}
|
}
|
||||||
hs1[i].node.info.style.transform='translateX(-'+offset12+'px)';
|
|
||||||
}
|
}
|
||||||
ui.handcards1Container.firstChild.style.width=(offset1*(hs1.length-1)+118)+'px';
|
ui.handcards1Container.firstChild.style.width=(offset1*(hs1.length-1)+118)+'px';
|
||||||
|
|
||||||
|
@ -18556,13 +18557,14 @@
|
||||||
if(offset22>40){
|
if(offset22>40){
|
||||||
offset22=90-hs2[i].node.info.offsetWidth;
|
offset22=90-hs2[i].node.info.offsetWidth;
|
||||||
hs2[i].node.info.querySelector('span').style.display='none';
|
hs2[i].node.info.querySelector('span').style.display='none';
|
||||||
hs2[i].node.name.style.transform='translateY(17px)';
|
hs2[i].node.name.style.transform='translateY(16px)';
|
||||||
|
hs2[i].node.info.style.transform='translateX(-'+offset22+'px) translateY(-3px)';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
hs2[i].node.info.querySelector('span').style.display='';
|
hs2[i].node.info.querySelector('span').style.display='';
|
||||||
hs2[i].node.name.style.transform='';
|
hs2[i].node.name.style.transform='';
|
||||||
|
hs2[i].node.info.style.transform='translateX(-'+offset22+'px)';
|
||||||
}
|
}
|
||||||
hs2[i].node.info.style.transform='translateX(-'+offset22+'px)';
|
|
||||||
}
|
}
|
||||||
ui.handcards2Container.firstChild.style.width=(offset2*(hs2.length-1)+118)+'px';
|
ui.handcards2Container.firstChild.style.width=(offset2*(hs2.length-1)+118)+'px';
|
||||||
},
|
},
|
||||||
|
|
|
@ -334,7 +334,8 @@ div:not(.handcards)>.card>.info,
|
||||||
.handcards>.card:last-child>.info,
|
.handcards>.card:last-child>.info,
|
||||||
div:not(.handcards)>.card>.name,
|
div:not(.handcards)>.card>.name,
|
||||||
.handcards>.card:last-child>.name{transform: none !important}
|
.handcards>.card:last-child>.name{transform: none !important}
|
||||||
div:not(.handcards)>.card>.info>span{display: inline !important}
|
div:not(.handcards)>.card>.info>span,
|
||||||
|
.handcards>.card:last-child>.info>span{display: inline !important}
|
||||||
.card>.image{
|
.card>.image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
Loading…
Reference in New Issue