This commit is contained in:
parent
fba9702096
commit
426d232f89
|
@ -1259,8 +1259,12 @@ character.gujian={
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
logTarget:'source',
|
||||||
content:function(){
|
content:function(){
|
||||||
player.discardPlayerCard(trigger.source,ai.get.buttonValue,'he',true);
|
var he=trigger.source.get('he');
|
||||||
|
if(he.length){
|
||||||
|
trigger.source.discard(he.randomGet());
|
||||||
|
}
|
||||||
player.storage.xuanning--;
|
player.storage.xuanning--;
|
||||||
if(!player.storage.xuanning){
|
if(!player.storage.xuanning){
|
||||||
player.unmarkSkill('xuanning');
|
player.unmarkSkill('xuanning');
|
||||||
|
@ -1641,7 +1645,7 @@ character.gujian={
|
||||||
liuguang:'流光',
|
liuguang:'流光',
|
||||||
yangming:'养命',
|
yangming:'养命',
|
||||||
yangming2:'养命',
|
yangming2:'养命',
|
||||||
xuanning_info:'出牌阶段,你可以弃置一基本牌,获得至多3个玄凝标记。当你受到伤害时,若你有玄凝标记,你须弃置一个玄凝标记并弃置伤害来源一张牌',
|
xuanning_info:'出牌阶段,你可以弃置一基本牌,获得至多3个玄凝标记。当你受到伤害时,你失去一枚玄凝标记,伤害来源随机弃置一张牌',
|
||||||
liuguang_info:'准备阶段,若你有玄凝标记,你可以弃置一枚玄凝标记,选择至多三名角色依次令其选择一项:弃置一张牌,或受到一点伤害,并终止流光结算',
|
liuguang_info:'准备阶段,若你有玄凝标记,你可以弃置一枚玄凝标记,选择至多三名角色依次令其选择一项:弃置一张牌,或受到一点伤害,并终止流光结算',
|
||||||
yangming_info:'出牌阶段,你可以弃置一张红色牌,并在下个出牌阶段结束时令距离1以内的任意名角色回复一点体力,在此之前不可再次发动',
|
yangming_info:'出牌阶段,你可以弃置一张红色牌,并在下个出牌阶段结束时令距离1以内的任意名角色回复一点体力,在此之前不可再次发动',
|
||||||
zhaolu:'朝露',
|
zhaolu:'朝露',
|
||||||
|
|
108
character/swd.js
108
character/swd.js
|
@ -3758,7 +3758,7 @@ character.swd={
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0"
|
"step 0"
|
||||||
var next=player.chooseToDiscard('是否弃置两张手牌将'+get.translation(trigger.card)+'反弹?',2);
|
var next=player.chooseToDiscard(get.prompt('yihua',trigger.player),2);
|
||||||
next.ai=function(card){
|
next.ai=function(card){
|
||||||
if(ai.get.effect(player,trigger.card)<0){
|
if(ai.get.effect(player,trigger.card)<0){
|
||||||
if(card.name=='liuxinghuoyu') return 7-ai.get.value(card);
|
if(card.name=='liuxinghuoyu') return 7-ai.get.value(card);
|
||||||
|
@ -3766,7 +3766,7 @@ character.swd={
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
next.logSkill='yihua';
|
next.logSkill=['yihua',trigger.player];
|
||||||
"step 1"
|
"step 1"
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
// player.discard(result.cards);
|
// player.discard(result.cards);
|
||||||
|
@ -6389,6 +6389,39 @@ character.swd={
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
funiao:{
|
funiao:{
|
||||||
|
enable:'phaseUse',
|
||||||
|
usable:1,
|
||||||
|
prepare:'give2',
|
||||||
|
filterTarget:function(card,player,target){
|
||||||
|
if(player==target) return false;
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
filter:function(event,player){
|
||||||
|
return player.num('h')>0;
|
||||||
|
},
|
||||||
|
filterCard:true,
|
||||||
|
check:function(card){
|
||||||
|
if(card.name=='du') return 20;
|
||||||
|
return 7-ai.get.value(card);
|
||||||
|
},
|
||||||
|
discard:false,
|
||||||
|
content:function(){
|
||||||
|
target.gain(cards,player).delay=false;
|
||||||
|
player.draw();
|
||||||
|
},
|
||||||
|
ai:{
|
||||||
|
result:{
|
||||||
|
target:function(player,target){
|
||||||
|
if(ui.selected.cards.length&&ui.selected.cards[0].name=='du'){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
order:2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
funiao_old:{
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
discard:false,
|
discard:false,
|
||||||
prepare:'give2',
|
prepare:'give2',
|
||||||
|
@ -7432,7 +7465,8 @@ character.swd={
|
||||||
return !player.storage.duijue;
|
return !player.storage.duijue;
|
||||||
},
|
},
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
return player!=target&&target!=game.zhu;
|
if(target.identity=='zhu') return false;
|
||||||
|
return player!=target;
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
player.storage.duijue=true;
|
player.storage.duijue=true;
|
||||||
|
@ -7450,6 +7484,28 @@ character.swd={
|
||||||
player.storage.duijue3=target;
|
player.storage.duijue3=target;
|
||||||
player.addSkill('duijue3');
|
player.addSkill('duijue3');
|
||||||
},
|
},
|
||||||
|
duijueLoop:function(){
|
||||||
|
'step 0'
|
||||||
|
targets[0].phase();
|
||||||
|
'step 1'
|
||||||
|
if(targets[0].isDead()||targets[1].isDead()){
|
||||||
|
event.goto(3);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
targets[1].phase();
|
||||||
|
}
|
||||||
|
'step 2'
|
||||||
|
if(targets[0].isDead()||targets[1].isDead()){
|
||||||
|
event.goto(3);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
event.goto(0);
|
||||||
|
}
|
||||||
|
'step 3'
|
||||||
|
for(var i=0;i<event.backup.length;i++){
|
||||||
|
event.backup[i].in('duijue');
|
||||||
|
}
|
||||||
|
},
|
||||||
init:function(player){
|
init:function(player){
|
||||||
player.storage.duijue=false;
|
player.storage.duijue=false;
|
||||||
},
|
},
|
||||||
|
@ -7471,33 +7527,24 @@ character.swd={
|
||||||
trigger:{player:'phaseAfter'},
|
trigger:{player:'phaseAfter'},
|
||||||
forced:true,
|
forced:true,
|
||||||
popup:false,
|
popup:false,
|
||||||
|
priority:-50,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
var target=player.storage.duijue3;
|
||||||
event.target=player.storage.duijue3;
|
|
||||||
delete player.storage.duijue3;
|
delete player.storage.duijue3;
|
||||||
player.removeSkill('duijue3');
|
player.removeSkill('duijue3');
|
||||||
for(var i=0;i<game.players.length;i++){
|
if(!target.isAlive()){
|
||||||
if(game.players[i]!=player&&game.players[i]!=event.target){
|
event.finish();
|
||||||
game.players[i].addSkill('duijue2');
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
'step 1'
|
var next=game.createEvent('duijueLoop');
|
||||||
target.phase();
|
next.targets=[target,player];
|
||||||
'step 2'
|
next.num=0;
|
||||||
if(target.isAlive()){
|
next.setContent(lib.skill.duijue.duijueLoop);
|
||||||
player.phase();
|
next.backup=[];
|
||||||
}
|
|
||||||
else{
|
|
||||||
event.goto(4);
|
|
||||||
}
|
|
||||||
'step 3'
|
|
||||||
if(target.isAlive()){
|
|
||||||
event.goto(1);
|
|
||||||
}
|
|
||||||
'step 4'
|
|
||||||
for(var i=0;i<game.players.length;i++){
|
for(var i=0;i<game.players.length;i++){
|
||||||
if(game.players[i]!=player&&game.players[i]!=target){
|
if(game.players[i]!=player&&game.players[i]!=target){
|
||||||
game.players[i].removeSkill('duijue2');
|
game.players[i].out('duijue');
|
||||||
|
next.backup.push(game.players[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7523,7 +7570,13 @@ character.swd={
|
||||||
intro:{
|
intro:{
|
||||||
content:'不计入距离的计算且不能使用牌且不是牌的合法目标'
|
content:'不计入距离的计算且不能使用牌且不是牌的合法目标'
|
||||||
},
|
},
|
||||||
group:'undist'
|
group:'undist',
|
||||||
|
trigger:{global:'dieAfter'},
|
||||||
|
forced:true,
|
||||||
|
popup:false,
|
||||||
|
content:function(){
|
||||||
|
player.removeSkill('duijue2');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yueren:{
|
yueren:{
|
||||||
trigger:{player:'shaBegin'},
|
trigger:{player:'shaBegin'},
|
||||||
|
@ -8880,7 +8933,7 @@ character.swd={
|
||||||
xuying_info:'锁定技,每当你即将受到伤害,你防止此伤害,若你此时有手牌,你流失一点体力',
|
xuying_info:'锁定技,每当你即将受到伤害,你防止此伤害,若你此时有手牌,你流失一点体力',
|
||||||
yinguo_info:'除你之外的任意一名角色即将受到受到伤害时,若有伤害来源,你可以弃置一张牌将伤害来源和目标对调',
|
yinguo_info:'除你之外的任意一名角色即将受到受到伤害时,若有伤害来源,你可以弃置一张牌将伤害来源和目标对调',
|
||||||
yueren_info:'每当你使用一张杀,可以进行一次判定,若结果为黑色,你弃置目标一张牌,若结果为红色,你将此杀收回,每回合限发动一次',
|
yueren_info:'每当你使用一张杀,可以进行一次判定,若结果为黑色,你弃置目标一张牌,若结果为红色,你将此杀收回,每回合限发动一次',
|
||||||
duijue_info:'限定技,出牌阶段,你可以指定一名非主公的其他角色,你结束出牌阶段,然后该角色与你轮流进行回合,直到一方死亡为止;在此之前,所有其他角色不计入距离的计算且不能使用牌且不是牌的合法目标',
|
duijue_info:'限定技,出牌阶段,你可以指定一名非主公的其他角色,你结束出牌阶段,并在回合结束后将所有其他角色移出游戏,然后该角色与你轮流进行回合,直到有一方死亡为止',
|
||||||
wuying_info:'锁定技,你的杀和单体x锦囊目标锁定为范围内的所有角色',
|
wuying_info:'锁定技,你的杀和单体x锦囊目标锁定为范围内的所有角色',
|
||||||
xiehun_info:'锁定技,受到来自你伤害的角色进入混乱状态,行为不受控制,且会攻击队友,直到你的下一回合开始',
|
xiehun_info:'锁定技,受到来自你伤害的角色进入混乱状态,行为不受控制,且会攻击队友,直到你的下一回合开始',
|
||||||
jumo_info:'锁定技,结束阶段,你摸X-1张牌,X为未进入混乱状态的角色数与进入混乱状态的角色数之差(若为双将则改为X)',
|
jumo_info:'锁定技,结束阶段,你摸X-1张牌,X为未进入混乱状态的角色数与进入混乱状态的角色数之差(若为双将则改为X)',
|
||||||
|
@ -8919,7 +8972,8 @@ character.swd={
|
||||||
luomei_info:'每当你使用或打出一张梅花花色的牌,你可以摸一张牌',
|
luomei_info:'每当你使用或打出一张梅花花色的牌,你可以摸一张牌',
|
||||||
xingdian_info:'出牌阶段限一次,你可以弃置一张手牌,然后指定至多两名角色令其各弃置一张牌',
|
xingdian_info:'出牌阶段限一次,你可以弃置一张手牌,然后指定至多两名角色令其各弃置一张牌',
|
||||||
yulin_info:'每当你即将受到伤害,你可以弃置一张装备牌抵消此伤害',
|
yulin_info:'每当你即将受到伤害,你可以弃置一张装备牌抵消此伤害',
|
||||||
funiao_info:'出牌阶段,你可以交给一名角色一张手牌,然后观看其手牌,每个阶段对一名角色只能发动一次',
|
funiao_info:'出牌阶段限一次,你可以将一张手牌交给一名其他角色,然后摸一张牌',
|
||||||
|
funiao_old_info:'出牌阶段,你可以交给一名角色一张手牌,然后观看其手牌,每个阶段对一名角色只能发动一次',
|
||||||
xuehuang_info:'出牌阶段限一次,你可以弃置一张红色手牌令距离你一以内的所有角色受到一点火焰伤害',
|
xuehuang_info:'出牌阶段限一次,你可以弃置一张红色手牌令距离你一以内的所有角色受到一点火焰伤害',
|
||||||
zhuyu_info:'每当有横置的角色即将受到非火焰伤害,你可以弃置一张红色牌使其额外受到一点火焰伤害',
|
zhuyu_info:'每当有横置的角色即将受到非火焰伤害,你可以弃置一张红色牌使其额外受到一点火焰伤害',
|
||||||
ningshuang_info:'每当你成为黑色牌的目标,你可以弃置一张黑色牌将其横置,并摸一张牌,若其已经模置则改为将其翻面',
|
ningshuang_info:'每当你成为黑色牌的目标,你可以弃置一张黑色牌将其横置,并摸一张牌,若其已经模置则改为将其翻面',
|
||||||
|
|
28
game/game.js
28
game/game.js
|
@ -11827,16 +11827,24 @@
|
||||||
next.setContent('turnOver');
|
next.setContent('turnOver');
|
||||||
return next;
|
return next;
|
||||||
},
|
},
|
||||||
out:function(bool){
|
out:function(skill){
|
||||||
if(this.lockOut) return;
|
if(!this.storage.out){
|
||||||
if(this.isOut()){
|
this.storage.out=[];
|
||||||
game.log(this,'进入游戏');
|
|
||||||
}
|
}
|
||||||
else{
|
this.storage.out.add(skill);
|
||||||
|
if(!this.classList.contains('out')){
|
||||||
|
this.classList.add('out');
|
||||||
game.log(this,'离开游戏');
|
game.log(this,'离开游戏');
|
||||||
}
|
}
|
||||||
this.classList.toggle('out');
|
},
|
||||||
if(bool) this.lockOut=bool;
|
in:function(skill){
|
||||||
|
if(this.isOut()){
|
||||||
|
this.storage.out.remove(skill);
|
||||||
|
if(this.storage.out.length==0){
|
||||||
|
this.classList.remove('out');
|
||||||
|
game.log(this,'进入游戏');
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
link:function(){
|
link:function(){
|
||||||
var next=game.createEvent('link');
|
var next=game.createEvent('link');
|
||||||
|
@ -14544,6 +14552,10 @@
|
||||||
}
|
}
|
||||||
this.node.addinfo.innerHTML=info.addinfo;
|
this.node.addinfo.innerHTML=info.addinfo;
|
||||||
}
|
}
|
||||||
|
else if(this.node.addinfo){
|
||||||
|
this.node.addinfo.remove();
|
||||||
|
delete this.node.addinfo;
|
||||||
|
}
|
||||||
if(card[0]=='heart'||card[0]=='diamond'){
|
if(card[0]=='heart'||card[0]=='diamond'){
|
||||||
this.node.info.classList.add('red');
|
this.node.info.classList.add('red');
|
||||||
}
|
}
|
||||||
|
@ -14589,7 +14601,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(typeof info.init=='function') info.init();
|
if(typeof info.init=='function') info.init();
|
||||||
|
this.node.range.innerHTML='';
|
||||||
switch(get.subtype(this)){
|
switch(get.subtype(this)){
|
||||||
case 'equip1':
|
case 'equip1':
|
||||||
var added=false;
|
var added=false;
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 104 KiB |
|
@ -31,7 +31,9 @@ body[data-background_color_music='blue'] #arena.mobile:not(.chess) .player[data-
|
||||||
background-image: linear-gradient(#6c7989, #434b55);
|
background-image: linear-gradient(#6c7989, #434b55);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.marks>.card.fullskin>.markcount.menubutton{
|
||||||
|
background: url('wood3.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*.player.current_action{
|
/*.player.current_action{
|
||||||
|
|
|
@ -132,6 +132,10 @@ body{
|
||||||
opacity: 0.3 !important;
|
opacity: 0.3 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.player .marks>div:first-child>div{
|
||||||
|
-webkit-filter: invert(0.8) sepia(1);
|
||||||
|
}
|
||||||
|
|
||||||
.fire{
|
.fire{
|
||||||
color: rgb(255,119,63);
|
color: rgb(255,119,63);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue