删除袁术【伪帝】的zhuSkill存储,调整SP贾诩【拥嫡】在任意模式都能给予主公技

This commit is contained in:
mengxinzxz 2023-09-08 18:00:27 +08:00 committed by GitHub
parent c06c28a7d5
commit 49152cd09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 40 deletions

View File

@ -15237,15 +15237,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}).set('choiceList',['获得技能〖妄尊〗',str]).set('choice',choice); }).set('choiceList',['获得技能〖妄尊〗',str]).set('choice',choice);
'step 2' 'step 2'
if(result.control=='选项一'){ if(result.control=='选项一'){
player.addSkill('rewangzun'); player.addSkillLog('rewangzun');
player.popup('rewangzun');
} }
else{ else{
player.draw(2); player.draw(2);
if(event.list){ if(event.list){
player.addSkill(event.list); for(var i of event.list) player.addSkillLog(event.list);
player.popup(event.list[0]);
player.storage.zhuSkill_yjixi=event.list;
game.broadcastAll(function(list){ game.broadcastAll(function(list){
game.expandSkills(list); game.expandSkills(list);
for(var i of list){ for(var i of list){
@ -15884,7 +15881,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
} }
player.addAdditionalSkill('weidi',list); player.addAdditionalSkill('weidi',list);
player.storage.zhuSkill_weidi=list;
game.broadcastAll(function(list){ game.broadcastAll(function(list){
game.expandSkills(list); game.expandSkills(list);
for(var i of list){ for(var i of list){
@ -15990,16 +15986,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'phaseZhunbeiBegin'}, trigger:{player:'phaseZhunbeiBegin'},
animationColor:'thunder', animationColor:'thunder',
skillAnimation:'legend', skillAnimation:'legend',
filter:function(event,player){
return !player.storage.yongdi;
},
init:function(player){
player.storage.yongdi=false;
},
mark:true, mark:true,
intro:{
content:'limited'
},
direct:true, direct:true,
content:function(){ content:function(){
'step 0' 'step 0'
@ -16011,7 +15998,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var att=get.attitude(player,target); var att=get.attitude(player,target);
if(att<=1) return 0; if(att<=1) return 0;
var mode=get.mode(); var mode=get.mode();
if(mode=='identity'||(mode=='versus'&&_status.mode=='four')){ if(mode=='identity'||(mode=='versus'&&(_status.mode=='four'||_status.mode=='guandu'))){
if(target.name&&lib.character[target.name]){ if(target.name&&lib.character[target.name]){
for(var i=0;i<lib.character[target.name][3].length;i++){ for(var i=0;i<lib.character[target.name][3].length;i++){
if(lib.skill[lib.character[target.name][3][i]].zhuSkill){ if(lib.skill[lib.character[target.name][3][i]].zhuSkill){
@ -16024,36 +16011,23 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}).set('goon',!player.hasUnknown()); }).set('goon',!player.hasUnknown());
'step 1' 'step 1'
if(result.bool){ if(result.bool){
player.awakenSkill('yongdi');
player.storage.yongdi=true;
player.logSkill('yongdi',result.targets);
var target=result.targets[0]; var target=result.targets[0];
target.gainMaxHp(true); player.logSkill('yongdi',target);
player.awakenSkill('yongdi');
target.gainMaxHp();
target.recover(); target.recover();
var mode=get.mode(); var mode=get.mode();
if(mode=='identity'||(mode=='versus'&&_status.mode=='four')||mode=='doudizhu'){ var skills=target.getStockSkills(true,true).filter(skill=>{
if(target.name&&lib.character[target.name]){ if(target.hasSkill(skill)) return false;
var skills=lib.character[target.name][3]; var info=get.info(skill);
target.storage.zhuSkill_yongdi=[]; return info&&info.zhuSkill;
for(var i=0;i<skills.length;i++){ });
var info=lib.skill[skills[i]]; if(skills.length){
if(info.zhuSkill){ for(var i of skills) target.addSkillLog(i);
target.storage.zhuSkill_yongdi.push(skills[i]);
if(info.init){
info.init(target);
}
if(info.init2){
info.init2(target);
}
}
}
}
} }
} }
}, },
ai:{ ai:{expose:0.2},
expose:0.2
}
}, },
regushe:{ regushe:{
audio:'gushe', audio:'gushe',