快用你的千早光线想想办法

This commit is contained in:
Spmario233 2021-02-20 21:23:27 +08:00
parent 9aba2b7106
commit 7d6234ba61
40 changed files with 515 additions and 35 deletions

BIN
audio/die/wolongfengchu.mp3 Normal file

Binary file not shown.

BIN
audio/skill/luanfeng1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/luanfeng2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/yingyang1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/yingyang2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/youlong1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/youlong2.mp3 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -62,6 +62,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
key_shizuku:['female','key',3,['shizuku_sizhi','shizuku_biyi','shizuku_sanhua']], key_shizuku:['female','key',3,['shizuku_sizhi','shizuku_biyi','shizuku_sanhua']],
key_hiroto:['male','key',3,['hiroto_huyu','hiroto_tuolao']], key_hiroto:['male','key',3,['hiroto_huyu','hiroto_tuolao']],
key_sakuya:['male','key',4,['youlong','luanfeng','sakuya_junbu']], key_sakuya:['male','key',4,['youlong','luanfeng','sakuya_junbu']],
key_youta:['male','key',4,[]],
key_rumi:['female','key','3/4',['rumi_shuwu']],
key_chihaya:['female','key',3,['chihaya_liewu','chihaya_youfeng']],
key_kud:['female','key',3,['kud_qiaoshou','kud_buhui']], key_kud:['female','key',3,['kud_qiaoshou','kud_buhui']],
key_misuzu:['female','key',3,['misuzu_hengzhou','misuzu_nongyin','misuzu_zhongxing']], key_misuzu:['female','key',3,['misuzu_hengzhou','misuzu_nongyin','misuzu_zhongxing']],
@ -172,7 +175,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
diy_tieba:["ns_zuoci","ns_lvzhi","ns_wangyun","ns_nanhua","ns_nanhua_left","ns_nanhua_right","ns_huamulan","ns_huangzu","ns_jinke","ns_yanliang","ns_wenchou","ns_caocao","ns_caocaosp","ns_zhugeliang","ns_wangyue","ns_yuji","ns_xinxianying","ns_guanlu","ns_simazhao","ns_sunjian","ns_duangui","ns_zhangbao","ns_masu","ns_zhangxiu","ns_lvmeng","ns_shenpei","ns_yujisp","ns_yangyi","ns_liuzhang","ns_xinnanhua"], diy_tieba:["ns_zuoci","ns_lvzhi","ns_wangyun","ns_nanhua","ns_nanhua_left","ns_nanhua_right","ns_huamulan","ns_huangzu","ns_jinke","ns_yanliang","ns_wenchou","ns_caocao","ns_caocaosp","ns_zhugeliang","ns_wangyue","ns_yuji","ns_xinxianying","ns_guanlu","ns_simazhao","ns_sunjian","ns_duangui","ns_zhangbao","ns_masu","ns_zhangxiu","ns_lvmeng","ns_shenpei","ns_yujisp","ns_yangyi","ns_liuzhang","ns_xinnanhua"],
diy_fakenews:["diy_wenyang","ns_zhangwei","ns_caimao"], diy_fakenews:["diy_wenyang","ns_zhangwei","ns_caimao"],
diy_default:["diy_feishi","diy_liuyan","diy_yuji","diy_caiwenji","diy_lukang","diy_zhenji","diy_liufu","diy_xizhenxihong","diy_liuzan","diy_zaozhirenjun","diy_yangyi","diy_tianyu"], diy_default:["diy_feishi","diy_liuyan","diy_yuji","diy_caiwenji","diy_lukang","diy_zhenji","diy_liufu","diy_xizhenxihong","diy_liuzan","diy_zaozhirenjun","diy_yangyi","diy_tianyu"],
diy_key:["key_lucia","key_kyousuke","key_yuri","key_haruko","key_umi","key_rei","key_komari","key_yukine","key_yusa","key_misa","key_masato","key_iwasawa","key_kengo","key_yoshino","key_yui","key_tsumugi","key_saya","key_harukakanata","key_inari","key_shiina","key_sunohara","key_rin","key_sasami","key_akane","key_doruji","key_yuiko","key_riki","key_hisako","key_hinata","key_noda","key_tomoya","key_nagisa","key_ayato","key_ao","key_yuzuru","sp_key_kanade","key_mio","key_midori","key_kyoko","key_shizuru","key_shiorimiyuki","key_miki","key_shiori","key_kaori","sp_key_yuri","key_akiko","key_abyusa","key_godan","key_yuu","key_ryoichi","key_kotori","key_jojiro","key_shiroha","key_shizuku","key_hiroto","key_sakuya"], diy_key:["key_lucia","key_kyousuke","key_yuri","key_haruko","key_umi","key_rei","key_komari","key_yukine","key_yusa","key_misa","key_masato","key_iwasawa","key_kengo","key_yoshino","key_yui","key_tsumugi","key_saya","key_harukakanata","key_inari","key_shiina","key_sunohara","key_rin","key_sasami","key_akane","key_doruji","key_yuiko","key_riki","key_hisako","key_hinata","key_noda","key_tomoya","key_nagisa","key_ayato","key_ao","key_yuzuru","sp_key_kanade","key_mio","key_midori","key_kyoko","key_shizuru","key_shiorimiyuki","key_miki","key_shiori","key_kaori","sp_key_yuri","key_akiko","key_abyusa","key_godan","key_yuu","key_ryoichi","key_kotori","key_jojiro","key_shiroha","key_shizuku","key_hiroto","key_sakuya","key_youta","key_rumi","key_chihaya"],
diy_trashbin:['old_jiakui','ol_guohuai','junk_zhangrang','junk_simayi'], diy_trashbin:['old_jiakui','ol_guohuai','junk_zhangrang','junk_simayi'],
}, },
}, },
@ -188,6 +191,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
diy_tianyu:'字国让,渔阳雍奴(今天津市武清区东北)人。三国时期曹魏将领。初从刘备,因母亲年老回乡,后跟随公孙瓒,公孙瓒败亡,劝说鲜于辅加入曹操。曹操攻略河北时,田豫正式得到曹操任用,历任颖阴、郎陵令、弋阳太守等。', diy_tianyu:'字国让,渔阳雍奴(今天津市武清区东北)人。三国时期曹魏将领。初从刘备,因母亲年老回乡,后跟随公孙瓒,公孙瓒败亡,劝说鲜于辅加入曹操。曹操攻略河北时,田豫正式得到曹操任用,历任颖阴、郎陵令、弋阳太守等。',
}, },
characterTitle:{ characterTitle:{
key_chihaya:'#bRewrite',
key_rumi:'#rONE ~輝く季節へ~',
key_youta:'#b神様になった日',
key_sakuya:'#bRewrite', key_sakuya:'#bRewrite',
key_hiroto:'#b神様になった日', key_hiroto:'#b神様になった日',
key_shizuku:'#bSummer Pockets', key_shizuku:'#bSummer Pockets',
@ -350,6 +356,370 @@ game.import('character',function(lib,game,ui,get,ai,_status){
key_lucia:['key_shizuru'], key_lucia:['key_shizuru'],
}, },
skill:{ skill:{
chihaya_liewu:{
derivation:'chihaya_huairou',
mod:{
cardUsable:function(card){
if(card.name=='sha') return Infinity;
},
targetInRange:function(card){
if(card.name=='sha') return true;
},
},
trigger:{player:'useCard2'},
direct:true,
filter:function(event,player){
var card=event.card;
var info=get.info(card);
if(info.type!='trick'||info.allowMultiple==false) return false;
if(event.targets&&!info.multitarget){
if(game.hasPlayer(function(current){
return !event.targets.contains(current)&&lib.filter.targetEnabled2(card,player,current);
})){
return true;
}
}
return false;
},
content:function(){
'step 0'
var prompt2='为'+get.translation(trigger.card)+'增加一个目标';
player.chooseTarget(get.prompt('chihaya_liewu'),function(card,player,target){
var player=_status.event.player;
return !_status.event.targets.contains(target)&&lib.filter.targetEnabled2(_status.event.card,player,target);
}).set('prompt2',prompt2).set('ai',function(target){
var trigger=_status.event.getTrigger();
var player=_status.event.player;
return get.effect(target,trigger.card,player,player);
}).set('card',trigger.card).set('targets',trigger.targets);
'step 1'
if(result.bool){
if(!event.isMine()) game.delayx();
event.targets=result.targets;
}
else{
event.finish();
}
'step 2'
if(event.targets){
player.logSkill('chihaya_liewu',event.targets);
trigger.targets.addArray(event.targets);
}
},
group:'chihaya_liewu2',
},
chihaya_liewu2:{
trigger:{player:'disableEquipAfter'},
forced:true,
filter:function(event,player){
return player.countDisabled()>=5&&!player._chihaya_liewu;
},
skillAnimation:true,
animationColor:'orange',
content:function(){
player._chihaya_liewu=true;
player.loseMaxHp(4);
player.addSkill('chihaya_huairou');
},
},
chihaya_huairou:{
audio:2,
enable:"phaseUse",
position:'he',
filter:function(event,player){
return player.countCards('he',{type:'equip'})>0;
},
filterCard:function(card){
return get.type(card)=='equip';
},
check:function(card){
if(_status.event.player.isDisabled(get.subtype(card))) return 5;
return 3-get.value(card);
},
content:function(){
player.draw();
},
discard:false,
visible:true,
loseTo:'discardPile',
prompt:"将一张装备牌置入弃牌堆并摸一张牌",
delay:0.5,
prepare:function(cards,player){
player.$throw(cards,1000);
game.log(player,'将',cards,'置入了弃牌堆');
},
ai:{
order:10,
result:{
player:1,
},
},
},
chihaya_youfeng:{
enable:'chooseToUse',
zhuanhuanji:true,
init:function(player){
player.storage.chihaya_youfeng=false;
},
hiddenCard:function(player,name){
if(player.storage.chihaya_youfeng&&player.countDisabled()>=5) return false;
if(player.hasSkill('chihaya_youfeng_'+(player.storage.chihaya_youfeng||false))) return false;
var type=get.type(name);
if(player.storage.chihaya_youfeng) return type=='basic';
return type=='trick';
},
filter:function(event,player){
if(player.storage.chihaya_youfeng&&player.countDisabled()>=5) return false;
if(player.hasSkill('chihaya_youfeng_'+(player.storage.chihaya_youfeng||false))) return false;
var type=player.storage.chihaya_youfeng?'basic':'trick';
for(var name of lib.inpile){
if(get.type(name)!=type) continue;
if(event.filterCard({name:name,isCard:true},player,event)) return true;
}
return false;
},
chooseButton:{
dialog:function(event,player){
var dialog=ui.create.dialog('游凤','hidden');
if(player.storage.chihaya_youfeng){
var table=document.createElement('div');
table.classList.add('add-setting');
table.style.margin='0';
table.style.width='100%';
table.style.position='relative';
for(var i=1;i<6;i++){
if(player.isDisabled(i)) continue;
var td=ui.create.div('.shadowed.reduce_radius.pointerdiv.tdnode');
td.innerHTML='<span>'+get.translation('equip'+i)+'</span>';
td.link=i;
td.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.button);
for(var j in lib.element.button){
td[j]=lib.element.button[i];
}
table.appendChild(td);
dialog.buttons.add(td);
}
dialog.content.appendChild(table);
}
var type=player.storage.chihaya_youfeng?'basic':'trick';
var list=[];
for(var name of lib.inpile){
if(get.type(name)!=type) continue;
if(event.filterCard({name:name,isCard:true},player,event)){
list.push([type,'',name]);
if(name=='sha'){
list.push([type,'',name,'fire']);
list.push([type,'',name,'thunder']);
list.push([type,'',name,'ice']);
}
}
}
dialog.add([list,'vcard']);
return dialog;
},
filter:function(button){
if(ui.selected.buttons.length&&typeof button.link==typeof ui.selected.buttons[0].link) return false;
return true;
},
select:function(){
if(_status.event.player.storage.chihaya_youfeng) return 2;
return 1;
},
check:function(button){
var player=_status.event.player;
if(typeof button.link=='number'){
var card=player.getEquip(button.link);
if(card){
var val=get.value(card);
if(val>0) return 0;
return 5-val;
}
switch(button.link){
case 3:return 4.5;break;
case 4:return 4.4;break;
case 5:return 4.3;break;
case 2:return (3-player.hp)*1.5;break;
case 1:{
if(game.hasPlayer(function(current){
return (get.realAttitude||get.attitude)(player,current)<0&&get.distance(player,current)>1;
})) return 0;
return 3.2;
}
}
}
var name=button.link[2];
var evt=_status.event.getParent();
if(get.type(name)=='basic'){
if(name=='shan') return 2;
if(evt.type=='dying'){
if(get.attitude(player,evt.dying)<2) return false;
if(name=='jiu') return 2.1;
return 1.9;
}
if(evt.type=='phase') return player.getUseValue({name:name,nature:button.link[3],isCard:true});
return 1;
}
if(!['chuqibuyi','shuiyanqijunx','juedou','nanman','wanjian','shunshou','zhujinqiyuan'].contains(name)) return 0;
var card={name:name,isCard:true};
if(['shunshou','zhujinqiyuan'].contains(card.name)){
if(!game.hasPlayer(function(current){
return get.attitude(player,current)!=0&&get.distance(player,current)<=1&&player.canUse(card,current)&&get.effect(current,card,player,player)>0;
})) return 0;
return player.getUseValue(card)-7;
}
return player.getUseValue(card)-4;
},
backup:function(links,player){
if(links.length==1) return {
filterCard:function(){return false},
selectCard:-1,
viewAs:{
name:links[0][2],
nature:links[0][3],
isCard:true,
},
popname:true,
precontent:function(){
player.logSkill('chihaya_youfeng');
player.gainMaxHp();
delete event.result.skill;
player.addTempSkill('chihaya_youfeng_'+(player.storage.chihaya_youfeng||false),'roundStart');
player.storage.chihaya_youfeng=!player.storage.chihaya_youfeng;
},
}
if(typeof links[1]=='number') links.reverse();
var equip=links[0];
var name=links[1][2];
var nature=links[1][3];
return {
filterCard:function(){return false},
selectCard:-1,
equip:equip,
viewAs:{
name:name,
nature:nature,
isCard:true,
},
popname:true,
precontent:function(){
player.logSkill('chihaya_youfeng');
player.disableEquip(lib.skill.chihaya_youfeng_backup.equip);
delete event.result.skill;
player.addTempSkill('chihaya_youfeng_'+(player.storage.chihaya_youfeng||false),'roundStart');
player.storage.chihaya_youfeng=!player.storage.chihaya_youfeng;
},
}
},
prompt:function(links,player){
if(links.length==1) return '增加一点体力上限,视为使用'+(get.translation(links[0][3])||'')+get.translation(links[0][2]);
if(typeof links[1]=='number') links.reverse();
var equip='equip'+links[0];
var name=links[1][2];
var nature=links[1][3];
return '废除自己的'+get.translation(equip)+'栏,视为使用'+(get.translation(nature)||'')+get.translation(name);
},
},
ai:{
respondSha:true,
respondShan:true,
skillTagFilter:function(player,tag,arg){
if(arg=='respond') return false;
if(!player.storage.chihaya_youfeng||player.hasSkill('chihaya_youfeng_true')) return false;
},
order:1,
result:{
player:1,
},
},
},
chihaya_youfeng_true:{},
chihaya_youfeng_false:{},
rumi_shuwu:{
mod:{
cardUsable:function(card){
if(card.name=='sha') return Infinity;
},
targetInRange:function(card){
if(card.name=='sha') return true;
},
},
trigger:{player:'useCard2'},
direct:true,
filter:function(event,player){
var card=event.card;
var info=get.info(card);
if(info.type!='trick'||info.allowMultiple==false) return false;
if(event.targets&&!info.multitarget){
if(game.hasPlayer(function(current){
return !event.targets.contains(current)&&lib.filter.targetEnabled2(card,player,current);
})){
return true;
}
}
return false;
},
content:function(){
'step 0'
var prompt2='为'+get.translation(trigger.card)+'增加一个目标';
player.chooseTarget(get.prompt('rumi_shuwu'),function(card,player,target){
var player=_status.event.player;
return !_status.event.targets.contains(target)&&lib.filter.targetEnabled2(_status.event.card,player,target);
}).set('prompt2',prompt2).set('ai',function(target){
var trigger=_status.event.getTrigger();
var player=_status.event.player;
return get.effect(target,trigger.card,player,player);
}).set('card',trigger.card).set('targets',trigger.targets);
'step 1'
if(result.bool){
if(!event.isMine()) game.delayx();
event.targets=result.targets;
}
else{
event.finish();
}
'step 2'
if(event.targets){
player.logSkill('rumi_shuwu',event.targets);
trigger.targets.addArray(event.targets);
}
},
group:'rumi_shuwu2',
},
rumi_shuwu2:{
trigger:{player:'phaseUseEnd'},
forced:true,
filter:function(event,player){
if(player.hp<=3) return true;
if(player.getHistory('useCard',function(evt){
return evt.card.name=='sha'&&evt.addCount!==false&&evt.getParent('phaseUse')==event;
}).length<=1) return true;
if(player.getHistory('sourceDamage',function(evt){
return get.type(evt.card,false)=='trick'&&evt.getParent('phaseUse')==event;
}).length==0) return true;
return false;
},
content:function(){
var num=0;
if(player.hp<=3) num++;
if(player.getHistory('useCard',function(evt){
return evt.card.name=='sha'&&evt.addCount!==false&&evt.getParent('phaseUse')==trigger;
}).length<=1) num++;
if(player.getHistory('sourceDamage',function(evt){
return get.type(evt.card,false)=='trick'&&evt.getParent('phaseUse')==trigger;
}).length==0) num++;
player.draw(num);
player.addTempSkill('rumi_shuwu3');
player.addMark('rumi_shuwu3',num,false);
},
},
rumi_shuwu3:{
mod:{
maxHandcard:function(player,num){
return num+player.countMark('rumi_shuwu3');
},
},
onremove:true,
},
sakuya_junbu:{ sakuya_junbu:{
mod:{ mod:{
targetInRange:function(card,player){ targetInRange:function(card,player){
@ -11836,6 +12206,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
key_shizuku:'水织静久', key_shizuku:'水织静久',
key_hiroto:'铃木央人', key_hiroto:'铃木央人',
key_sakuya:'凤咲夜', key_sakuya:'凤咲夜',
key_youta:'成神阳太',
key_rumi:'七濑留美',
key_chihaya:'凤千早',
lucia_duqu:'毒躯', lucia_duqu:'毒躯',
lucia_duqu_info:'锁定技,①当你对其他角色造成伤害或受到其他角色的伤害时,你和对方各获得一张花色点数随机的【毒】。<br>②当你因【毒】失去体力时,你改为回复等量的体力。<br>③当你处于濒死状态时,你可以使用一张【毒】(每回合限一次)。', lucia_duqu_info:'锁定技,①当你对其他角色造成伤害或受到其他角色的伤害时,你和对方各获得一张花色点数随机的【毒】。<br>②当你因【毒】失去体力时,你改为回复等量的体力。<br>③当你处于濒死状态时,你可以使用一张【毒】(每回合限一次)。',
lucia_zhenren:'振刃', lucia_zhenren:'振刃',
@ -12145,6 +12518,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
hiroto_tuolao_info:'觉醒技,回合结束后,若此回合不是你的第一个回合且你本轮内未因〖虎驭〗失去过牌,则你摸三张牌,失去〖虎驭〗并获得〖纵略〗。', hiroto_tuolao_info:'觉醒技,回合结束后,若此回合不是你的第一个回合且你本轮内未因〖虎驭〗失去过牌,则你摸三张牌,失去〖虎驭〗并获得〖纵略〗。',
sakuya_junbu:'均步', sakuya_junbu:'均步',
sakuya_junbu_info:'锁定技若你已废除的装备栏数量≥1你使用牌无距离限制。≥2你使用牌无次数限制。≥3你使用牌时可以多指定一个目标。≥4你使用的牌不可被响应。≥5你使用牌造成伤害时失去1点体力令此伤害+1。', sakuya_junbu_info:'锁定技若你已废除的装备栏数量≥1你使用牌无距离限制。≥2你使用牌无次数限制。≥3你使用牌时可以多指定一个目标。≥4你使用的牌不可被响应。≥5你使用牌造成伤害时失去1点体力令此伤害+1。',
rumi_shuwu:'淑武',
rumi_shuwu2:'淑武',
rumi_shuwu_info:'锁定技你使用【杀】无距离和次数限制你使用普通锦囊牌选择目标后可增加一个目标。出牌阶段结束时你令X=0且每满足一项便令X+1①你于本阶段内使用【杀】的次数不大于1。②你于本阶段内未使用锦囊牌造成过伤害。③你的体力值不大于3。你摸X张牌且本回合手牌上限+X。',
chihaya_liewu:'烈武',
chihaya_liewu2:'烈武',
chihaya_liewu_info:'锁定技你使用【杀】无距离和次数限制你使用普通锦囊牌选择目标后可增加一个目标。当你首次废除最后一个装备栏后你减4点体力上限并获得技能〖怀柔〗。',
chihaya_youfeng:'游凤',
chihaya_youfeng_info:'转换技每轮限一次你可以加1点体力上限视为使用一张普通锦囊牌每轮限一次你可以废除你的一个装备栏视为使用一张基本牌。',
chihaya_huairou:'怀柔',
chihaya_huairou_info:'出牌阶段,你可以重铸装备牌。',
key_kud:'库特莉亚芙卡', key_kud:'库特莉亚芙卡',
kud_qiaoshou:'巧手', kud_qiaoshou:'巧手',

View File

@ -629,6 +629,8 @@ window.noname_character_rank={
'key_miki', 'key_miki',
'key_ryoichi', 'key_ryoichi',
'key_kotori', 'key_kotori',
'key_chihaya',
'key_rumi',
'nashime', 'nashime',
'ns_huangchengyan', 'ns_huangchengyan',
'ns_yuanxi', 'ns_yuanxi',
@ -1005,6 +1007,7 @@ window.noname_character_rank={
'junk_zhangrang', 'junk_zhangrang',
'ol_guohuai', 'ol_guohuai',
'junk_simayi', 'junk_simayi',
'key_youta',
], ],
rarity:{ rarity:{
legend:[ legend:[
@ -1289,6 +1292,8 @@ window.noname_character_rank={
'key_misa', 'key_misa',
'key_shizuku', 'key_shizuku',
'key_hiroto', 'key_hiroto',
'key_rumi',
'key_chihaya',
'kaisa', 'kaisa',
], ],
rare:[ rare:[
@ -1563,6 +1568,7 @@ window.noname_character_rank={
'junk_zhangrang', 'junk_zhangrang',
'junk_simayi', 'junk_simayi',
'wolongfengchu', 'wolongfengchu',
'key_youta',
], ],
} }
}; };

View File

@ -3746,7 +3746,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return event.player==player||player.storage.xianfu2&&player.storage.xianfu2.contains(player); return event.player==player||player.storage.xianfu2&&player.storage.xianfu2.contains(player);
}, },
content:function(){ content:function(){
if(player==event.player) lib.skill.xianfu2.onremove(player); if(player==trigger.player) lib.skill.xianfu2.onremove(player);
else player.storage.xianfu2.remove(event.player); else player.storage.xianfu2.remove(event.player);
} }
}, },
@ -15897,7 +15897,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
spmingjian:'明鉴', spmingjian:'明鉴',
spmingjian_info:'一名角色的回合开始时,你可以选择一项:①弃置一张牌,然后其跳过本回合的判定阶段。②将一张手牌置于其武将牌上,然后其本回合内进行判定时不触发「判定结果生效前」的时机,且其回合结束时将此牌置入弃牌堆。', spmingjian_info:'一名角色的回合开始时,你可以选择一项:①弃置一张牌,然后其跳过本回合的判定阶段。②将一张手牌置于其武将牌上,然后其本回合内进行判定时不触发「判定结果生效前」的时机,且其回合结束时将此牌置入弃牌堆。',
spyinzhi:'隐智', spyinzhi:'隐智',
spyinzhi_info:'当你受到1点伤害后你可以展示牌堆顶的两张牌。若其中有黑桃牌则你可以进行至多X次「令一名角色获得伤害来源的一张手牌」的步骤然后获得其余的牌。X为其中黑桃牌的数量', spyinzhi_info:'当你受到1点伤害后你可以展示牌堆顶的两张牌。若其中有黑桃牌则你可以进行至多X次「令一名角色获得伤害来源的一张手牌」的步骤然后获得其余的牌。X为其中黑桃牌的数量',
sunshao:'孙邵', sunshao:'孙邵',
bizheng:'弼政', bizheng:'弼政',
bizheng_info:'摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。', bizheng_info:'摸牌阶段结束时,你可以令一名其他角色摸两张牌。然后,若你的手牌数大于体力上限,你弃置两张牌。若其的手牌数大于体力上限,其弃置两张牌。',

View File

@ -47,25 +47,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
'step 0' 'step 0'
event.cards=player.getCards('h'); event.cards=player.getCards('h');
player.give(event.cards,target,true); target.gain(event.cards,player,'giveAuto').gaintag.add('twrangyi');
target.addTempSkill('twrangyi2');
'step 1' 'step 1'
target.chooseToUse({ target.chooseToUse({
prompt:'请使用得到的一张牌,或者受到来自'+get.translation(player)+'的一点伤害', prompt:'请使用得到的一张牌,或者受到来自'+get.translation(player)+'的一点伤害',
filterCard:function(card,player,event){ filterCard:function(card,player){
if(get.itemtype(card)!='card'||!event.cards.contains(card)) return false; if(get.itemtype(card)!='card'||!card.hasGaintag('twrangyi')) return false;
return lib.filter.filterCard(card,player,event); return lib.filter.filterCard(card,player,event);
}, },
cards:cards, cards:cards,
}); });
'step 2' 'step 2'
if(result.bool){ target.removeSkill('twrangyi');
var hs=target.getCards('h'); if(!result.bool) target.damage('nocard');
for(var i=0;i<cards.length;i++){
if(!hs.contains(cards[i])) cards.splice(i--,1);
}
if(cards.length) target.give(cards,player,true);
}
else target.damage('nocard');
}, },
ai:{ ai:{
order:1, order:1,
@ -83,6 +78,26 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
}, },
}, },
twrangyi2:{
trigger:{player:'useCard'},
forced:true,
popup:false,
filter:function(event,player){
var evt=event.getParent(2);
return evt.name=='twrangyi'&&evt.player.isAlive()&&player.countCards('h',function(card){
return card.hasGaintag('twrangyi');
})>0;
},
content:function(){
var cards=player.getCards('h',function(card){
return card.hasGaintag('twrangyi');
});
trigger.getParent(2).player.gain(cards,player,'giveAuto');
},
onremove:function(player){
player.removeGaintag('twrangyi');
},
},
twbaimei:{ twbaimei:{
audio:2, audio:2,
trigger:{ trigger:{
@ -568,7 +583,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
twliancai:'敛财', twliancai:'敛财',
twliancai_info:'结束阶段,你可以将武将牌翻面,然后获得一名其他角色装备区内的一张牌。当你的武将牌翻面时,你可以将手牌补至与体力值相同。', twliancai_info:'结束阶段,你可以将武将牌翻面,然后获得一名其他角色装备区内的一张牌。当你的武将牌翻面时,你可以将手牌补至与体力值相同。',
twrangyi:'攘夷', twrangyi:'攘夷',
twrangyi_info:'出牌阶段限一次你可以将所有手牌交给一名其他角色然后令其选择一项1.使用其中的一张牌然后将其余的牌交还给你。2.受到来自你的1点伤害。', twrangyi2:'攘夷',
twrangyi_info:'出牌阶段限一次你可以将所有手牌交给一名其他角色然后令其选择一项1.使用其中的一张牌并于此牌被使用时将其余的牌交还给你。2.受到来自你的1点伤害。',
twbaimei:'白眉', twbaimei:'白眉',
twbaimei_info:'锁定技,若你没有手牌,则防止你受到的所有属性伤害和锦囊牌造成的伤害。', twbaimei_info:'锁定技,若你没有手牌,则防止你受到的所有属性伤害和锦囊牌造成的伤害。',
chijie:'持节', chijie:'持节',

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[ window.noname_asset_list=[
'v1.9.108.4.1', 'v1.9.108.4.2',
'audio/background/aozhan_chaoming.mp3', 'audio/background/aozhan_chaoming.mp3',
'audio/background/aozhan_online.mp3', 'audio/background/aozhan_online.mp3',
'audio/background/aozhan_rewrite.mp3', 'audio/background/aozhan_rewrite.mp3',
@ -679,6 +679,7 @@ window.noname_asset_list=[
'audio/die/re_fuhuanghou.mp3', 'audio/die/re_fuhuanghou.mp3',
'audio/die/huaxin.mp3', 'audio/die/huaxin.mp3',
'audio/die/guozhao.mp3', 'audio/die/guozhao.mp3',
'audio/die/wolongfengchu.mp3',
'audio/skill/decadezishou1.mp3', 'audio/skill/decadezishou1.mp3',
'audio/skill/decadezishou2.mp3', 'audio/skill/decadezishou2.mp3',
@ -2975,6 +2976,12 @@ window.noname_asset_list=[
'audio/skill/pianchong2.mp3', 'audio/skill/pianchong2.mp3',
'audio/skill/zunwei1.mp3', 'audio/skill/zunwei1.mp3',
'audio/skill/zunwei2.mp3', 'audio/skill/zunwei2.mp3',
'audio/skill/luanfeng1.mp3',
'audio/skill/luanfeng2.mp3',
'audio/skill/yingyang1.mp3',
'audio/skill/yingyang2.mp3',
'audio/skill/youlong1.mp3',
'audio/skill/youlong2.mp3',
'audio/voice/male/0.mp3', 'audio/voice/male/0.mp3',
'audio/voice/male/1.mp3', 'audio/voice/male/1.mp3',
@ -3732,6 +3739,9 @@ window.noname_asset_list=[
'image/character/re_fuhuanghou.jpg', 'image/character/re_fuhuanghou.jpg',
'image/character/wolongfengchu.jpg', 'image/character/wolongfengchu.jpg',
'image/character/guozhao.jpg', 'image/character/guozhao.jpg',
'image/character/key_chihaya.jpg',
'image/character/key_rumi.jpg',
'image/character/key_youta.jpg',
'image/character/baiwuchang.jpg', 'image/character/baiwuchang.jpg',
'image/character/baosanniang.jpg', 'image/character/baosanniang.jpg',
@ -4653,6 +4663,26 @@ window.noname_asset_list=[
'image/emotion/zhenji_emotion/18.gif', 'image/emotion/zhenji_emotion/18.gif',
'image/emotion/zhenji_emotion/19.gif', 'image/emotion/zhenji_emotion/19.gif',
'image/emotion/zhenji_emotion/20.gif', 'image/emotion/zhenji_emotion/20.gif',
'image/emotion/xiaojiu_emotion/1.gif',
'image/emotion/xiaojiu_emotion/2.gif',
'image/emotion/xiaojiu_emotion/3.gif',
'image/emotion/xiaojiu_emotion/4.gif',
'image/emotion/xiaojiu_emotion/5.gif',
'image/emotion/xiaojiu_emotion/6.gif',
'image/emotion/xiaojiu_emotion/7.gif',
'image/emotion/xiaojiu_emotion/8.gif',
'image/emotion/xiaojiu_emotion/9.gif',
'image/emotion/xiaojiu_emotion/10.gif',
'image/emotion/xiaojiu_emotion/11.gif',
'image/emotion/xiaojiu_emotion/12.gif',
'image/emotion/xiaojiu_emotion/13.gif',
'image/emotion/xiaojiu_emotion/14.gif',
'image/emotion/xiaojiu_emotion/15.gif',
'image/emotion/xiaojiu_emotion/16.gif',
'image/emotion/xiaojiu_emotion/17.gif',
'image/emotion/xiaojiu_emotion/18.gif',
'image/emotion/xiaojiu_emotion/19.gif',
'image/emotion/xiaojiu_emotion/20.gif',
'image/emotion/xiaosha_emotion/1.gif', 'image/emotion/xiaosha_emotion/1.gif',
'image/emotion/xiaosha_emotion/2.gif', 'image/emotion/xiaosha_emotion/2.gif',
'image/emotion/xiaosha_emotion/3.gif', 'image/emotion/xiaosha_emotion/3.gif',

View File

@ -62,6 +62,7 @@
zhenji_emotion:20, zhenji_emotion:20,
xiaosha_emotion:20, xiaosha_emotion:20,
xiaotao_emotion:20, xiaotao_emotion:20,
xiaojiu_emotion:20,
}, },
animate:{ animate:{
skill:{}, skill:{},
@ -5763,7 +5764,20 @@
restart:true, restart:true,
frequent:true, frequent:true,
}, },
update:function(config,map){}, connect_enable_jin:{
name:'启用晋势力武将',
init:false,
restart:true,
frequent:true,
},
update:function(config,map){
if(config.connect_single_mode!='normal'){
map.connect_enable_jin.hide();
}
else{
map.connect_enable_jin.show();
}
},
}, },
config:{ config:{
single_mode:{ single_mode:{
@ -5777,7 +5791,19 @@
restart:true, restart:true,
frequent:true, frequent:true,
}, },
enable_jin:{
name:'启用晋势力武将',
init:false,
restart:true,
frequent:true,
},
update:function(config,map){ update:function(config,map){
if(config.single_mode!='normal'){
map.enable_jin.hide();
}
else{
map.enable_jin.show();
}
}, },
} }
}, },
@ -9897,6 +9923,7 @@
shibing_emotion:'士兵表情', shibing_emotion:'士兵表情',
xiaosha_emotion:'小杀表情', xiaosha_emotion:'小杀表情',
xiaotao_emotion:'小桃表情', xiaotao_emotion:'小桃表情',
xiaojiu_emotion:'小桃表情',
pause:'暂停', pause:'暂停',
config:'选项', config:'选项',
@ -45185,6 +45212,9 @@
list2.remove(); list2.remove();
list3.remove(); list3.remove();
uiintro.add(list1); uiintro.add(list1);
while(list2.childNodes.length){
list2.firstChild.remove();
}
} }
else{ else{
emotionTitle.innerHTML='快捷语音'; emotionTitle.innerHTML='快捷语音';

View File

@ -1,8 +1,10 @@
window.noname_update={ window.noname_update={
version:'1.9.108.4.1', version:'1.9.108.4.2',
update:'1.9.108.4', update:'1.9.108.4.1',
changeLog:[ changeLog:[
'郭照', '成神阳太、凤千早、七濑留美',
'小酒表情包',
'孙笨(国战)语音',
'bug修复', 'bug修复',
], ],
files:[ files:[
@ -30,11 +32,11 @@ window.noname_update={
//'character/old.js', //'character/old.js',
//'character/ow.js', //'character/ow.js',
'character/rank.js', 'character/rank.js',
'character/refresh.js', //'character/refresh.js',
//'character/shenhua.js', //'character/shenhua.js',
//'character/sp.js', 'character/sp.js',
'character/sp2.js', //'character/sp2.js',
//'character/tw.js', 'character/tw.js',
//'character/standard.js', //'character/standard.js',
//'character/swd.js', //'character/swd.js',
//'character/xianjian.js', //'character/xianjian.js',
@ -47,15 +49,15 @@ window.noname_update={
//'layout/nova/layout.css', //'layout/nova/layout.css',
//'mode/identity.js', //'mode/identity.js',
//'mode/doudizhu.js', //'mode/doudizhu.js',
//'mode/guozhan.js', 'mode/guozhan.js',
//'mode/chess.js', //'mode/chess.js',
//'mode/tafang.js', //'mode/tafang.js',
//'mode/single.js', 'mode/single.js',
//'mode/stone.js', //'mode/stone.js',
//'mode/brawl.js', //'mode/brawl.js',
//'mode/versus.js', //'mode/versus.js',
//'mode/boss.js', //'mode/boss.js',
//'game/game.js', 'game/game.js',
//'game/keyWords.js', //'game/keyWords.js',
//'game/NoSleep.js', //'game/NoSleep.js',
//'game/config.js', //'game/config.js',

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 KiB

View File

@ -2863,7 +2863,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
"baka_hunshang":{ "baka_hunshang":{
skillAnimation:true, skillAnimation:true,
animationColor:'wood', animationColor:'wood',
audio:"hunshang", audio:"hunzi",
derivation:["baka_yingzi","baka_yinghun"], derivation:["baka_yingzi","baka_yinghun"],
viceSkill:true, viceSkill:true,
init:function (player){ init:function (player){
@ -2903,9 +2903,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
filter:function (event,player){ filter:function (event,player){
return player.isDamaged(); return player.isDamaged();
}, },
//priority:2, audio:'yinghun_sunce',
audio:"yinghun",
audioname:["sunce"],
trigger:{ trigger:{
player:"phaseZhunbeiBegin", player:"phaseZhunbeiBegin",
}, },
@ -2982,8 +2980,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
return player.maxHp; return player.maxHp;
}, },
}, },
audio:"reyingzi", audio:'reyingzi_sunce',
audioname:["sunce"],
trigger:{ trigger:{
player:"phaseDrawBegin2", player:"phaseDrawBegin2",
}, },
@ -5893,19 +5890,24 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}, },
group:['hunshang_yingzi','hunshang_yinghun'], group:['hunshang_yingzi','hunshang_yinghun'],
}, },
reyingzi_sunce:{audio:2},
yinghun_sunce:{audio:2},
hunshang_yingzi:{ hunshang_yingzi:{
inherit:'yingzi', inherit:'yingzi',
audio:'reyingzi_sunce',
filter:function(event,player){ filter:function(event,player){
return player.hp<=1&&!player.hasSkill('yingzi'); return player.hp<=1&&!player.hasSkill('yingzi');
} }
}, },
hunshang_yinghun:{ hunshang_yinghun:{
inherit:'gzyinghun', inherit:'gzyinghun',
audio:'yinghun_sunce',
filter:function(event,player){ filter:function(event,player){
return player.hp<=1&&player.isDamaged()&&!player.hasSkill('gzyinghun'); return player.hp<=1&&player.isDamaged()&&!player.hasSkill('gzyinghun');
} }
}, },
yingyang:{ yingyang:{
audio:2,
trigger:{player:'compare',target:'compare'}, trigger:{player:'compare',target:'compare'},
filter:function(event){ filter:function(event){
return !event.iwhile; return !event.iwhile;

View File

@ -117,6 +117,15 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
hejin:['male','qun',4,['mouzhu','yanhuo']], hejin:['male','qun',4,['mouzhu','yanhuo']],
hansui:['male','qun',4,['xiaoxi','niluan']], hansui:['male','qun',4,['xiaoxi','niluan']],
niujin:['male','wei',4,['cuorui','liewei']], niujin:['male','wei',4,['cuorui','liewei']],
jin_zhangchunhua:['female','jin',3,['huishi','qingleng']],
jin_simayi:['male','jin',3,['smyyingshi','xiongzhi','quanbian']],
jin_wangyuanji:['female','jin',3,['yanxi']],
jin_simazhao:['male','jin',3,['choufa','zhaoran']],
jin_xiahouhui:['female','jin',3,['jyishi','shiduo']],
jin_simashi:['male','jin','3/4',['yimie','tairan']],
zhanghuyuechen:['male','jin',4,['xijue']],
duyu:['male','jin',4,['sanchen','zhaotao']],
}, },
startBefore:function(){ startBefore:function(){
@ -167,18 +176,19 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(_status.mode=='normal'){ if(_status.mode=='normal'){
lib.card.list=lib.singlePile.slice(0); lib.card.list=lib.singlePile.slice(0);
game.fixedPile=true; game.fixedPile=true;
game.broadcastAll(function(singleTranslate,characterSingle){ game.broadcastAll(function(singleTranslate,characterSingle,jin){
_status.mode='normal'; _status.mode='normal';
for(var j in singleTranslate) lib.translate[j]=singleTranslate[j]; for(var j in singleTranslate) lib.translate[j]=singleTranslate[j];
_status.characterlist=[]; _status.characterlist=[];
for(var i in characterSingle){ for(var i in characterSingle){
if(!jin&&characterSingle[i][1]=='jin') continue;
lib.character[i]=characterSingle[i]; lib.character[i]=characterSingle[i];
if(!lib.character[i][4]){ if(!lib.character[i][4]){
lib.character[i][4]=[]; lib.character[i][4]=[];
} }
_status.characterlist.push(i); _status.characterlist.push(i);
} }
},lib.singleTranslate,lib.characterSingle); },lib.singleTranslate,lib.characterSingle,_status.connectMode?lib.configOL.enable_jin:get.config('enable_jin'));
} }
else if(_status.mode=='changban'){ else if(_status.mode=='changban'){
_status.characterlist=[]; _status.characterlist=[];
@ -286,6 +296,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
getRoomInfo:function(uiintro){ getRoomInfo:function(uiintro){
if(lib.configOL.single_mode=='normal') uiintro.add('<div class="text chat">晋势力武将:'+(lib.configOL.enable_jin?'开启':'关闭'));
if(lib.configOL.bannedcards.length){ if(lib.configOL.bannedcards.length){
uiintro.add('<div class="text chat">禁用卡牌:'+get.translation(lib.configOL.bannedcards)); uiintro.add('<div class="text chat">禁用卡牌:'+get.translation(lib.configOL.bannedcards));
} }