v1.9.90.3

This commit is contained in:
Spmario233 2019-07-25 19:17:52 +08:00 committed by GitHub
parent 951778cd96
commit 470293a002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 91 additions and 159 deletions

View File

@ -279,7 +279,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
}, },
mode:['guozhan'], mode:['guozhan'],
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
return target.identity!='unknown'&&(target.identity!=player.identity||target.identity=='ye'); return target!=player&&target.identity!='unknown'&&(target.identity!=player.identity||target.identity=='ye');
}, },
changeTarget:function(player,targets){ changeTarget:function(player,targets){
var target=targets[0]; var target=targets[0];

View File

@ -1037,6 +1037,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
reguanxing:{ reguanxing:{
audio:'guanxing', audio:'guanxing',
audioname:['jiangwei'],
trigger:{player:['phaseBegin','phaseEnd']}, trigger:{player:['phaseBegin','phaseEnd']},
frequent:true, frequent:true,
filter:function(event,player,name){ filter:function(event,player,name){

View File

@ -501,7 +501,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
}, },
mark:true, mark:true,
intro:{content:'本回合内可以多使用三张【杀】'}, marktext:'决',
intro:{name:'决堰 - 武器',content:'本回合内可以多使用三张【杀】'},
}, },
'drlt_jueyan2':{ 'drlt_jueyan2':{
mod:{ mod:{
@ -510,7 +511,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
}, },
mark:true, mark:true,
intro:{content:'本回合内使用牌没有距离限制'}, marktext:'决',
intro:{name:'决堰 - 坐骑',content:'本回合内使用牌没有距离限制'},
}, },
'drlt_jueyan3':{ 'drlt_jueyan3':{
mod:{ mod:{
@ -519,7 +521,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
}, },
mark:true, mark:true,
intro:{content:'本回合内手牌上限+3'}, marktext:'决',
intro:{name:'决堰 - 防具',content:'本回合内手牌上限+3'},
}, },
"drlt_poshi":{ "drlt_poshi":{
audio:2, audio:2,
@ -687,8 +690,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ai:{ ai:{
order:13, order:13,
result:{ result:{
player:function(player){ target:function(player,target){
if(player.countCards('h',{name:'sha'})>=2&&game.countPlayer(function(current){return get.attitude(player,current)<0})>0) return 1; var hs=player.countCards('h',{name:['sha','juedou']});
var ts=target.hp;
if(hs>=ts&&ts>1) return -1;
return 0;
}, },
}, },
}, },
@ -738,6 +744,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(get.position(card)=='h') return false; if(get.position(card)=='h') return false;
}, },
}, },
ai:{
effect:{
target:function(card,player,target){
if(get.tag(card,'damage')) return [0,-999999];
},
},
},
}, },
@ -3315,6 +3328,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
}, },
huashen:{ huashen:{
audio:'huashen2',
unique:true, unique:true,
forbid:['guozhan'], forbid:['guozhan'],
init:function(player){ init:function(player){
@ -3333,7 +3347,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var skills=lib.character[name][3].slice(0); var skills=lib.character[name][3].slice(0);
for(var i=0;i<skills.length;i++){ for(var i=0;i<skills.length;i++){
var info=lib.skill[skills[i]]; var info=lib.skill[skills[i]];
if(info.unique&&!info.gainable){ if(info.limited||info.juexingji||info.charlotte||info.zhuSkill){
skills.splice(i--,1); skills.splice(i--,1);
} }
} }
@ -3418,7 +3432,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(!info){ if(!info){
continue; continue;
} }
if(info.gainable||!info.unique){ if(!info.limited&&!info.juexingji&&!info.charlotte&&!info.zhuSkill){
add=true;break; add=true;break;
} }
} }

View File

@ -2822,10 +2822,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
zishu:{ zishu:{
audio:2, audio:2,
locked:true,
subSkill:{ subSkill:{
discard:{ discard:{
trigger:{player:'gainAfter'}, trigger:{player:'gainAfter'},
audio:"zishu", audio:"zishu",
forced:true,
filter:function(event,player){ filter:function(event,player){
return _status.currentPhase!=player; return _status.currentPhase!=player;
}, },
@ -5226,15 +5228,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
xiehui:{ xiehui:{
mod:{ mod:{
maxHandcard:function(player,num){ ignoredHandcard:function(card,player){
var hs=player.getCards('h'); if(get.color(card)=='black'){
for(var i=0;i<hs.length;i++){ return true;
if(get.color(hs[i])=='black'){
num++;
}
} }
return num;
}, },
cardDiscardable:function(card,player,name){
if(name=='phaseDiscard'&&get.color(card)=='black') return false;
}
}, },
trigger:{global:'gainBegin'}, trigger:{global:'gainBegin'},
forced:true, forced:true,
@ -8999,8 +9000,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw(nd); player.draw(nd);
} }
else{ else{
player.addTempSkill('fengpo2','useCardToAfter'); if(typeof trigger.extraDamage!='number'){
player.storage.fengpo=nd; trigger.extraDamage=0;
}
trigger.extraDamage+=nd;
} }
} }
} }

View File

@ -3364,6 +3364,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
count:{ count:{
trigger:{player:'gainEnd'}, trigger:{player:'gainEnd'},
audio:'fulin', audio:'fulin',
forced:true,
filter:function(event,player){ filter:function(event,player){
return _status.currentPhase==player; return _status.currentPhase==player;
}, },

View File

@ -16,7 +16,7 @@ game.import('play',function(lib,game,ui,get,ai,_status){
for(var i in lib.characterPack.mode_extension_boss){ for(var i in lib.characterPack.mode_extension_boss){
lib.characterPack.mode_extension_boss[i][4].push('mode:boss'); lib.characterPack.mode_extension_boss[i][4].push('mode:boss');
lib.character[i]=lib.characterPack.mode_extension_boss[i]; lib.character[i]=lib.characterPack.mode_extension_boss[i];
if(typeof lib.character[i][2]!='number'){ if(typeof lib.character[i][2]!='number'&&(typeof lib.character[i][2]!='string'||lib.character[i][2].indexOf('/')==-1)){
lib.character[i][2]=Infinity; lib.character[i][2]=Infinity;
} }
if(!lib.config.boss_enableai_playpackconfig){ if(!lib.config.boss_enableai_playpackconfig){

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[ window.noname_asset_list=[
'1.9.90.2', '1.9.90.3',
'audio/background/aozhan_chaoming.mp3', 'audio/background/aozhan_chaoming.mp3',
'audio/background/aozhan_online.mp3', 'audio/background/aozhan_online.mp3',
'audio/background/music_danji.mp3', 'audio/background/music_danji.mp3',
@ -1788,6 +1788,7 @@ window.noname_asset_list=[
'font/yuanli.ttf', 'font/yuanli.ttf',
'font/shousha.ttf', 'font/shousha.ttf',
'image/background/huangtian_bg.jpg', 'image/background/huangtian_bg.jpg',
'image/background/kyoani_bg.jpg',
'image/background/ol_bg.jpg', 'image/background/ol_bg.jpg',
'image/background/september_bg.jpg', 'image/background/september_bg.jpg',
'image/background/shengshi_bg.jpg', 'image/background/shengshi_bg.jpg',

View File

@ -1,5 +1,5 @@
window.config={ window.config={
forbidai:['miheng','ns_liuzhang'], forbidai:['ns_liuzhang'],
forbidai_user:[], forbidai_user:[],
forbidall:[], forbidall:[],
forbidstone:['zhugedan','pal_xuanxiao','hs_malfurion','lusu','chenlin','hs_siwangzhiyi', forbidstone:['zhugedan','pal_xuanxiao','hs_malfurion','lusu','chenlin','hs_siwangzhiyi',

View File

@ -6051,6 +6051,7 @@
if(type){ if(type){
var dbimage=null,extimage=null,modeimage=null; var dbimage=null,extimage=null,modeimage=null;
var nameinfo; var nameinfo;
var gzbool=false;
var mode=get.mode(); var mode=get.mode();
if(type=='character'){ if(type=='character'){
if(lib.characterPack['mode_'+mode]&&lib.characterPack['mode_'+mode][name]){ if(lib.characterPack['mode_'+mode]&&lib.characterPack['mode_'+mode][name]){
@ -6058,7 +6059,8 @@
if(name.indexOf('gz_shibing')==0){ if(name.indexOf('gz_shibing')==0){
name=name.slice(3,11); name=name.slice(3,11);
} }
else if(!lib.config.mode_config.guozhan.guozhanSkin||!lib.character[name]||!lib.character[name][4].contains('gzskin')){ else{
if(lib.config.mode_config.guozhan.guozhanSkin&&lib.character[name]&&lib.character[name][4].contains('gzskin')) gzbool=true;
name=name.slice(3); name=name.slice(3);
} }
} }
@ -6106,7 +6108,7 @@
} }
else{ else{
if(type=='character'){ if(type=='character'){
src='image/character/'+name+ext; src='image/character/'+(gzbool?'gz_':'')+name+ext;
} }
else{ else{
src='image/'+type+'/'+subfolder+'/'+name+ext; src='image/'+type+'/'+subfolder+'/'+name+ext;

View File

@ -81,6 +81,7 @@ window.noname_package={
huangtian_bg:'黄天', huangtian_bg:'黄天',
september_bg:'九月', september_bg:'九月',
yinxiang_bg:'印象', yinxiang_bg:'印象',
kyoani_bg:'京都',
}, },
music:{ music:{
music_diaochan:'貂蝉', music_diaochan:'貂蝉',

View File

@ -1,22 +1,20 @@
window.noname_update={ window.noname_update={
version:'1.9.90.2', version:'1.9.90.3',
update:'1.9.90.1', update:'1.9.90.2',
changeLog:[ changeLog:[
'神武将选择势力设为可选选项', '解除祢衡的AI禁选限制',
'大量配音问题修复', 'BUG修复',
], ],
files:[ files:[
'card/guozhan.js', 'card/guozhan.js',
'character/extra.js',
'character/old.js',
'character/refresh.js', 'character/refresh.js',
'character/shenhua.js', 'character/shenhua.js',
'character/sp.js', 'character/sp.js',
'character/standard.js',
'character/xinghuoliaoyuan.js',
'character/yijiang.js', 'character/yijiang.js',
'extension/boss/extension.js',
'mode/guozhan.js', 'mode/guozhan.js',
'mode/identity.js',
'game/game.js', 'game/game.js',
'game/config.js',
'game/package.js',
] ]
}; };

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

View File

@ -6517,149 +6517,60 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
_zhenfazhaohuan:{ _zhenfazhaohuan:{
enable:'phaseUse', enable:'phaseUse',
usable:1, usable:1,
getConfig:function(player){ getConfig:function(player,target){
var n1,n2,p1,p2; var config={};
var config={ var skills=player.getSkills();
inline:false, for(var i=0;i<skills.length;i++){
siege:false var info=get.info(skills[i]).zhenfa;
}; if(info){
var config2={}; config[info]=true;
n1=player.getNext();
p1=player.getPrevious();
if(n1){
if(n1.isUnseen()){
config.inline=true;
}
else if(n1.identity!=player.identity){
n2=n1.getNext();
if(n2&&n2.isUnseen()){
config.siege=true;
}
} }
} }
if(p1){ if(config.inline){
if(p1.isUnseen()){ var next=target.getNext();
config.inline=true; var previous=target.getPrevious();
} return (next==player||previous==player||next.inline(player)||previous.inline(player))
else if(p1.identity!=player.identity){
p2=p1.getPrevious();
if(p2&&p2.isUnseen()){
config.siege=true;
}
}
} }
if(config.inline||config.siege){ else if(config.siege){
var skills=player.getSkills(); return (target==player.getNext().getNext()||target==player.getPrevious().getPrevious());
for(var i=0;i<skills.length;i++){
var info=get.info(skills[i]).zhenfa;
if(info&&config[info]){
config2[info]=true;
}
}
} }
return config2; return false;
}, },
filter:function(event,player){ filter:function(event,player){
if(game.countPlayer()<4) return false; if(player.identity=='ye') return false;
if(player.hasSkill('undist')) return false; if(player.hasSkill('undist')) return false;
var config=lib.skill._zhenfazhaohuan.getConfig(player); if(game.countPlayer(function(current){
return config.inline||config.siege; return !current.hasSkill('undist');
})<4) return false;
return game.hasPlayer(function(current){
return current!=player&&current.isUnseen()&&lib.skill._zhenfazhaohuan.getConfig(player,current);
});
}, },
content:function(){ content:function(){
'step 0' 'step 0'
var config=lib.skill._zhenfazhaohuan.getConfig(player); event.list=game.filterPlayer(function(current){
if(config.siege){ return current!=player&&current.isUnseen();
event.siege=true; });
}
if(!config.inline){
event.goto(3);
}
event.asked=[];
event.current=player;
event.dir=true;
event.askPlayer=function(){
event.directfalse=false;
if(event.current&&event.current.isUnseen()&&!event.asked.contains(event.current)){
player.line(event.current,'green');
event.asked.push(event.current);
if(lib.character[event.current.name1][1]==player.identity){
event.current.chooseControl([
'明置'+get.translation(event.current.name1),
'明置'+get.translation(event.current.name2),
'不明置'
],function(){
return Math.floor(Math.random()*3);
}).set('prompt',get.translation(player)+'发了阵法召唤,你可以明置一个武将');
}
else{
event.directfalse=true;
if(_status.connectMode){
event.current.chooseControl(
'不明置'
).set('prompt',get.translation(player)+'发了阵法召唤(你与其势力不同,无法明置武将)');
}
}
}
else{
event.directfalse=true;
}
};
event.checkResult=function(result,num){
if(!event.directfalse&&result.control!='不明置'){
if(result.index==0){
event.current.showCharacter(0);
}
else{
event.current.showCharacter(1);
}
if(event.current.identity=='ye'||num!=1){
if(event.dir){
event.dir=false;
event.current=player;
event.goto(num);
}
}
else{
event.goto(num);
}
}
else if(event.dir){
event.dir=false;
event.current=player;
event.goto(num);
}
}
'step 1' 'step 1'
if(event.dir){ event.current=event.list.shift();
event.current=event.current.getNext(); if(lib.skill._zhenfazhaohuan.getConfig(player,event.current)){
player.line(event.current,'green');
if(event.current._group==player.group&&event.current.wontYe()){
event.current.chooseControl('明置主将','明置副将','取消').set('prompt','是否响应'+get.translation(player)+'的阵法召唤?').ai=function(){return Math.floor(Math.random()*3)};
}
} }
else{ else event.goto(3);
event.current=event.current.getPrevious();
}
event.askPlayer();
'step 2' 'step 2'
event.checkResult(result,1); if(result.control=='明置主将'){
event.current.showCharacter(0);
}
else if(result.control=='明置副将'){
event.current.showCharacter(1);
}
'step 3' 'step 3'
if(!event.siege){ if(event.list.length) event.goto(1);
event.finish();
return;
}
event.dir=true;
'step 4' 'step 4'
var str; game.delay();
if(event.dir){
str='getNext';
}
else{
str='getPrevious';
}
event.current=player[str]();
if(event.current&&!event.current.isUnseen()&&event.current.identity!=player.identity){
event.current=event.current[str]();
}
event.askPlayer();
'step 5'
event.checkResult(result,4);
}, },
ai:{ ai:{
order:5, order:5,