删除character里的一些空行

translate和info里的空行没删
This commit is contained in:
157 2024-01-09 19:22:02 +08:00
parent f242bffcab
commit 44437f73b9
27 changed files with 0 additions and 84 deletions

View File

@ -1514,7 +1514,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
target.discard(target.getCards('he').randomGet());
target.addExpose(0.2);
}
player.storage.mapodoufu_markcount--;
if(player.storage.mapodoufu_markcount==0){
delete player.storage.mapodoufu;

View File

@ -643,7 +643,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
order:0.5,
}
},
gw_ganhan:{
fullborder:'gold',
type:'spell',
@ -892,7 +891,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
order:0.2,
}
},
gw_youer:{
fullborder:'silver',
type:'spell',
@ -1268,7 +1266,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
order:7,
}
},
gw_nuhaifengbao:{
fullborder:'silver',
type:'spell',
@ -1378,7 +1375,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
order:1,
}
},
gw_qinpendayu:{
fullborder:'bronze',
type:'spell',

View File

@ -246,7 +246,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
game.log(player,'获得了','#g【'+get.translation(result.control)+'】');
},
},
"jiuwei":{
trigger:{
player:"phaseEnd",

View File

@ -801,7 +801,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}
if(!card) card=event.dialog.buttons[0].link;
}
var button;
for(var i=0;i<dialog.buttons.length;i++){
if(dialog.buttons[i].link==card){
@ -2749,7 +2748,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
prompt+=('即将'+(state>0?'生':'失')+'效。');
}
prompt+='是否使用【无懈可击】?';
if(player.isUnderControl(true)&&!_status.auto&&!ui.tempnowuxie&&map.tempnowuxie){
var translation=get.translation(map.card.name);
if(translation.length>=4){
@ -3263,7 +3261,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}
}
};
var withme=false;
var withol=false;
var list=event.list;

View File

@ -3481,7 +3481,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
game.delay();
}
},
nvwashi:{
trigger:{global:'dying'},
priority:6,

View File

@ -85,7 +85,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
if(result.bool){
target.lose(result.cards,ui.special);
target.$throw(result.cards);
game.log(target,'用',result.cards,'替换了',event.button.link);
target.gain(event.button.link);
target.$gain2(event.button.link);

View File

@ -348,7 +348,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
},
},
skill:{
},
translate:{
zhenfa:'阵法',

View File

@ -109,7 +109,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
else{
card=result.links[0];
}
var button;
for(var i=0;i<dialog.buttons.length;i++){
if(dialog.buttons[i].link==card){

View File

@ -1,5 +1,4 @@
'use strict';
game.import('character',function(lib,game,ui,get,ai,_status){
return {
name:'ddd',
@ -3834,7 +3833,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
node1.listenTransition(onEnd02);
}(players[i],cards1[i],i))
}
setTimeout(function(){
var left0=-targets.length*52-(targets.length-1)*8;
for(var i=0;i<targets.length;i++){

View File

@ -4737,7 +4737,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
dialog.content.appendChild(table2);
dialog.add('  ');
event.dialog.open();
event.switchToAuto=function(){
event._result={
bool:false,
@ -11142,7 +11141,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
},
noname_zhuyuan:{
enable:"phaseUse",
position:"he",
@ -12360,7 +12358,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger.num++;
},
},
//手杀削弱版许攸
junkshicai:{
audio:'nzry_shicai_2',
@ -15092,7 +15089,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addTempSkill(result);
player.popup(result);
game.log(player,'获得了','【'+get.translation(result)+'】');
var names=[];
for(var i=0;i<game.players.length;i++){
names.add(game.players[i].name);
@ -15884,20 +15880,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
leftdist:{
mod:{
globalFrom:function(from,to,distance){
},
globalTo:function(from,to,distance){
}
}
},
rightdist:{
mod:{
globalFrom:function(from,to,distance){
},
globalTo:function(from,to,distance){
}
}
},

View File

@ -766,7 +766,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
capt+=`&nbsp;&nbsp;范围:${infoHp}`;
}
uiintro.add(capt);
if(lib.characterTitle[node.link]){
uiintro.addText(get.colorspan(lib.characterTitle[node.link]));
}
@ -785,7 +784,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
}
return node;
},
video:function(player,info){
@ -4471,7 +4469,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
result:{player:1},
},
},
caopi_xingdong:{
audio:'olfangquan',
audioname:['shen_caopi'],
@ -7008,7 +7005,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
},
"drlt_duorui":{
audio:2,
init:function(player,skill){

View File

@ -573,16 +573,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
huogong:[1,'你可以将一张手牌当作火攻使用'],
aoe:[2,'出牌阶段限一次,你可以弃置两张牌,视为使用一张南蛮入侵'],
shas:[2,'每当你使用一张杀,你可以追加一名无视距离的目标'],
},
defend:{
},
assist:{
},
control:{
}
}
}
@ -2505,7 +2501,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1'
if(event.discard){
player.discardPlayerCard(target,'h',true,'visible');
}
else{
if(result.links&&result.links.length){

View File

@ -4910,7 +4910,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
// player.$draw(player.storage.xunbao2);
player.addSkill('xunbao2');
game.delay(2);
event.node=event.card.copy('thrown','center','thrownhighlight',ui.arena).addTempClass('start');
ui.arena.classList.add('thrownhighlight');
game.addVideo('thrownhighlight1');
@ -8218,7 +8217,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.storage.huanfeng_end;
},
content:function(){
player.insertPhase();
delete player.storage.huanfeng_end;
}

View File

@ -505,7 +505,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else{
player.chat('没有非基本牌…');
game.log(`但是${position=='discardPile'?'弃':''}牌堆里没有非基本牌!`);
}
},
},
@ -2730,7 +2729,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addSkill('dctaji_damage');
player.addMark('dctaji_damage',1,false);
game.log(player,'下一次对其他角色造成的伤害','#g+1');
}]
];
var name=evt.name;

View File

@ -571,7 +571,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
jingfan:'惊帆',
jingfan2:'惊帆',
jingfan_info:'回合内,每当你使用一张卡牌,你的进攻距离+1出牌阶段结束时你可以将手牌数补至X并指定至多X名角色令其进攻距离+1直到其下一回合结束X为你回合内使用的卡牌数。',
},
};
});

View File

@ -234,7 +234,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}
},
},
jsrgzhenfeng:{
audio:2,
@ -838,7 +837,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
animate:'gain2',
}).setContent('gaincardMultiple');
}
},
subSkill:{
zero:{

View File

@ -8092,7 +8092,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
die: new Audio(),
played: false,
};
const gnd = {
sprite: new Image(),
x: 0,
@ -8149,7 +8148,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
this.pipes.forEach((pipe) => {
pipe.x -= dx * deltaTime;
});
if (this.pipes.length && this.pipes[0].x < -this.top.sprite.width) {
this.pipes.shift();
this.moved = true;
@ -8215,7 +8213,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
updateText(`${title||'御风飞行'}表演失败……`)
setTimeout(switchToAuto,2000);
}
break;
case state.gameOver:
this.frame = 1;
@ -8232,7 +8229,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
SFX.played = true;
}
}
break;
}
const animationsLength = this.animations.length;

View File

@ -311,7 +311,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addTempSkill('feitiao2');
target.randomDiscard();
}
}
},
feitiao2:{

View File

@ -1589,7 +1589,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(event.targets.length>1) return false;
if(!event.target) return false;
if(event.target.hp>player.hp) return false;
var card=event.card;
if(card.name=='sha') return true;
if(get.color(card)=='black'&&get.type(card,'trick')=='trick') return true;
@ -11535,7 +11534,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
},
"new_yajiao":{
audio:"reyajiao",
trigger:{
@ -12246,7 +12244,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
},
reguanxing:{
audio:'guanxing',
audioname:['jiangwei','re_jiangwei','re_zhugeliang','gexuan','ol_jiangwei'],
@ -14052,7 +14049,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 3"
player.line(result.targets,'green');
result.targets[0].gain(event.card,'gain2');
},
ai:{
order:9,

View File

@ -1437,8 +1437,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
charlotte:true,
},
"drlt_congjian":{
audio:2,
audioname2:{tongyuan:'ocongjian_tongyuan'},
@ -1692,7 +1690,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(cards.length) player.gain(cards,'gain2');
},
},
nzry_juzhan:{
audio:"nzry_juzhan_1",
mark:true,
@ -2662,7 +2659,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
delete player.storage.nzry_shenshi2;
},
},
xinjushou:{
audio:2,
trigger:{player:'phaseJieshuBegin'},

View File

@ -53,7 +53,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sp_chenzhen:['male','shu',3,['shameng']],
sp_sunshao:['male','wu',3,['mjdingyi','mjzuici','mjfubi']],
sp_xunchen:['male','qun',3,['mjweipo','mjchenshi','mjmouzhi'],['clan:颍川荀氏']],
},
skill:{
//刘巴
@ -6299,7 +6298,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
wujing:'吴景本吴郡吴县今江苏苏州后迁居吴郡钱塘今浙江杭州孙坚妻子吴夫人武烈皇后之弟孙策和孙权的舅舅东汉末年将领。吴景因追随孙坚征伐有功被任命为骑都尉。袁术上表举荐吴景兼任丹杨太守讨伐前任太守周昕占据丹杨。后遭扬州刺史刘繇逼迫再度依附袁术袁术任用他为督军中郎将与孙贲共同进击樊能等人。又在秣陵攻打笮融、薛礼。袁术与刘备争夺徐州时任吴景为广陵太守。建安二年197年吴景放弃广陵东归孙策孙策任他为丹杨太守。朝廷使者吴景为扬武将军郡守之职照旧。建安八年203年吴景死于任上。',
feiyi:'费祎253年2月字文伟江夏鄳县今河南省罗山县三国时期蜀汉名臣与诸葛亮、蒋琬、董允并称为蜀汉四相。深得诸葛亮器重屡次出使东吴孙权、诸葛恪、羊茞等人以辞锋刁难而费祎据理以答辞义兼备始终不为所屈。孙权非常惊异于他的才能加以礼遇。北伐时为中护军又转为司马。当时魏延与杨仪不和经常争论费祎常为二人谏喻两相匡护以尽其用。诸葛亮死后初为后军师再为尚书令官至大将军封成乡侯。费祎主政时与姜维北伐的主张相左执行休养生息的政策为蜀汉的发展尽心竭力。费祎性格谦恭真诚颇为廉洁家无余财。后为魏降将郭循一作郭脩行刺身死。葬于今广元市昭化古城城西。',
luotong:'骆统193年228年字公绪。会稽郡乌伤县今浙江义乌人。东汉末年至三国时期吴国将领、学者陈国相骆俊之子。骆统二十岁时已任乌程国相任内有政绩使得国中民户过万。又迁为功曹行骑都尉。曾劝孙权尊贤纳士省役息民。后出任为建忠中郎将。将军凌统逝世后统领其部曲。因战功迁偏将军封新阳亭侯任濡须督。黄武七年228年骆统去世年仅三十六岁。有集十卷今已佚。',
},
characterTitle:{
},
@ -6863,7 +6861,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
tongduo:'统度',
tongduo_info:'每回合限一次。当你成为其他角色使用牌的唯一目标后,你可令一名角色重铸一张牌。',
mobile_shijiren:'始计篇·仁',
mobile_shijizhi:'始计篇·智',
mobile_shijixin:'始计篇·信',

View File

@ -1478,7 +1478,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return [
(player.countCards('h')?'弃置至少一半的手牌,然后':'')+'摸三张牌',
'摸三张牌,然后弃置至少一半的手牌',
][player.countCards('h')%2];
},
check:function(card){
@ -5414,7 +5413,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseUseTarget(card,true).set('logSkill','oljianman').set('prompt','鹣蛮:选择'+get.translation(card)+'的目标');
}
}
},
//张华
olbihun:{
@ -16461,7 +16459,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
if(maxval<=6) return dh;
return 0;
}).set('maxval',maxval);
'step 1'
if(result.bool){
@ -25041,7 +25038,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:"limited",
},
},
"xinfu_falu":{
subSkill:{
spade:{
@ -25666,7 +25662,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
liqueguosi:'李傕郭汜',
cuimao:'崔琰毛玠',
caoying:"曹婴",
simahui:"司马徽",
baosanniang:"鲍三娘",

View File

@ -87,7 +87,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
// swd_yangshuo:['male','qun',4,['longdan','luomu']],
// swd_zhanglie:['male','qun',4,['huajin','poxiao']],
swd_hanluo:['male','qun',5,['tiebi']],
swd_fu:['male','qun',5,['yudun']],
swd_linyue:['male','wei',3,['zhenjiu','lmazui']],
@ -1082,7 +1081,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result&&result.cards){
event.card=result.cards[0];
player.lose(result.cards,ui.special);
var cardx=ui.create.card();
cardx.classList.add('infohidden');
cardx.classList.add('infoflip');
@ -3419,7 +3417,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(target.sex!='male') return false;
var name=target.name.indexOf('unknown')==0?target.name2:target.name;
if(name==player.storage.huanxing) return false;
var info=lib.character[name];
if(info){
var skills=info[3];
@ -4317,7 +4314,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(get.attitude(target,player)>0) return 0;
return 9-get.value(card);
}
"step 1"
if(result.bool){
target.addTempSkill('duishi3');
@ -5260,7 +5256,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger.player.update();
player.addTempSkill('susheng2');
}
},
ai:{
threaten:2
@ -5407,14 +5402,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var handcards1,handcards2,judges,equips,viewAs,i,j;
player.storage.kunlunjing=[];
player.storage.kunlunjing2=player.hp;
for(i=0;i<game.players.length;i++){
viewAs=[];
handcards1=[];
handcards2=[];
judges=[];
equips=[];
for(j=0;j<game.players[i].node.handcards1.childNodes.length;j++)
handcards1.push(game.players[i].node.handcards1.childNodes[j]);
@ -6666,7 +6659,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.targets[i].directgain(get.cards(2));
event.targets[i].$draw(2);
}
},
ai:{
threaten:1.3,
@ -8505,7 +8497,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else{
player.node.avatar.setBackground('swd_satan','character');
}
"step 1"
player.recover(2);
"step 2"
@ -9136,7 +9127,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
get.cnNumber(i+1,true)+'】</div><div>'+effects[i]+'</div></div>');
item.addEventListener('click',clickItem);
item.link=i+1;
}
event.control=ui.create.control('取消',function(){
event.choice=0;
@ -9225,7 +9215,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else{
player.unmarkSkill('mailun');
}
if(event.dialog){
event.dialog.close();
}
@ -10120,7 +10109,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
shehun:'摄魂',
shehun_info:'出牌阶段限一次你可以弃置任意张花色不同的牌另一名其他角色弃置等量的牌若其弃置的牌中有牌的花色与你弃置的牌相同你对其造成1点伤害。',
zhanlu:'沾露',
luomu:'落木',
jifeng:'魔影',

View File

@ -3783,7 +3783,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.addTempSkill('twqirang_use');
player.addTempSkill('twqirang_clear',['phaseZhunbeiAfter','phaseDrawAfter','phaseUseAfter','phaseDiscardAfter','phaseJieshuAfter','phaseAfter']);
}
},
ai:{
effect:{
@ -8554,7 +8553,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.stat[player.stat.length-1].card.sha--;
}
}
}
}
}
@ -9093,7 +9091,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
evt.skipped=true;
}
}
}
}
},

View File

@ -2005,7 +2005,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
return 0;
}
for(var i=0;i<targets.length;i++){
if(lib.skill.dcpandi.pandi_canUse(player,card,targets[i],null,true)){
var eff=lib.skill.dcpandi.pandi_effect(targets[i],card,player,viewer);
@ -7627,7 +7626,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
dialog.content.appendChild(table2);
dialog.add('  ');
event.dialog.open();
event.switchToAuto=function(){
event._result={
bool:true,
@ -11661,7 +11659,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){},
ai:{combo:'shiyuan'},
},
//新岩泽(划掉)留赞
refenyin:{
audio:2,
@ -13097,7 +13094,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
},
tuiyan:{
audio:2,
trigger:{player:'phaseUseBegin'},

View File

@ -295,7 +295,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return -get.sgn(get.attitude(player,current));
}
});
if(num2>=num1) return 0;
return 2*(num2-num1);
}
@ -3391,7 +3390,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.removeAdditionalSkill('xshuangren');
}
}
},
ai:{
effect:{

View File

@ -1268,7 +1268,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
content:function(){
player.awakenSkill('heqin');
player.addSkill('heqin2');
target.addSkill('heqin2');
@ -1555,7 +1554,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(target.sex!='male') return false;
var name=target.name.indexOf('unknown')==0?target.name2:target.name;
if(name==player.storage.yizhuang) return false;
var info=lib.character[name];
if(info){
var skills=info[3];
@ -3098,7 +3096,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sheshi:'蛇噬',
sheshi_info:'每受到1次伤害可以指定1种花色依次展示牌堆顶的牌直到出现指定花色的牌为止你获得与指定花色不同花色的所有牌最多展示四张牌。',
fengyi:'凤仪',
fengyi_info:'出牌阶段,你可以弃一张手牌,指定任意目标摸两张牌。(每回合限用一次)',
wange:'婉歌',