This commit is contained in:
libccy 2016-08-12 20:54:55 +08:00
parent 293979e5ad
commit 14f0d75b6c
4 changed files with 83 additions and 39 deletions

View File

@ -685,6 +685,7 @@ character.shenhua={
player.loseMaxHp();
if(player.hp>player.maxHp) player.loseHp();
player.addSkill('reyingzi');
player.addSkill('yinghun');
delete player.tempSkills.yinghun;
player.removeSkill('hunzi');
player.storage.hunzi=true;

View File

@ -4085,9 +4085,7 @@ character.sp={
filter:function(event,player){
return event.player!=player&&!player.storage.wangzun;
},
prompt:function(event,player){
return '是否对'+get.translation(event.player)+'发动【妄尊】?';
},
logTarget:'player',
content:function(){
player.draw();
player.markSkill('wangzun');

View File

@ -12073,38 +12073,83 @@
notLink:function(){
return this.getParent().name!='_lianhuan'&&this.getParent().name!='_lianhuan2';
},
// triggerx:function(name){
// if(_status.video) return;
// if(name=='gameStart'){
// _status.gameStarted=true;
// }
// for(i=0;i<game.players.length;i++){
// for(j in game.players[i].tempSkills){
// var expire=game.players[i].tempSkills[j];
// if(expire==name||
// (get.objtype(expire)=='array'&&expire.contains(name))||
// (typeof expire=='function'&&expire(event,game.players[i],name))){
// delete game.players[i].tempSkills[j];
// game.players[i].removeSkill(j);
// }
// else if(typeof expire=='object'){
// if(expire.player==name&&event.player==game.players[i]||
// expire.target==name&&event.target==game.players[i]||
// expire.source==name&&event.source==game.players[i]){
// delete game.players[i].tempSkills[j];
// game.players[i].removeSkill(j);
// }
// }
// }
// }
// var event=this;
// var start=event.player||game.me||game.players[0];
// if(!game.players.contains(start)){
// start=game.findNext(start);
// }
// var list=[];
//
// },
triggerx:function(name){
if(_status.video) return;
if(name=='gameStart'){
_status.gameStarted=true;
}
for(var i=0;i<game.players.length;i++){
for(var j in game.players[i].tempSkills){
var expire=game.players[i].tempSkills[j];
if(expire==name||
(get.objtype(expire)=='array'&&expire.contains(name))||
(typeof expire=='function'&&expire(event,game.players[i],name))){
delete game.players[i].tempSkills[j];
game.players[i].removeSkill(j);
}
else if(typeof expire=='object'){
if(expire.player==name&&event.player==game.players[i]||
expire.target==name&&event.target==game.players[i]||
expire.source==name&&event.source==game.players[i]){
delete game.players[i].tempSkills[j];
game.players[i].removeSkill(j);
}
}
}
}
var event=this;
var start=event.player||game.me||game.players[0];
if(!game.players.contains(start)){
start=game.findNext(start);
}
var list=[];
var roles=['player','source','target'];
for(var i=0;i<roles.length;i++){
if(event[roles[i]]){
var triggername=event[roles[i]].playerid+'_'+roles[i]+'_'+name;
if(lib.hook[triggername]){
for(var j=0;j<lib.hook[triggername].length;j++){
list.push([lib.hook[triggername][j],event[roles[i]]]);
}
}
triggername=roles[i]+'_'+name;
if(lib.hook.globalskill[triggername]){
for(var j=0;j<lib.hook.globalskill[triggername].length;j++){
list.push([lib.hook.globalskill[triggername][j],event[roles[i]]]);
}
}
}
}
var triggername='global_'+name;
if(lib.hook.globalskill[triggername]){
for(var i=0;i<game.players.length;i++){
for(var j=0;j<lib.hook.globalskill[triggername].length;j++){
list.push([lib.hook.globalskill[triggername][j],game.players[i]]);
}
}
}
var map=_status.connectMode?lib.playerOL:game.playerMap;
for(var i in lib.hook.globaltrigger[name]){
if(map[i]&&map[i].isAlive()){
for(var j=0;j<lib.hook.globaltrigger[name][i].length;j++){
list.push([lib.hook.globaltrigger[name][i][j],map[i]]);
}
}
}
list.sort(function(a,b){
var priority=lib.sort.priority(a,b);
if(priority) return priority;
if(start){
return get.distance(start,a[1],'absolute')-get.distance(start,b[1],'absolute');
}
return 0;
});
if(list.length){
for(i=0;i<list.length;i++){
game.createTrigger(name,list[i][0],list[i][1],event);
}
}
},
trigger:function(name){
if(_status.video) return;
if(name=='gameStart'){
@ -28605,15 +28650,16 @@
if(this.classList.contains('selectable')==false) return;
if(this.classList.contains('selected')){
ui.selected.buttons.remove(this);
this.classList.remove('selected');
if(_status.multitarget||_status.event.complexSelect){
game.uncheck();
game.check();
}
}
else{
this.classList.add('selected');
ui.selected.buttons.add(this);
}
this.classList.toggle('selected');
if(custom.add.button){
custom.add.button();
}

View File

@ -1,12 +1,11 @@
window.noname_update={
version:'1.8.20.3',
version:'1.8.20.4',
changeLog:[
'修bug'
''
],
files:{
global:[
// 'game/game.js',
'character/standard.js',
],
}
}