对Sukincen的代码进行格式化

This commit is contained in:
Spmario233 2023-10-11 11:04:49 +08:00
parent a40cfd1cdf
commit 5ff2726a1d
1 changed files with 90 additions and 94 deletions

View File

@ -92,40 +92,39 @@ game.import('character',function(lib,game,ui,get,ai,_status){
yxs_meixi:'妺喜,姓嬉(喜),生卒年不详,亦作妺嬉、末喜、末嬉,有施氏之女,夏朝最后一位君主夏桀的王后。根据先秦时代记述女子名时所用的全称和简称方式,妺喜应姓喜,即嬉(也作僖)。由于其名字的“妺”字与“妹妹”的“妹”字字形相似,且在《庄子》等作中也有以妺为妹的用法,因此常误作"妹喜"。',
yxs_lanlinwang:'高长恭541年―573年又名高孝瓘、高肃祖籍渤海调蓨今河北省景县神武帝高欢之孙文襄帝高澄第四子生母不详南北朝时期北齐宗室、将领封爵兰陵郡王。高长恭貌柔心壮音容兼美。为将躬勤细事每得甘美虽一瓜数果必与将士分享。累次升任至并州刺史。突厥攻入晋阳高长恭奋力将其击退。邙山之战高长恭为中军率领五百骑兵再入周军包围圈直至金墉城下因高长恭戴着头盔城中的人不确定是敌军或是我军直到高长恭把头盔脱下来城上的人才知道是高长恭派弓箭手开始放箭保护他之后高长恭成功替金墉解围高长恭在此次战中威名大振士兵们为此战而讴歌他即后来知名的《兰陵王入阵曲》。',
},
characterTitle:{
"yxs_qinqiong":"Sukincen",
},
characterTitle:{
yxs_qinqiong:"Sukincen",
},
skill:{
yxs_fanji:{
audio:2,
trigger:{
player:"damageEnd",
},
direct:true,
priority:12,
filter:function (event,player){
if(!player.countCards('h',{name:'sha'})) return false;
return event.card.name=='sha'||event.card.name=='juedou';
},
content:function (){
player.addTempSkill('yxs_fanji2','shaAfter');
player.chooseToUse({name:'sha'},trigger.source,'反击:是否对'+get.translation(trigger.source)+'使用一张杀?').logSkill='yxs_fanji';
},
},
yxs_fanji2:{
audio:2,
trigger:{
player:"shaBegin",
},
direct:true,
filter:function (event,player){
return event.card&&event.card.name=='sha'&&get.color(event.card)=='red';
},
content:function (){
trigger.directHit=true;
},
},
audio:2,
trigger:{
player:"damageEnd",
},
direct:true,
priority:12,
filter:function (event,player){
if(!player.countCards('h',{name:'sha'})) return false;
return event.card.name=='sha'||event.card.name=='juedou';
},
content:function(){
player.addTempSkill('yxs_fanji2','shaAfter');
player.chooseToUse({name:'sha'},trigger.source,'反击:是否对'+get.translation(trigger.source)+'使用一张杀?').logSkill='yxs_fanji';
},
},
yxs_fanji2:{
audio:2,
trigger:{
player:"shaBegin",
},
direct:true,
filter:function (event,player){
return event.card&&event.card.name=='sha'&&get.color(event.card)=='red';
},
content:function (){
trigger.directHit=true;
},
},
yxs_menshen3:{
trigger:{
player:['phaseBegin','dieBegin'],
@ -133,78 +132,75 @@ game.import('character',function(lib,game,ui,get,ai,_status){
silent:true,
filter:function(event,player){
return game.hasPlayer(function(current){
return current.hasSkill('yxs_menshen2');
});
return current.hasSkill('yxs_menshen2');
});
},
content:function(){
for(var i=0;i<game.players.length;i++){
if(game.players[i].hasSkill('yxs_menshen2')){
game.players[i].removeSkill('yxs_menshen2');
}
for(var i=0;i<game.players.length;i++){
if(game.players[i].hasSkill('yxs_menshen2')){
game.players[i].removeSkill('yxs_menshen2');
}
}
},
},
yxs_menshen:{
audio:2,
trigger:{
player:"phaseEnd",
},
priority:15,
group:'yxs_menshen3',
onremove:true,
filter:function (event,player){
return game.players.length>1;
},
content:function (){
"step 0"
player.chooseTarget('选择【门神】的目标',lib.translate.yxs_menshen_info,true,function(card,player,target){
return target!=player;
}).set('ai',function(target){
return get.attitude(player,target);
});
"step 1"
if(result.bool){
var target=result.targets[0];
},
yxs_menshen:{
audio:2,
trigger:{
player:"phaseEnd",
},
priority:15,
group:'yxs_menshen3',
onremove:true,
filter:function (event,player){
return game.players.length>1;
},
content:function(){
"step 0"
player.chooseTarget('选择【门神】的目标',lib.translate.yxs_menshen_info,true,function(card,player,target){
return target!=player;
}).set('ai',function(target){
return get.attitude(player,target);
});
"step 1"
if(result.bool){
var target=result.targets[0];
player.line(target,'green');
game.log(target,'成为了','【门神】','的目标');
target.storage.yxs_menshen2=player;
target.addSkill('yxs_menshen2');
}
else {
event.finish();
}
},
ai:{
expose:0.5,
},
},
yxs_menshen2:{
audio:2,
mark:'character',
}
else{
event.finish();
}
},
ai:{
expose:0.5,
},
},
yxs_menshen2:{
audio:2,
mark:'character',
intro:{
content:'当你成为【杀】或【决斗】的目标后,改为$成为目标'
},
nopop:true,
priority:15,
trigger:{
target:["shaBegin","juedouBegin"],
},
forced:true,
priority:15,
trigger:{
target:["shaBegin","juedouBegin"],
},
forced:true,
popup:false,
filter:function(event,player){
return player.isAlive();
},
content:function (){
var target=player.storage.yxs_menshen2;
trigger.player.line(target,'green');
trigger.targets.remove(player);
trigger.targets.push(target);
trigger.target = target;
},
},
content:function (){
var target=player.storage.yxs_menshen2;
trigger.player.line(target,'green');
trigger.targets.remove(player);
trigger.targets.push(target);
trigger.target = target;
},
},
guimian:{
trigger:{source:'damageEnd'},
forced:true,
@ -2938,12 +2934,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
yxs_qinqiong:"秦琼",
yxs_fanji:"反击",
yxs_fanji2:"反击",
yxs_fanji_info:"当你受到【杀】或【决斗】造成的伤害后,你可以对伤害来源使用一张【杀】。若此【杀】为红色,其不可闪避",
yxs_menshen:"门神",
yxs_menshen2:"门神",
yxs_menshen3:"门神",
yxs_menshen_info:"回合结束阶段,你可选择一名其他角色,若如此做,直到你的下回合开始,所有角色对该角色使用的【杀】或【决斗】均视为对你使用",
yxs_fanji2:"反击",
yxs_fanji_info:"当你受到【杀】或【决斗】造成的伤害后,你可以对伤害来源使用一张【杀】。若此【杀】为红色,其不可闪避",
yxs_menshen:"门神",
yxs_menshen2:"门神",
yxs_menshen3:"门神",
yxs_menshen_info:"回合结束阶段,你可选择一名其他角色,若如此做,直到你的下回合开始,所有角色对该角色使用的【杀】或【决斗】均视为对你使用",
zhuxin:'诛心',
zhuxin_info:'出牌阶段限一次,你可以与一名其他角色拼点,若你赢,你对其造成一点伤害',
wlianhuan:'连环',