audios for Nakamura Yuri and Tachibana Kanade

This commit is contained in:
Spmario233 2023-08-17 15:34:14 +08:00
parent a3cb02548d
commit 2717a4a398
17 changed files with 31 additions and 6 deletions

BIN
audio/die/key_yuri.mp3 Normal file

Binary file not shown.

BIN
audio/die/sp_key_kanade.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7977,6 +7977,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
kanade_mapo:{
audio:2,
derivation:'mapodoufu',
enable:'chooseToUse',
viewAs:{name:'mapodoufu'},
@ -7999,6 +8000,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
kanade_benzhan:{
audio:3,
trigger:{global:['useCard','respond']},
direct:true,
usable:1,
@ -10927,7 +10929,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
yuri_xingdong:{
audio:2,
audio:3,
group:'yuri_xingdong_gain',
subSkill:{
mark:{
@ -10938,6 +10940,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
gain:{
audio:2,
trigger:{player:'phaseUseBegin'},
forced:true,
content:function(){
@ -11011,6 +11014,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
yuri_wangxi:{
audio:2,
trigger:{global:'dieAfter'},
direct:true,
limited:true,

View File

@ -7450,15 +7450,36 @@
}
});
}
if(!('flat' in Array.prototype)){
Object.defineProperty(Array.prototype, "flat", {
configurable:true,
enumerable:false,
writable:true,
value:function(depth){
if(typeof depth!='number') depth=1;
const arr=[];
for(let i=0;i<this.length;i++){
let obj=this[i];
if(depth>0&&Array.isArray(obj)){
arr=arr.concat(obj.flat(depth-1));
}
else{
arr.push(obj);
}
}
return arr;
}
});
}
if(!Array.from){
Object.defineProperty(Array, "from", {
configurable:true,
enumerable:false,
writable:true,
value:function(args){
var list=[];
const list=[];
if(args&&args.length){
for(var i=0;i<args.length;i++){
for(let i=0;i<args.length;i++){
list.push(args[i]);
}
}
@ -18562,7 +18583,7 @@
return this.hasDisabledSlot(arg)&&!this.hasEnabledSlot(arg);
},
isEmpty:function(num){
return this.countEnabledSlot(num)>this.getEquips(num);
return this.countEnabledSlot(num)>this.getEquips(num).length;
},
//以下函数将被废弃
$disableEquip:function(){},

View File

@ -16050,7 +16050,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
name2=name2.slice(name2.indexOf('_')+1);
}
}
var list=Object.keys(lib.perfectPair).concat(Object.values(lib.perfectPair)).flat(Infinity);
var list=Object.keys(lib.perfectPair).concat(Object.values(lib.perfectPair)).flat();
if(!list.contains(name1)||!list.contains(name2)) return false;
return (lib.perfectPair[name1]&&lib.perfectPair[name1].flat(Infinity).contains(name2))||(lib.perfectPair[name2]&&lib.perfectPair[name2].flat(Infinity).contains(name1));
},