十周年二乔bugfix,TW/十周年二乔使用tempname机制
This commit is contained in:
parent
7ec6308524
commit
947694c8db
|
@ -77,7 +77,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
tw_madai:['male','shu',4,['mashu','twqianxi']],
|
||||
tw_niujin:['male','wei',4,['twcuorui','twliewei']],
|
||||
tw_guanqiujian:['male','wei',3,['twzhengrong','twhongju']],
|
||||
tw_daxiaoqiao:['female','wu',3,['twxingwu','twpingting']],
|
||||
tw_daxiaoqiao:['female','wu',3,['twxingwu','twpingting'],['tempname:daxiaoqiao']],
|
||||
tw_furong:['male','shu',4,['twxuewei','twliechi']],
|
||||
tw_yl_luzhi:['male','qun',3,['twmingren','twzhenliang']],
|
||||
tw_liuzhang:['male','qun',3,['jutu','twyaohu','rehuaibi']],
|
||||
|
@ -6240,7 +6240,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
audio:2,
|
||||
trigger:{global:['roundStart','dying']},
|
||||
init:function(player,skill){
|
||||
if(player.getExpansions('twxingwu').length) player.addAdditionalSkill(skill,['tianxiang_daxiaoqiao','liuli_daxiaoqiao']);
|
||||
if(player.getExpansions('twxingwu').length) player.addAdditionalSkill(skill,['tianxiang','liuli']);
|
||||
else player.removeAdditionalSkill(skill);
|
||||
},
|
||||
filter:function(event,player){
|
||||
|
@ -6269,18 +6269,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
subSkill:{
|
||||
update:{
|
||||
trigger:{
|
||||
player:['loseAfter','loseAsyncAfter','addToExpansionAfter'],
|
||||
trigger:{player:['loseAfter','loseAsyncAfter','addToExpansionAfter']},
|
||||
filter:function(event,player){
|
||||
var cards=player.getExpansions('twxingwu'),skills=player.additionalSkills.twpingting;
|
||||
return !((cards.length&&skills&&skills.length)||(!cards.length&&(!skills||!skills.length)));
|
||||
},
|
||||
forced:true,
|
||||
silent:true,
|
||||
filter:function(event,player){
|
||||
var cards=player.getExpansions('twxingwu'),skills=player.additionalSkills.twpingting;
|
||||
if((cards.length&&skills&&skills.length)||(!cards.length&&(!skills||!skills.length))){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
content:function(){
|
||||
lib.skill.twpingting.init(player,'twpingting');
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
dc_sp_machao:['male','qun',4,['zhuiji','dc_olshichou']],
|
||||
old_huangfusong:['male','qun',4,['xinfenyue']],
|
||||
dc_xiahouba:['male','shu',4,['rebaobian']],
|
||||
dc_daxiaoqiao:['female','wu',3,['dcxingwu','dcluoyan']],
|
||||
dc_daxiaoqiao:['female','wu',3,['dcxingwu','dcluoyan'],['tempname:daxiaoqiao']],
|
||||
tianshangyi:['female','wei',3,['dcposuo','dcxiaoren']],
|
||||
sunlingluan:['female','wu',3,['dclingyue','dcpandi']],
|
||||
dc_wangjun:['male','qun',4,['dctongye','dcchangqu']],
|
||||
|
@ -1665,23 +1665,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
dcluoyan:{
|
||||
derivation:['retianxiang','liuli'],
|
||||
init:function(player){
|
||||
if (player.getStorage('dcxingwu').length) player.addAdditionalSkill('dcluoyan', ['retianxiang_daxiaoqiao', 'liuli_daxiaoqiao']);
|
||||
if(player.getExpansions('dcxingwu').length) player.addAdditionalSkill('dcluoyan',['retianxiang','liuli']);
|
||||
else player.removeAdditionalSkill('dcluoyan');
|
||||
},
|
||||
onremove:function(player){
|
||||
player.removeAdditionalSkill('dcluoyan');
|
||||
},
|
||||
trigger: {
|
||||
player: ['loseAfter', 'loseAsyncAfter', 'addToExpansionAfter'],
|
||||
},
|
||||
trigger:{player:['loseAfter','loseAsyncAfter','addToExpansionAfter']},
|
||||
filter:function(event,player){
|
||||
var cards=player.getExpansions('dcxingwu'),skills=player.additionalSkills.dcluoyan;
|
||||
if ((cards.length && skills && skills.length) || (!cards.length && (!skills || !skills.length))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !((cards.length&&skills&&skills.length)||(!cards.length&&(!skills||!skills.length)));
|
||||
},
|
||||
forced:true,
|
||||
silent:true,
|
||||
content:function(){
|
||||
lib.skill.dcluoyan.init(player,'dcluoyan');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue