所有key武将和三国杀官方武将完成addSkill更改为addSkills的升级

This commit is contained in:
Spmario233 2024-02-14 18:38:48 +08:00
parent 38c141eab1
commit 793bc74e9a
10 changed files with 91 additions and 98 deletions

View File

@ -1774,12 +1774,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.awakenSkill('tomoyo_zhengfeng'); player.awakenSkill('tomoyo_zhengfeng');
player.loseMaxHp(); player.loseMaxHp();
'step 1' 'step 1'
player.removeSkill('tomoyo_wuwei'); player.removeSkills('tomoyo_wuwei');
'step 2' 'step 2'
player.draw(2); player.draw(2);
player.recover(); player.recover();
'step 3' 'step 3'
player.addSkill('tomoyo_changshi'); player.addSkills('tomoyo_changshi');
}, },
}, },
}, },
@ -2195,12 +2195,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
multiline:true, multiline:true,
line:{color:[253, 153, 182]}, line:{color:[253, 153, 182]},
content(){ content(){
game.countPlayer(function(current){ game.filterPlayer().sortBySeat().forEach(function(current){
if(!targets.includes(current)){ if(!targets.includes(current)){
current.removeSkill('seira_yinyuan'); current.removeSkills('seira_yinyuan');
} }
else{ else{
current.addSkillLog('seira_yinyuan'); current.addSkills('seira_yinyuan');
} }
}); });
game.delayx(); game.delayx();
@ -2350,7 +2350,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw(2); player.draw(2);
player.markAuto('nsxingyun',[lib.skill.nsxingyun.getSixiang(trigger.card)]); player.markAuto('nsxingyun',[lib.skill.nsxingyun.getSixiang(trigger.card)]);
'step 1' 'step 1'
if(player.getStorage('nsxingyun').length>=4) player.addSkillLog('bazhen'); if(player.getStorage('nsxingyun').length>=4) player.addSkills('bazhen');
}, },
}, },
round:{ round:{
@ -3416,8 +3416,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(owner&&owner!=player) owner.give(card,player); if(owner&&owner!=player) owner.give(card,player);
'step 1' 'step 1'
if(player.hp<player.maxHp) player.recover(player.maxHp-player.hp); if(player.hp<player.maxHp) player.recover(player.maxHp-player.hp);
player.removeSkill('mia_shihui'); player.changeSkills(['mia_fengfa'],['mia_shihui']);
player.addSkill('mia_fengfa');
}, },
}, },
fail:{ fail:{
@ -3841,7 +3840,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.storage.tenzen_lingyu=true; player.storage.tenzen_lingyu=true;
player.loseMaxHp(); player.loseMaxHp();
if(player.isHealthy()) player.draw(2); if(player.isHealthy()) player.draw(2);
player.addSkill('tenzen_tianquan'); player.addSkills('tenzen_tianquan');
}, },
}, },
tenzen_tianquan:{ tenzen_tianquan:{
@ -4633,7 +4632,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var cards=target.getCards('j'); var cards=target.getCards('j');
if(cards.length) target.discard(cards); if(cards.length) target.discard(cards);
'step 3' 'step 3'
target.addSkill('misuzu_zhongyuan'); target.addSkills('misuzu_zhongyuan');
}, },
derivation:'misuzu_zhongyuan', derivation:'misuzu_zhongyuan',
ai:{ ai:{
@ -4860,7 +4859,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content(){ content(){
player._chihaya_liewu=true; player._chihaya_liewu=true;
player.loseMaxHp(4); player.loseMaxHp(4);
player.addSkill('chihaya_huairou'); player.addSkills('chihaya_huairou');
}, },
}, },
chihaya_huairou:{ chihaya_huairou:{
@ -5248,7 +5247,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.logSkill('hiroto_huyu',target); player.logSkill('hiroto_huyu',target);
target.give(result.cards,player); target.give(result.cards,player);
player.storage.hiroto_huyu2=target; player.storage.hiroto_huyu2=target;
player.addSkill('hiroto_zonglve'); player.addSkills('hiroto_zonglve');
player.addSkill('hiroto_huyu2'); player.addSkill('hiroto_huyu2');
} }
}, },
@ -5348,8 +5347,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content(){ content(){
player.awakenSkill('hiroto_tuolao'); player.awakenSkill('hiroto_tuolao');
player.draw(3); player.draw(3);
player.removeSkill('hiroto_huyu'); player.changeSkills(['hiroto_zonglve'],['hiroto_huyu']);
player.addSkill('hiroto_zonglve');
}, },
}, },
shizuku_sizhi:{ shizuku_sizhi:{
@ -5711,7 +5709,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.recover(); player.recover();
var list=['umi_chaofan','ao_xishi','tsumugi_mugyu','kamome_jieban']; var list=['umi_chaofan','ao_xishi','tsumugi_mugyu','kamome_jieban'];
var skill=list.randomGet(); var skill=list.randomGet();
player.addSkillLog(skill); player.addSkills(skill);
player.flashAvatar('shiroha_jiezhao','key_'+skill.split('_')[0]); player.flashAvatar('shiroha_jiezhao','key_'+skill.split('_')[0]);
} }
}, },
@ -6286,8 +6284,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return info&&info.charlotte==true; return info&&info.charlotte==true;
}); });
if(skills.length){ if(skills.length){
target.removeSkill(skills); target.removeSkills(skills);
player.addSkill(skills); player.addSkills(skills);
lib.translate.yuu_lveduo_info=lib.translate.yuu_lveduo_full_info; lib.translate.yuu_lveduo_info=lib.translate.yuu_lveduo_full_info;
} }
if(target.name=='key_yusa'){ if(target.name=='key_yusa'){
@ -6882,7 +6880,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(cards.length) player.discard(cards); if(cards.length) player.discard(cards);
player.removeSkill('kud_qiaoshou_equip'); player.removeSkill('kud_qiaoshou_equip');
player.draw(cards.length); player.draw(cards.length);
player.addSkill('kud_chongzhen'); player.addSkills('kud_chongzhen');
'step 1' 'step 1'
var num=2-player.hp; var num=2-player.hp;
if(num) player.recover(num); if(num) player.recover(num);
@ -8043,10 +8041,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
animationColor:'orange', animationColor:'orange',
content(){ content(){
player.awakenSkill('yuzuru_deyi'); player.awakenSkill('yuzuru_deyi');
player.removeSkill('yuzuru_wuxin'); player.changeSkills(['yuzuru_kunfen','yuzuru_quji','yuzuru_wangsheng'],['yuzuru_wuxin']);
player.addSkillLog('yuzuru_kunfen');
player.addSkillLog('yuzuru_quji');
player.addSkillLog('yuzuru_wangsheng');
player.loseMaxHp(); player.loseMaxHp();
player.recover(); player.recover();
}, },
@ -8243,8 +8238,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content(){ content(){
player.awakenSkill('ao_shixin'); player.awakenSkill('ao_shixin');
player.removeSkill('ao_kuihun'); player.changeSkills(['ao_diegui'],['ao_kuihun']);
player.addSkill('ao_diegui');
player.gainMaxHp(); player.gainMaxHp();
player.recover(); player.recover();
}, },
@ -8872,10 +8866,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content(){ content(){
player.awakenSkill('riki_mengzhong'); player.awakenSkill('riki_mengzhong');
player.removeSkill('riki_spwenji'); player.removeSkills('riki_spwenji');
player.gainMaxHp(); player.gainMaxHp();
player.recover(); player.recover();
player.addSkill('riki_chongzhen'); player.addSkills('riki_chongzhen');
}, },
}, },
riki_chongzhen:{ riki_chongzhen:{
@ -10035,7 +10029,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content(){ content(){
player.awakenSkill('yui_takaramono'); player.awakenSkill('yui_takaramono');
player.addSkill('yui_yinhang'); player.addSkills('yui_yinhang');
player.storage._ichiban_no_takaramono=true; player.storage._ichiban_no_takaramono=true;
player.gainMaxHp(); player.gainMaxHp();
player.recover(); player.recover();
@ -10806,8 +10800,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseControl(list).set('prompt','选择获得一个技能'); player.chooseControl(list).set('prompt','选择获得一个技能');
} }
'step 4' 'step 4'
player.addSkill(result.control,get.groupnature(event.temp.group)||'key'); //player.addSkills(result.control,get.groupnature(event.temp.group)||'key');
player.addSkill(result.control); player.addSkills(result.control);
var info=get.info(result.control); var info=get.info(result.control);
if(info.zhuSkill){ if(info.zhuSkill){
if(!player.storage.zhuSkill_umi_qihuan) player.storage.zhuSkill_umi_qihuan=[]; if(!player.storage.zhuSkill_umi_qihuan) player.storage.zhuSkill_umi_qihuan=[];
@ -17649,8 +17643,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1' 'step 1'
if(result.bool){ if(result.bool){
var skills=lib.skill.junkyuheng.derivation.randomGets(result.cards.length); var skills=lib.skill.junkyuheng.derivation.randomGets(result.cards.length);
player.addAdditionalSkill('junkyuheng',skills); player.changeSkills(skills,[]).set('$handle',(player,skills)=>{
game.log(player,'获得了以下技能:','#g'+get.translation(skills)); player.addAdditionalSkill('junkyuheng',skills);
game.log(player,'获得了以下技能:','#g'+get.translation(skills));
});
} }
}, },
group:'junkyuheng_remove', group:'junkyuheng_remove',
@ -17664,22 +17660,25 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.additionalSkills.junkyuheng&&player.additionalSkills.junkyuheng.length>0; return player.additionalSkills.junkyuheng&&player.additionalSkills.junkyuheng.length>0;
}, },
content(){ content(){
player.draw(player.additionalSkills.junkyuheng.length); const skills = player.additionalSkills.junkyuheng;
game.log(player,'失去了以下技能:','#g'+get.translation(player.additionalSkills.junkyuheng)); player.draw(skills.length);
player.removeAdditionalSkill('junkyuheng'); player.changeSkills([],skills).set('$handle',(player,addSkills,removeSkills)=>{
game.log(player,'失去了以下技能:','#g'+get.translation(removeSkills));
player.removeAdditionalSkill('junkyuheng');
});
}, },
}, },
}, },
}, },
junkdili:{ junkdili:{
audio:'dili', audio:'dili',
trigger:{player:'logSkill'}, trigger:{player:'changeSkillsAfter'},
forced:true, forced:true,
juexingji:true, juexingji:true,
skillAnimation:true, skillAnimation:true,
animationColor:'wood', animationColor:'wood',
filter(event,player){ filter(event,player){
if(event.skill!='junkyuheng') return false; if(!event.addSkill.length) return false;
var skills=player.getSkills(null,false,false).filter(function(i){ var skills=player.getSkills(null,false,false).filter(function(i){
var info=get.info(i); var info=get.info(i);
return info&&!info.charlotte; return info&&!info.charlotte;
@ -17734,12 +17733,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){ if(result.bool){
var skills=result.links; var skills=result.links;
game.log(player,'失去了以下技能:','#g'+get.translation(skills)); game.log(player,'失去了以下技能:','#g'+get.translation(skills));
player.removeSkill(skills.slice(0)); player.removeSkills(skills.slice(0));
} }
var list=lib.skill.junkdili.derivation; var list=lib.skill.junkdili.derivation;
for(var i=0;i<Math.min(skills.length,list.length);i++){ list=list.slice(0,Math.min(skills.length,list.length));
player.addSkillLog(list[i]); player.addSkills(list);
}
}, },
derivation:['junkshengzhi','junkquandao','junkchigang'], derivation:['junkshengzhi','junkquandao','junkchigang'],
}, },
@ -18952,7 +18950,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
junkyuheng:'驭衡', junkyuheng:'驭衡',
junkyuheng_info:'锁定技。①回合开始时,你须弃置任意张花色不同的牌,从<span style="font-family: yuanli">东吴命运线·改</span>中随机获得等量的技能。②回合结束时,你失去所有因〖驭衡①〗获得的技能,然后摸等量的牌。', junkyuheng_info:'锁定技。①回合开始时,你须弃置任意张花色不同的牌,从<span style="font-family: yuanli">东吴命运线·改</span>中随机获得等量的技能。②回合结束时,你失去所有因〖驭衡①〗获得的技能,然后摸等量的牌。',
junkdili:'帝力', junkdili:'帝力',
junkdili_info:'觉醒技。当你发动〖驭衡①〗若你拥有的技能数大于你的体力上限则你减1点体力上限选择失去任意个其他技能然后获得以下技能中的前等量个〖圣质〗/〖权道〗/〖持纲〗。', junkdili_info:'觉醒技。当你获得技能若你拥有的技能数大于你的体力上限则你减1点体力上限选择失去任意个其他技能然后获得以下技能中的前等量个〖圣质〗/〖权道〗/〖持纲〗。',
junkshengzhi:'圣质', junkshengzhi:'圣质',
junkshengzhi_info:'锁定技。当你发动非锁定技后,你令你本回合使用的下一张牌无距离和次数限制。', junkshengzhi_info:'锁定技。当你发动非锁定技后,你令你本回合使用的下一张牌无距离和次数限制。',
junkquandao:'权道', junkquandao:'权道',

View File

@ -1629,7 +1629,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 0' 'step 0'
player.awakenSkill('dcqijing'); player.awakenSkill('dcqijing');
player.loseMaxHp(); player.loseMaxHp();
player.addSkillLog('dccuixin'); player.addSkills('dccuixin');
'step 1' 'step 1'
if(game.countPlayer()>2){ if(game.countPlayer()>2){
if(player==trigger.player&&!trigger.skill){ if(player==trigger.player&&!trigger.skill){
@ -3250,7 +3250,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
skills.add(fullskills.randomRemove(1)[0]); skills.add(fullskills.randomRemove(1)[0]);
} }
for(var i of skills){ for(var i of skills){
player.addSkillLog(i); player.addSkills(i);
} }
player.markAuto('yuheng',skills); player.markAuto('yuheng',skills);
}, },
@ -4108,7 +4108,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content(){ content(){
game.log(player,'成功完成使命'); game.log(player,'成功完成使命');
player.awakenSkill('tspowei'); player.awakenSkill('tspowei');
player.addSkillLog('shenzhu'); player.addSkills('shenzhu');
}, },
}, },
fail:{ fail:{
@ -4350,7 +4350,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var target=result.targets[0]; var target=result.targets[0];
player.line(target,'green'); player.line(target,'green');
target.storage.zuoxing=player; target.storage.zuoxing=player;
target.addSkill('zuoxing'); target.addSkills('zuoxing');
} }
}, },
derivation:'zuoxing', derivation:'zuoxing',
@ -4771,7 +4771,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(lib.character[target.name]) list.addArray(lib.character[target.name][3]); if(lib.character[target.name]) list.addArray(lib.character[target.name][3]);
if(lib.character[target.name1]) list.addArray(lib.character[target.name1][3]); if(lib.character[target.name1]) list.addArray(lib.character[target.name1][3]);
if(lib.character[target.name2]) list.addArray(lib.character[target.name2][3]); if(lib.character[target.name2]) list.addArray(lib.character[target.name2][3]);
player.addSkill(list); player.addSkills(list);
game.broadcastAll(function(list){ game.broadcastAll(function(list){
lib.character.key_shiki[3].addArray(list); lib.character.key_shiki[3].addArray(list);
game.expandSkills(list); game.expandSkills(list);
@ -5094,8 +5094,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content(){ content(){
player.awakenSkill(event.name); player.awakenSkill(event.name);
player.addSkill('tianxing'); player.addSkills(['tianxing','new_rejianxiong']);
player.addSkill('new_rejianxiong');
player.loseMaxHp(); player.loseMaxHp();
player.gain(player.getExpansions('chuyuan'),'gain2','fromStorage'); player.gain(player.getExpansions('chuyuan'),'gain2','fromStorage');
}, },
@ -5126,7 +5125,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 'rerende'; return 'rerende';
}); });
'step 2' 'step 2'
player.addSkillLog(result.control); player.addSkills(result.control);
}, },
}, },
olzhiti:{ olzhiti:{
@ -5901,9 +5900,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.countMark('renjie')>=4; return player.countMark('renjie')>=4;
}, },
content(){ content(){
player.loseMaxHp();
player.addSkill('jilue');
player.awakenSkill('sbaiyin'); player.awakenSkill('sbaiyin');
player.loseMaxHp();
player.addSkills('jilue');
}, },
derivation:['jilue','reguicai','fangzhu','rejizhi','rezhiheng','rewansha'], derivation:['jilue','reguicai','fangzhu','rejizhi','rezhiheng','rewansha'],
}, },

View File

@ -527,12 +527,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content:function(){ content:function(){
var num=Math.min(cards.length,4-player.countMark('dcmanwang')); var num=Math.min(cards.length,4-player.countMark('dcmanwang'));
if(num>=1) player.addSkill('dcpanqin'); if(num>=1) player.addSkills('dcpanqin');
if(num>=2) player.draw(); if(num>=2) player.draw();
if(num>=3) player.recover(); if(num>=3) player.recover();
if(num>=4){ if(num>=4){
player.draw(2); player.draw(2);
player.removeSkill('dcpanqin'); player.removeSkills('dcpanqin');
} }
}, },
ai:{ ai:{
@ -578,7 +578,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
switch(player.countMark('dcmanwang')){ switch(player.countMark('dcmanwang')){
case 1: case 1:
player.draw(2); player.draw(2);
player.removeSkill('dcpanqin'); player.removeSkills('dcpanqin');
break; break;
case 2: case 2:
player.recover(); player.recover();
@ -587,7 +587,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.draw(); player.draw();
break; break;
case 4: case 4:
player.addSkill('dcpanqin'); player.addSkills('dcpanqin');
break; break;
} }
'step 1' 'step 1'
@ -3337,11 +3337,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
'step 0' 'step 0'
player.awakenSkill('dcchongxu'); player.awakenSkill('dcchongxu');
player.removeSkills('dchuiling');
player.gainMaxHp(Math.min(game.countPlayer(),player.countMark('dchuiling'))); player.gainMaxHp(Math.min(game.countPlayer(),player.countMark('dchuiling')));
player.removeSkill('dchuiling');
'step 1' 'step 1'
player.addSkillLog('dctaji'); player.addSkills(['dctaji','dcqinghuang']);
player.addSkillLog('dcqinghuang');
}, },
ai:{ ai:{
order:function(itemp,player){ order:function(itemp,player){
@ -7643,7 +7642,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
else event.goto(3); else event.goto(3);
'step 2' 'step 2'
game.broadcastAll('closeDialog',event.videoId); game.broadcastAll('closeDialog',event.videoId);
target.addSkillLog(result.control); target.addSkills(result.control);
'step 3' 'step 3'
var storage=player.storage.dunshi; var storage=player.storage.dunshi;
if(event.links.includes(1)){ if(event.links.includes(1)){
@ -10030,8 +10029,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(player.maxHp>player.hp) player.recover(player.maxHp-player.hp); if(player.maxHp>player.hp) player.recover(player.maxHp-player.hp);
'step 2' 'step 2'
player.drawTo(Math.min(5,player.maxHp)); player.drawTo(Math.min(5,player.maxHp));
player.addSkillLog('llqshenwei'); player.addSkills(['llqshenwei','wushuang']);
player.addSkillLog('wushuang');
}, },
}, },
llqshenwei:{ llqshenwei:{

View File

@ -3965,9 +3965,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
player.awakenSkill('jsrgzhasi'); player.awakenSkill('jsrgzhasi');
trigger.cancel(); trigger.cancel();
player.removeSkill('jsrgzhiheng'); player.removeSkill();
game.log(player,'失去了技能','#g【猘横】'); player.changeSkills(['rezhiheng'],['jsrgzhiheng']);
player.addSkillLog('rezhiheng');
player.addSkill('jsrgzhasi_undist'); player.addSkill('jsrgzhasi_undist');
}, },
derivation:'rezhiheng', derivation:'rezhiheng',
@ -7652,8 +7651,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.awakenSkill('jsrghuilie'); player.awakenSkill('jsrghuilie');
player.loseMaxHp(); player.loseMaxHp();
'step 1' 'step 1'
player.addSkillLog('jsrgpingrong'); player.addSkills(['jsrgpingrong','feiying']);
player.addSkillLog('feiying');
} }
}, },
jsrgpingrong:{ jsrgpingrong:{

View File

@ -6783,7 +6783,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
player.awakenSkill('moucuan'); player.awakenSkill('moucuan');
player.loseMaxHp(); player.loseMaxHp();
player.addSkill('binghuo'); player.addSkills('binghuo');
}, },
ai:{combo:'jibing'}, ai:{combo:'jibing'},
}, },
@ -9902,7 +9902,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return info&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte; return info&&!info.hiddenSkill&&!info.zhuSkill&&!info.charlotte;
}); });
if(skills.length){ if(skills.length){
for(var i of skills) player.addSkillLog(i); player.addSkills(skills);
game.broadcastAll(function(list){ game.broadcastAll(function(list){
game.expandSkills(list); game.expandSkills(list);
for(var i of list){ for(var i of list){
@ -9943,7 +9943,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return list.randomGet(); return list.randomGet();
}); });
'step 1' 'step 1'
player.addSkillLog(result.control); player.addSkills(result.control);
game.broadcastAll(function(skill){ game.broadcastAll(function(skill){
var list=[skill];game.expandSkills(list); var list=[skill];game.expandSkills(list);
for(var i of list){ for(var i of list){
@ -11584,8 +11584,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.gain(gains,'gain2'); player.gain(gains,'gain2');
} }
'step 3' 'step 3'
player.addSkill('reqingce'); player.addSkills('reqingce');
game.log(player,'获得了技能','#g【清侧】');
player.loseMaxHp(); player.loseMaxHp();
}, },
}, },
@ -12960,8 +12959,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1' 'step 1'
if(result.bool){ if(result.bool){
player.line(trigger.source,'fire'); player.line(trigger.source,'fire');
trigger.source.addSkillLog('new_rewusheng'); trigger.source.addSkills(['new_rewusheng','redangxian']);
trigger.source.addSkillLog('redangxian');
} }
}, },
}, },
@ -13110,8 +13108,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
animationColor:'thunder', animationColor:'thunder',
content:function(){ content:function(){
player.awakenSkill('remoucheng'); player.awakenSkill('remoucheng');
player.removeSkill('relianji'); player.changeSkills(['jingong','relianji']);
player.addSkill('jingong');
player.gainMaxHp(); player.gainMaxHp();
player.recover(); player.recover();
}, },

View File

@ -1075,7 +1075,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.awakenSkill('pksanchen'); player.awakenSkill('pksanchen');
player.gainMaxHp(); player.gainMaxHp();
player.recover(); player.recover();
player.addSkillLog('pkmiewu'); player.addSkills('pkmiewu');
}, },
ai:{ ai:{
combo:'wuku', combo:'wuku',

View File

@ -200,7 +200,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1' 'step 1'
if(result.bool){ if(result.bool){
player.logSkill('junkguixin'); player.logSkill('junkguixin');
player.addSkillLog(result.links[0]); player.addSkills(result.links[0]);
} }
}, },
content_修改势力:function(){ content_修改势力:function(){

View File

@ -519,11 +519,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var trigger=map.trigger; var trigger=map.trigger;
player.awakenSkill('olsbranji'); player.awakenSkill('olsbranji');
var num=lib.skill.olsbranji.getNum(trigger,player); var num=lib.skill.olsbranji.getNum(trigger,player);
const skills = [];
if(num>=player.getHp()){ if(num>=player.getHp()){
player.addSkillLog('kunfen'); skills.push('kunfen');
player.storage.kunfen=true; player.storage.kunfen=true;
} }
if(num<=player.getHp()) player.addSkillLog('zhaxiang'); if(num<=player.getHp()) skills.push('zhaxiang');
player.addSkills(skills);
if(player.countCards('h')!=player.getHandcardLimit()||player.isDamaged()){ if(player.countCards('h')!=player.getHandcardLimit()||player.isDamaged()){
var result,num1=player.countCards('h')-player.getHandcardLimit(); var result,num1=player.countCards('h')-player.getHandcardLimit();
if(!num1) result={index:1}; if(!num1) result={index:1};

View File

@ -559,8 +559,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1' 'step 1'
player.drawTo(player.maxHp); player.drawTo(player.maxHp);
'step 2' 'step 2'
player.addSkillLog('benghuai'); player.addSkills(['benghuai','reweizhong']);
player.addSkillLog('reweizhong');
} }
}, },
reweizhong:{ reweizhong:{
@ -3861,7 +3860,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
player.awakenSkill('xsqianxin'); player.awakenSkill('xsqianxin');
player.loseMaxHp(); player.loseMaxHp();
player.addSkill('rejianyan'); player.addSkills('rejianyan');
}, },
derivation:'rejianyan', derivation:'rejianyan',
}, },
@ -5588,7 +5587,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.recover(); player.recover();
player.draw(2); player.draw(2);
player.loseMaxHp(); player.loseMaxHp();
player.addSkill('xinpaiyi'); player.addSkills('xinpaiyi');
}, },
}, },
xinpaiyi:{ xinpaiyi:{
@ -6102,8 +6101,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseDrawRecover(2,true); player.chooseDrawRecover(2,true);
"step 1" "step 1"
player.loseMaxHp(); player.loseMaxHp();
player.storage.olzhiji=true; player.addSkills('reguanxing');
player.addSkill('reguanxing');
} }
}, },
//界郭图张嶷 //界郭图张嶷
@ -7733,7 +7731,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){ content:function(){
player.awakenSkill('olzaoxian'); player.awakenSkill('olzaoxian');
player.loseMaxHp(); player.loseMaxHp();
player.addSkill('jixi'); player.addSkills('jixi');
player.insertPhase(); player.insertPhase();
} }
}, },
@ -9603,7 +9601,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return ['olhuoji','bazhen'].randomGet(); return ['olhuoji','bazhen'].randomGet();
}; };
'step 6' 'step 6'
player.addSkillLog(result.control); player.addSkills(result.control);
}, },
derivation:['bazhen','olhuoji','olkanpo'], derivation:['bazhen','olhuoji','olkanpo'],
ai:{ ai:{
@ -10273,14 +10271,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audioname:['re_sunyi'], audioname:['re_sunyi'],
inherit:'hunzi', inherit:'hunzi',
content:function(){ content:function(){
player.awakenSkill(event.name);
player.loseMaxHp(); player.loseMaxHp();
//player.recover(); //player.recover();
player.addSkill('reyingzi'); player.addSkills(['reyingzi','gzyinghun']);
player.addSkill('gzyinghun');
player.addTempSkill('olhunzi_effect'); player.addTempSkill('olhunzi_effect');
game.log(player,'获得了技能','#g【英姿】','和','#g【英魂】');
player.awakenSkill(event.name);
player.storage[event.name]=true;
}, },
subSkill:{ subSkill:{
effect:{ effect:{
@ -11035,7 +11030,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 1' 'step 1'
if(!result.bool) target.loseHp(); if(!result.bool) target.loseHp();
'step 2' 'step 2'
target.addSkillLog('rechanyuan'); target.addSkills('rechanyuan');
if(targets.length) event.goto(0); if(targets.length) event.goto(0);
}, },
}, },
@ -13155,7 +13150,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.awakenSkill('qinxue'); player.awakenSkill('qinxue');
player.loseMaxHp(); player.loseMaxHp();
player.chooseDrawRecover(2,true); player.chooseDrawRecover(2,true);
player.addSkill('gongxin'); player.addSkills('gongxin');
} }
}, },
qingjian:{ qingjian:{
@ -14025,7 +14020,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
content:function(){ content:function(){
player.awakenSkill('qianxin'); player.awakenSkill('qianxin');
player.addSkill('jianyan'); player.addSkills('jianyan');
player.loseMaxHp(); player.loseMaxHp();
} }
}, },

View File

@ -12,7 +12,7 @@ export const Content = {
event.trigger(event.name); event.trigger(event.name);
}, },
//变更技能 //变更技能
changeSkills: async function (event,trigger,player) { async changeSkills (event,trigger,player) {
//去重检查 //去重检查
event.addSkill.unique(); event.addSkill.unique();
event.removeSkill.unique(); event.removeSkill.unique();
@ -26,8 +26,14 @@ export const Content = {
await event.trigger('changeSkillsBefore'); await event.trigger('changeSkillsBefore');
await event.trigger('changeSkillsBegin'); await event.trigger('changeSkillsBegin');
//处理失去和获得的技能 //处理失去和获得的技能
if(event.addSkill.length) player.addSkillLog(event.addSkill); if(event.$handle){
if(event.removeSkill.length) player.removeSkillLog(event.removeSkill); event.$handle(player,event.addSkill,event.removeSkill,event);
}
else{
if(event.addSkill.length) player.addSkillLog(event.addSkill);
if(event.removeSkill.length) player.removeSkillLog(event.removeSkill);
}
//手动触发时机
await event.trigger('changeSkillsEnd'); await event.trigger('changeSkillsEnd');
await event.trigger('changeSkillsAfter'); await event.trigger('changeSkillsAfter');
}, },