This commit is contained in:
parent
d7ebd830db
commit
fd7ed64a37
|
@ -125,7 +125,7 @@ card.yunchou={
|
|||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseToCompare(target).clear=false;
|
||||
player.chooseToCompare(target).set('preserve','win').clear=false;
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.gain([result.player,result.target]);
|
||||
|
|
|
@ -14,8 +14,89 @@ character.old={
|
|||
old_lingtong:['male','wu',4,['oldxuanfeng']],
|
||||
old_madai:['male','shu',4,['mashu','oldqianxi']],
|
||||
old_caoxiu:['male','wei',4,['taoxi']],
|
||||
old_huaxiong:['male','qun',6,['shiyong']],
|
||||
old_wangyi:['female','wei',3,['oldzhenlie','oldmiji']],
|
||||
old_caozhen:['male','wei',4,['sidi']],
|
||||
old_quancong:['male','wu',4,['zhenshan']],
|
||||
},
|
||||
skill:{
|
||||
oldzhenlie:{
|
||||
audio:'zhenlie',
|
||||
trigger:{player:'judge'},
|
||||
check:function(event,player){
|
||||
return event.judge(player.judging[0])<0;
|
||||
},
|
||||
content:function(){
|
||||
var card=get.cards()[0];
|
||||
player.$throw(card);
|
||||
card.clone.classList.add('thrownhighlight');
|
||||
if(trigger.player.judging[0].clone){
|
||||
trigger.player.judging[0].clone.classList.remove('thrownhighlight');
|
||||
game.addVideo('deletenode',player,get.cardsInfo([trigger.player.judging[0].clone]));
|
||||
}
|
||||
ui.discardPile.appendChild(trigger.player.judging[0]);
|
||||
trigger.player.judging[0]=card;
|
||||
trigger.position.appendChild(card);
|
||||
game.log(trigger.player,'的判定牌改为',card);
|
||||
game.delay(2);
|
||||
},
|
||||
},
|
||||
oldmiji:{
|
||||
trigger:{player:['phaseBegin','phaseEnd']},
|
||||
filter:function(event,player){
|
||||
return player.isDamaged();
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.judge(function(card){
|
||||
return get.color(card)=='black'?1:-1;
|
||||
});
|
||||
'step 1'
|
||||
if(result.bool&&player.maxHp>player.hp){
|
||||
var cards=get.cards(player.maxHp-player.hp);
|
||||
event.cards=cards;
|
||||
var dialog=ui.create.dialog('选择获得卡牌的目标',cards,'hidden');
|
||||
dialog.classList.add('noselect');
|
||||
player.chooseTarget(true,dialog).ai=function(target){
|
||||
return ai.get.attitude(player,target)/Math.sqrt(1+target.num('h'));
|
||||
}
|
||||
}
|
||||
else{
|
||||
event.finish();
|
||||
}
|
||||
'step 2'
|
||||
result.targets[0].gain(event.cards,'draw');
|
||||
},
|
||||
ai:{
|
||||
effect:{
|
||||
target:function(card,player,target){
|
||||
if(get.tag(card,'recover')&&target.hp==target.maxHp-1) return [0,0];
|
||||
if(target.hasFriend()){
|
||||
if((get.tag(card,'damage')==1||get.tag(card,'loseHp'))&&target.hp==target.maxHp) return [0,1];
|
||||
}
|
||||
}
|
||||
},
|
||||
threaten:function(player,target){
|
||||
if(target.hp==1) return 3;
|
||||
if(target.hp==2) return 2;
|
||||
return 1;
|
||||
},
|
||||
}
|
||||
},
|
||||
shiyong:{
|
||||
audio:2,
|
||||
trigger:{player:'damageEnd'},
|
||||
forced:true,
|
||||
check:function(){
|
||||
return false;
|
||||
},
|
||||
filter:function(event,player){
|
||||
return event.card.name=='sha'&&(get.color(event.card)=='red'||event.player.hasSkill('jiu'));
|
||||
},
|
||||
content:function(){
|
||||
player.loseMaxHp();
|
||||
}
|
||||
},
|
||||
oldqianxi:{
|
||||
trigger:{source:'damageBefore'},
|
||||
check:function(event,player){
|
||||
|
@ -115,7 +196,17 @@ character.old={
|
|||
old_zhuran:'旧朱然',
|
||||
old_madai:'旧马岱',
|
||||
old_caoxiu:'旧曹休',
|
||||
old_huaxiong:'旧华雄',
|
||||
old_wangyi:'旧王异',
|
||||
old_caozhen:'旧曹真',
|
||||
old_quancong:'旧全琮',
|
||||
|
||||
oldzhenlie:'贞烈',
|
||||
oldzhenlie_info:'在你的判定牌生效前,你可以亮出牌堆顶的一张牌代替之',
|
||||
oldmiji:'秘计',
|
||||
oldmiji_info:'准备/结束阶段开始时,若你已受伤,你可以判定,若判定结果为黑色,你观看牌堆顶的X张牌(X为你已损失的体力值),然后将这些牌交给一名角色',
|
||||
shiyong:'恃勇',
|
||||
shiyong_info:'锁定技,当你受到一次红色【杀】或【酒】【杀】造成的伤害后,须减1点体力上限',
|
||||
oldqianxi:'潜袭',
|
||||
oldqianxi_info:'当你使用【杀】对距离为1的目标角色造成伤害时,你可以进行一次判定,若判定结果不为红桃,你防止此伤害,令其减1点体力上限',
|
||||
oldxuanfeng:'旋风',
|
||||
|
|
|
@ -1213,7 +1213,7 @@ character.shenhua={
|
|||
return -get.number(card);
|
||||
}
|
||||
return get.number(card);
|
||||
});
|
||||
}).set('preserve','lose');
|
||||
"step 2"
|
||||
if(result.bool==false){
|
||||
target.gain([result.player,result.target]);
|
||||
|
|
|
@ -2092,7 +2092,7 @@ character.sp={
|
|||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseToCompare(target);
|
||||
player.chooseToCompare(target).set('preserve','win');
|
||||
'step 1'
|
||||
if(result.bool&&result.target){
|
||||
event.type=true;
|
||||
|
|
|
@ -5661,7 +5661,7 @@ character.swd={
|
|||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
player.chooseToCompare(target);
|
||||
player.chooseToCompare(target).set('preserve','win');
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
if(target.hasSkill('tanlin2')==false){
|
||||
|
|
|
@ -92,6 +92,49 @@ character.yijiang={
|
|||
liuchen:['liushan'],
|
||||
},
|
||||
skill:{
|
||||
jyzongshi:{
|
||||
audio:2,
|
||||
trigger:{player:['chooseToCompareAfter','compareMultipleAfter'],target:['chooseToCompareAfter','compareMultipleAfter']},
|
||||
filter:function(event){
|
||||
return !event.preserve;
|
||||
},
|
||||
check:function(event,player){
|
||||
if(player==event.player){
|
||||
if(event.card1.number>event.card2.number){
|
||||
return event.card2.name!='du';
|
||||
}
|
||||
else{
|
||||
return event.card1.name!='du';
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(event.card1.number<event.card2.number){
|
||||
return event.card1.name!='du';
|
||||
}
|
||||
else{
|
||||
return event.card2.name!='du';
|
||||
}
|
||||
}
|
||||
},
|
||||
content:function(){
|
||||
if(player==trigger.player){
|
||||
if(trigger.card1.number>trigger.card2.number){
|
||||
player.gain(trigger.card2,'gain2');
|
||||
}
|
||||
else{
|
||||
player.gain(trigger.card1,'gain2');
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(trigger.card1.number<trigger.card2.number){
|
||||
player.gain(trigger.card1,'gain2');
|
||||
}
|
||||
else{
|
||||
player.gain(trigger.card2,'gain2');
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
xinsidi:{
|
||||
trigger:{global:'phaseUseBegin'},
|
||||
direct:true,
|
||||
|
@ -4456,11 +4499,9 @@ character.yijiang={
|
|||
}
|
||||
"step 2"
|
||||
if(result.bool){
|
||||
player.gain(result.target,'gain2');
|
||||
player.addTempSkill('qiaoshui3','phaseAfter');
|
||||
}
|
||||
else{
|
||||
player.gain(result.player,'gain2');
|
||||
player.addTempSkill('qiaoshui2','phaseAfter');
|
||||
}
|
||||
},
|
||||
|
@ -4521,7 +4562,7 @@ character.yijiang={
|
|||
}
|
||||
}
|
||||
},
|
||||
jyzongshi:{
|
||||
jyzongshi_old:{
|
||||
audio:2,
|
||||
trigger:{target:'useCardToBegin'},
|
||||
filter:function(event,player){
|
||||
|
@ -6197,19 +6238,6 @@ character.yijiang={
|
|||
}
|
||||
}
|
||||
},
|
||||
shiyong2:{
|
||||
trigger:{player:'damageEnd'},
|
||||
forced:true,
|
||||
audio:false,
|
||||
check:function(){
|
||||
return false;
|
||||
},
|
||||
content:function(){
|
||||
player.maxHp--;
|
||||
player.removeSkill('shiyong2');
|
||||
player.update();
|
||||
},
|
||||
},
|
||||
olddanshou:{
|
||||
trigger:{source:'damageEnd'},
|
||||
priority:9,
|
||||
|
@ -7739,9 +7767,9 @@ character.yijiang={
|
|||
faen:'法恩',
|
||||
faen_info:'每当一名角色的武将牌翻面或横置时,你可以令其摸一张牌。',
|
||||
jyzongshi:'纵适',
|
||||
jyzongshi_info:'每当你成为其他角色的非延时锦囊牌的目标时,若你是此锦囊的唯一目标,你可以摸一张牌',
|
||||
jyzongshi_info:'每当你拼点赢,你可以获得对方此次拼点的牌;每当你拼点没赢,你可以收回你此次拼点的牌',
|
||||
qiaoshui:'巧说',
|
||||
qiaoshui_info:'出牌阶段开始时,你可以与一名其他角色拼点。若你赢,你获得对方的拼点牌,且本回合内使用的下一张基本牌或非延时锦囊牌能额外(无距离限制)指定一个目标;若你没赢,你收回拼点牌且本回合不能使用锦囊牌',
|
||||
qiaoshui_info:'出牌阶段开始时,你可与一名其他角色拼点。若你赢,你使用的下一张基本牌或非延时类锦囊牌可以额外指定任意一名其他角色为目标或减少指定一个目标;若你没赢,你不能使用锦囊牌直到回合结束',
|
||||
junxing:'峻刑',
|
||||
junxing_info:'出牌阶段限一次,你可以弃置至少一张手牌并选择一名其他角色,该角色需弃置一张与你弃置的牌类别均不同的手牌,否则其先将其武将牌翻面再摸X张牌(X为你以此法弃置的手牌数量)。',
|
||||
|
||||
|
@ -7768,8 +7796,6 @@ character.yijiang={
|
|||
jiangchi_more:'多摸一张',
|
||||
zishou:'自守',
|
||||
zongshi:'宗室',
|
||||
shiyong:'恃勇',
|
||||
shiyong2:'恃勇',
|
||||
danshou:'胆守',
|
||||
olddanshou:'胆守',
|
||||
yizhong:'毅重',
|
||||
|
@ -7856,7 +7882,6 @@ character.yijiang={
|
|||
jiangchi_info:'摸牌阶段摸牌时,你可以选择一项:1、额外摸一张牌,若如此做,你不能使用或打出【杀】,直到回合结束。 2、少摸一张牌,若如此做,出牌阶段你使用【杀】无距离限制且你可以额外使用一张【杀】,直到回合结束。',
|
||||
zishou_info:'摸牌阶段摸牌时,你可以额外摸X张牌(X为现存势力数)。若如此做,你于本回合出牌阶段内使用的牌不能指定其他角色为目标。',
|
||||
zongshi_info:'锁定技,场上每有一种势力,你的手牌上限便+1。',
|
||||
shiyong_info:'锁定技,每当你受到一次红色【杀】或【酒】【杀】造成的伤害后,你减1点体力上限。',
|
||||
danshou_info:'出牌阶段,你可以选择你攻击范围内的一名其他角色,然后弃置X张牌(X为此前你于此阶段你发动“胆守”的次数+1)。若X:为1,你弃置该角色的一张牌;为2,令该角色交给你一张牌;为3,你对该角色造成1点伤害;不小于4,你与该角色各摸两张牌。',
|
||||
olddanshou_info:'每当你造成一次伤害后,你可以摸一张牌。若如此做,终止一切结算,当前回合结束。',
|
||||
yizhong_info:'锁定技,当你没有防具时,黑色的杀对你无效',
|
||||
|
|
|
@ -428,8 +428,12 @@ window.noname_asset_list=[
|
|||
'image/character/nianshou.jpg',
|
||||
'image/character/niutou.jpg',
|
||||
'image/character/old_caoxiu.jpg',
|
||||
'image/character/old_caozhen.jpg',
|
||||
'image/character/old_huaxiong.jpg',
|
||||
'image/character/old_lingtong.jpg',
|
||||
'image/character/old_madai.jpg',
|
||||
'image/character/old_quancong.jpg',
|
||||
'image/character/old_wangyi.jpg',
|
||||
'image/character/old_xusheng.jpg',
|
||||
'image/character/old_zhonghui.jpg',
|
||||
'image/character/old_zhuran.jpg',
|
||||
|
|
|
@ -6767,6 +6767,15 @@
|
|||
game.addVideo('thrownhighlight2');
|
||||
if(event.clear!==false){
|
||||
game.broadcastAll(ui.clear);
|
||||
}
|
||||
if(typeof event.preserve=='function'){
|
||||
event.preserve=event.preserve(event.result);
|
||||
}
|
||||
else if(event.preserve=='win'){
|
||||
event.preserve=event.result.bool;
|
||||
}
|
||||
else if(event.preserve=='lose'){
|
||||
event.preserve=!event.result.bool;
|
||||
}
|
||||
event.dialog.close();
|
||||
},
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 88 KiB |
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
Loading…
Reference in New Issue