Brave Song

This commit is contained in:
Spmario233 2020-06-21 13:28:27 +08:00 committed by GitHub
parent 17a4cbad59
commit 4fb072d845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 265 additions and 23 deletions

BIN
audio/skill/zhengjing1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/zhengjing2.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -554,7 +554,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
complexSelect:true,
check:function(card){
if(!player._yuzuru_sss&&get.color(card)=='black') return -1;
if(!_status.event.player._yuzuru_sss&&get.color(card)=='black') return -1;
return 9-get.value(card);
},
line:{color:[194,117,92]},

View File

@ -12,6 +12,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
character:{
zhengxuan:['male','qun',3,['zhengjing']],
dengzhi:['male','shu',3,['jimeng','shuaiyan']],
xin_chengpu:['male','wu',4,['relihuo','chunlao']],
yangyi:['male','shu',3,['duoduan','gongsun']],
@ -57,6 +58,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
re_sunben:['male','wu',4,['jiang','rehunzi','zhiba'],['zhu']],
},
characterIntro:{
zhengxuan:'郑玄127年200年字康成。北海郡高密县今山东省高密市人。东汉末年儒家学者、经学大师。郑玄曾入太学攻《京氏易》、《公羊春秋》及《三统历》、《九章算术》又从张恭祖学《古文尚书》、《周礼》和《左传》等最后从马融学古文经。游学归里之后复客耕东莱聚徒授课弟子达数千人家贫好学终为大儒。党锢之祸起遭禁锢杜门注疏潜心著述。晚年守节不仕却遭逼迫从军最终病逝于元城年七十四。郑玄治学以古文经学为主兼采今文经学。他遍注儒家经典以毕生精力整理古代文化遗产使经学进入了一个“小统一时代”。著有《天文七政论》、《中侯》等书共百万余言世称“郑学”为汉代经学的集大成者。唐贞观年间列郑玄于二十二“先师”之列配享孔庙。宋代时被追封为高密伯。后人建有郑公祠以纪念。',
dengzhi:'邓芝178年251年字伯苗。义阳郡新野县今河南新野人。东汉名将邓禹之后三国时期蜀汉重臣。邓芝早年曾被预言能位至大将后被刘备任为郫令升迁为广汉太守。因任官公廉且有治绩被征入朝为尚书。刘备逝世后奉命出使吴国成功修复两国关系并深为吴大帝孙权所赏识。建兴六年228年丞相诸葛亮策划北伐命邓芝与大将赵云佯攻郿城以吸引魏国曹真军主力。建兴十二年234年迁前军师、前将军领兖州刺史封阳武亭侯不久督领江州。延熙六年243年迁车骑将军后授假节。又率军平定涪陵叛乱。延熙十四年251年邓芝病逝。邓芝性格正直、简单不刻意修饰情绪。他为将二十多年赏罚明断体恤士卒。身上的衣食取自官府从未经营过私产妻儿甚至还有忍饥挨饿之时死时家中也没有多余财物。',
yangyi:'杨仪235年字威公襄阳今湖北襄阳三国时期蜀汉官员。最初为荆州刺史傅群的主簿后投奔关羽任为功曹。关羽遣其至成都大受刘备赞赏擢为尚书。因与尚书令刘巴不和调为弘农太守。建兴三年225年任丞相参军此后一直跟随诸葛亮战斗。亮卒他部署安全退军。诸葛亮在生前定蒋琬继己任杨仪仅拜中军师。建兴十三年235年因多出怨言被削职流放至汉嘉郡。但杨仪仍不自省又上书诽谤言辞激烈最后下狱自杀身亡。',
dongcheng:'董承(?~200年字号不详冀州河间人今河北献县人。东汉末年外戚大臣汉灵帝母亲董太后侄子汉献帝嫔妃董贵人之父。初从西凉军为董卓女婿牛辅部曲。护卫汉献帝刘协从长安东归洛阳拜为卫将军受封列侯。建安四年199年拜车骑将军。自称领受汉献帝衣带诏联合刘备、种辑、吴子兰、王子服、吴硕等人密谋诛杀曹操。五年正月图谋泄露董承诸人及董贵人全部遇害。',
@ -275,6 +277,231 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
characterFilter:{},
skill:{
//水 果 忍 者
zhengjing_guanju:{audio:true},
zhengjing:{
audio:2,
enable:'phaseUse',
usable:1,
filter:function(event,player){
return !player.hasSkill('zhengjing3');
},
content:function(){
"step 0"
//game.trySkillAudio('zhengjing_guanju',player);
if(_status.connectMode) event.time=lib.configOL.choose_timeout;
var cards=[];
var names=[];
while(true){
var card=get.cardPile(function(carde){
return carde.name!='du'&&!names.contains(carde.name);
});
if(card){
cards.push(card);
names.push(card.name);
if(cards.length==3&&Math.random()<0.25) break;
if(cards.length==4&&Math.random()<0.33) break;
if(cards.length==5&&Math.random()<0.5) break;
if(cards.length>=6) break;
}
else break;
};
event.cards=cards;
if(!cards.length){event.finish();return;};
names.push('du');
var names2=names.slice(0);
for(var i=0;i<4;i++){
names=names.concat(names2);
}
names.randomSort();
event.videoId=lib.status.videoId++;
if(player.isUnderControl()){
game.modeSwapPlayer(player);
}
var switchToAuto=function(){
names.remove('du');
game.pause();
game.countChoose();
setTimeout(function(){
_status.imchoosing=false;
event._result={
bool:true,
links:names.slice(0),
};
if(event.dialog) event.dialog.close();
if(event.control) event.control.close();
game.resume();
},5000);
};
var createDialog=function(player,id){
if(_status.connectMode) lib.configOL.choose_timeout='30';
if(player==game.me) return;
var str=get.translation(player)+'正在整理经书...<br>';
ui.create.dialog(str).videoId=id;
};
var chooseButton=function(list){
var event=_status.event;
event.settleed=false;
event.finishedx=[];
event.map={};
event.zhengjing=list;
event.zhengjing_nodes=[];
event.map=[];
event.dialog=ui.create.dialog('forcebutton','hidden');
event.dialog.textPrompt=event.dialog.addText('及时点击卡牌,但不要点到毒了!');
event.switchToAuto=function(){
event._result={
bool:true,
links:event.finishedx.slice(0),
};
event.dialog.close();
game.resume();
_status.imchoosing=false;
};
event.dialog.classList.add('fixed');
event.dialog.classList.add('scroll1');
event.dialog.classList.add('scroll2');
event.dialog.classList.add('fullwidth');
event.dialog.classList.add('fullheight');
event.dialog.classList.add('noupdate');
event.dialog.open();
event.settle=function(du){
if(event.settleed) return;
event.settleed=true;
if(du){
if(lib.config.background_speak) game.playAudio('skill','zhengjing_boom');
event.dialog.textPrompt.innerHTML=' <br>叫你别点毒你非得点 这下翻车了吧';
}
else {
if(lib.config.background_speak) game.playAudio('skill','zhengjing_finish');
event.dialog.textPrompt.innerHTML=' <br>整理经典结束!';
}
while(event.zhengjing_nodes.length){
event.zhengjing_nodes.shift().delete();
}
setTimeout(function(){
event.switchToAuto();
},1000);
};
var click=function(){
var name=this.name;
if(name=='du'){
event.zhengjing.length=0;
event.settle(true);
}
else{
if(lib.config.background_speak) game.playAudio('skill','zhengjing_click');
if(!event.map[name]) event.map[name]=0;
event.map[name]++;
if(event.map[name]>1) event.finishedx.add(name);
}
event.zhengjing_nodes.remove(this);
this.style.transition='all 0.5s';
this.style.transform='scale(1.2)';
this.delete();
};
var addNode=function(){
if(event.zhengjing.length){
var card=ui.create.card(ui.special,'noclick',true);
card.init(['','',event.zhengjing.shift()]);
card.addEventListener(lib.config.touchscreen?'touchend':'click',click);
event.zhengjing_nodes.push(card);
card.style.position='absolute';
var rand1=Math.round(Math.random()*100);
var rand2=Math.round(Math.random()*100);
var rand3=Math.round(Math.random()*40)-20;
card.style.left='calc('+rand1+'% - '+rand1+'px)';
card.style.top='calc('+rand2+'% - '+rand2+'px)';
card.style.transform='scale(0.8) rotate('+rand3+'deg)';
card.style.opacity=0;
event.dialog.appendChild(card);
ui.refresh(card);
card.style.opacity=1;
card.style.transform='scale(1) rotate('+rand3+'deg)';
}
if(event.zhengjing_nodes.length>(event.zhengjing.length>0?2:0)) event.zhengjing_nodes.shift().delete();
if(event.zhengjing.length||event.zhengjing_nodes.length) setTimeout(function(){
addNode();
},800);
else event.settle();
};
game.pause();
game.countChoose();
addNode();
};
//event.switchToAuto=switchToAuto;
game.broadcastAll(createDialog,player,event.videoId);
if(event.isMine()){
chooseButton(names);
}
else if(event.isOnline()){
event.player.send(chooseButton,names);
event.player.wait();
game.pause();
}
else{
switchToAuto();
}
"step 1"
game.broadcastAll(function(id,time){
if(_status.connectMode) lib.configOL.choose_timeout=time;
var dialog=get.idDialog(id);
if(dialog){
dialog.close();
}
},event.videoId,event.time);
var result=event.result||result;
for(var i=0;i<cards.length;i++){
if(cards.length==1) break;
if(!result.links.contains(cards[i].name)) cards.splice(i--,1);
}
player.showCards(cards,get.translation(player)+'整理出了以下经典');
"step 2"
player.chooseTarget(true,'将整理出的经典置于一名角色的武将牌上').set('ai',function(target){
if(target.hasSkill('xinfu_pdgyingshi')) return 0;
var player=_status.event.player;
var cards=_status.event.getParent().cards;
var att=get.attitude(player,target);
if(cards.length==1) return -att;
if(player==target) att/=2;
if(target.hasSkill('pingkou')) att*=1.4;
att*=(1+target.countCards('j')/2);
return att;
});
"step 3"
if(result.bool){
var target=result.targets[0];
player.line(target,'thunder');
target.addSkill('zhengjing2');
target.markAuto('zhengjing2',cards);
game.cardsGotoSpecial(cards);
game.log(player,'将',cards,'置于了',target,'的武将牌上');
}
},
ai:{
order:10,
result:{player:1},
threaten:3.2,
}
},
//恁就是仲村由理?
zhengjing2:{
trigger:{player:'phaseZhunbeiBegin'},
forced:true,
intro:{content:'cards'},
content:function(){
player.gain(player.storage.zhengjing2,'gain2','log','fromStorage');
delete player.storage.zhengjing2;
player.removeSkill('zhengjing2');
player.addTempSkill('zhengjing3');
player.skip('phaseJudge');
player.skip('phaseDraw');
},
},
zhengjing3:{},
//邓芝
jimeng:{
audio:2,
trigger:{player:'phaseUseBegin'},
@ -4354,6 +4581,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
jimeng_info:'出牌阶段开始时你可以获得一名其他角色的一张牌然后交给该角色X张牌X为你当前体力值。',
shuaiyan:'率言',
shuaiyan_info:'弃牌阶段开始时若你的手牌数大于1则你可以展示所有手牌然后你令一名其他角色交给你一张牌。',
zhengxuan:'郑玄',
zhengjing:'整经',
zhengjing_info:'出牌阶段,你可以整理卡牌。然后,你将整理出的卡牌置于一名角色的武将牌上。该角色的准备阶段获得这些牌,跳过此回合的判定和摸牌阶段且本回合内不能发动【整经】。',
zhengjing2:'整经',
}
};
});

View File

@ -11743,7 +11743,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
recanshi:{
audio:2,
audio:'canshi',
trigger:{player:'phaseDrawBegin2'},
check:function(event,player){
if(player.skipList.contains('phaseUse')||!player.countCards('h',function(card){
@ -11793,7 +11793,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
rechouhai:{
audio:2,
audio:'chouhai',
trigger:{player:'damageBegin3'},
forced:true,
check:function(){

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[
'v1.9.100.1',
'v1.9.100.1.1',
'audio/background/aozhan_chaoming.mp3',
'audio/background/aozhan_online.mp3',
'audio/background/aozhan_rewrite.mp3',
@ -2429,7 +2429,8 @@ window.noname_asset_list=[
'audio/skill/zhaohan1.mp3',
'audio/skill/zhaohan2.mp3',
'audio/skill/zhouxuan1.mp3',
'audio/skill/zhouxuan2.mp3', 'audio/skill/bazhen_ol_pangtong1.mp3',
'audio/skill/zhouxuan2.mp3',
'audio/skill/bazhen_ol_pangtong1.mp3',
'audio/skill/bazhen_ol_pangtong2.mp3',
'audio/skill/olniepan1.mp3',
'audio/skill/olniepan2.mp3',
@ -2443,7 +2444,8 @@ window.noname_asset_list=[
'audio/skill/tsumugi_mugyu4.mp3',
'audio/skill/tsumugi_mugyu5.mp3',
'audio/skill/xinlianhuan_ol_pangtong1.mp3',
'audio/skill/xinlianhuan_ol_pangtong2.mp3','audio/skill/beizhan1.mp3',
'audio/skill/xinlianhuan_ol_pangtong2.mp3',
'audio/skill/beizhan1.mp3',
'audio/skill/beizhan2.mp3',
'audio/skill/fenglve1.mp3',
'audio/skill/fenglve2.mp3',
@ -2454,7 +2456,8 @@ window.noname_asset_list=[
'audio/skill/xiying1.mp3',
'audio/skill/xiying2.mp3',
'audio/skill/yuanlve1.mp3',
'audio/skill/yuanlve2.mp3','audio/skill/chengzhang1.mp3',
'audio/skill/yuanlve2.mp3',
'audio/skill/chengzhang1.mp3',
'audio/skill/chengzhang2.mp3',
'audio/skill/rejiushi1.mp3',
'audio/skill/rejiushi2.mp3',
@ -2493,7 +2496,8 @@ window.noname_asset_list=[
'audio/skill/tianxing1.mp3',
'audio/skill/tianxing2.mp3',
'audio/skill/xuanfeng_re_lingtong1.mp3',
'audio/skill/xuanfeng_re_lingtong2.mp3','audio/skill/kuanggu_ol_weiyan1.mp3',
'audio/skill/xuanfeng_re_lingtong2.mp3',
'audio/skill/kuanggu_ol_weiyan1.mp3',
'audio/skill/kuanggu_ol_weiyan2.mp3',
'audio/skill/reqimou1.mp3',
'audio/skill/reqimou2.mp3',
@ -2515,6 +2519,12 @@ window.noname_asset_list=[
'audio/skill/shuaiyan2.mp3',
'audio/skill/zili_re_zhonghui1.mp3',
'audio/skill/zili_re_zhonghui2.mp3',
'audio/skill/zhengjing_boom.mp3',
'audio/skill/zhengjing_click.mp3',
'audio/skill/zhengjing_finish.mp3',
'audio/skill/zhengjing_guanju.mp3',
'audio/skill/zhengjing1.mp3',
'audio/skill/zhengjing2.mp3',
'font/huangcao.ttf',
'font/shousha.ttf',
@ -3077,6 +3087,8 @@ window.noname_asset_list=[
'image/character/re_zhonghui.jpg',
'image/character/xin_chengpu.jpg',
'image/character/key_midori.jpg',
'image/character/dengzhi.jpg',
'image/character/zhengxuan.jpg',
'image/character/baiwuchang.jpg',
'image/character/baosanniang.jpg',

View File

@ -1,26 +1,25 @@
window.noname_update={
version:'1.9.100.1',
update:'1.9.100',
version:'1.9.100.1.1',
update:'1.9.100.1',
changeLog:[
'界钟会,界韩当,界程普,邓芝',
'新潘璋马忠,简雍,赵襄,孙皓',
'郑玄',
'bug修复',
],
files:[
'card/extra.js',
//'card/extra.js',
//'card/huanlekapai.js',
//'card/sp.js',
'card/standard.js',
//'card/standard.js',
//'card/swd.js',
//'card/mtg.js',
//'card/gujian.js',
'card/guozhan.js',
//'card/guozhan.js',
//'card/gwent.js',
//'card/yunchou.js',
//'card/zhenfa.js',
//'card/zhulu.js',
'character/diy.js',
'character/extra.js',
//'character/extra.js',
//'character/hearth.js',
//'character/gujian.js',
//'character/gwent.js',
@ -28,15 +27,15 @@ window.noname_update={
'character/mobile.js',
//'character/mtg.js',
//'character/old.js',
'character/refresh.js',
'character/shenhua.js',
//'character/refresh.js',
//'character/shenhua.js',
'character/sp.js',
//'character/tw.js',
//'character/standard.js',
//'character/swd.js',
//'character/xianjian.js',
//'character/xinghuoliaoyuan.js',
'character/yijiang.js',
//'character/yijiang.js',
//'character/yxs.js',
//'extension/boss/extension.js',
//'layout/default/layout.css',
@ -46,12 +45,12 @@ window.noname_update={
//'mode/guozhan.js',
//'mode/chess.js',
//'mode/tafang.js',
'mode/single.js',
//'mode/single.js',
//'mode/stone.js',
'mode/brawl.js',
'mode/versus.js',
//'mode/brawl.js',
//'mode/versus.js',
//'mode/boss.js',
'game/game.js',
//'game/game.js',
//'game/NoSleep.js',
//'game/config.js',
//'game/package.js',

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB