This commit is contained in:
parent
6c57a4b878
commit
1484880fe4
|
@ -32,7 +32,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
|
|
||||||
gw_aigeleisi:['female','wu',3,['gwshenyu']],
|
gw_aigeleisi:['female','wu',3,['gwshenyu']],
|
||||||
gw_aokeweisite:['male','qun',4,['yunhuo']],
|
gw_aokeweisite:['male','qun',4,['yunhuo']],
|
||||||
// gw_kaxier:['male','wu',4,[]],
|
gw_kaxier:['male','wu',4,['gwfengchi']],
|
||||||
gw_luobo:['male','qun',3,['junchi']],
|
gw_luobo:['male','qun',3,['junchi']],
|
||||||
gw_mieren:['male','shu',3,['lingji']],
|
gw_mieren:['male','shu',3,['lingji']],
|
||||||
gw_sanhanya:['male','shu',3,['gwjinyan']],
|
gw_sanhanya:['male','shu',3,['gwjinyan']],
|
||||||
|
@ -54,6 +54,64 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
|
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
|
||||||
},
|
},
|
||||||
skill:{
|
skill:{
|
||||||
|
gwfengchi:{
|
||||||
|
trigger:{player:'phaseUseBegin'},
|
||||||
|
frequent:true,
|
||||||
|
content:function(){
|
||||||
|
'step 0'
|
||||||
|
var list=get.gainableSkills(function(info){
|
||||||
|
if(typeof info.enable=='string') return info.enable=='phaseUse';
|
||||||
|
if(Array.isArray(info.enable)) return info.enable.contains('phaseUse');
|
||||||
|
});
|
||||||
|
list.remove(player.getSkills());
|
||||||
|
list=list.randomGets(3);
|
||||||
|
event.skillai=function(){
|
||||||
|
return get.max(list,get.skillRank,'item');
|
||||||
|
};
|
||||||
|
if(event.isMine()){
|
||||||
|
var dialog=ui.create.dialog('forcebutton');
|
||||||
|
dialog.add('风驰:选择获得一项技能');
|
||||||
|
var clickItem=function(){
|
||||||
|
_status.event._result=this.link;
|
||||||
|
dialog.close();
|
||||||
|
game.resume();
|
||||||
|
};
|
||||||
|
for(var i=0;i<list.length;i++){
|
||||||
|
if(lib.translate[list[i]+'_info']){
|
||||||
|
var translation=get.translation(list[i]);
|
||||||
|
if(translation[0]=='新'&&translation.length==3){
|
||||||
|
translation=translation.slice(1,3);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
translation=translation.slice(0,2);
|
||||||
|
}
|
||||||
|
var item=dialog.add('<div class="popup pointerdiv" style="width:80%;display:inline-block"><div class="skill">【'+
|
||||||
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
||||||
|
item.firstChild.addEventListener('click',clickItem);
|
||||||
|
item.firstChild.link=list[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dialog.add(ui.create.div('.placeholder'));
|
||||||
|
event.switchToAuto=function(){
|
||||||
|
event._result=event.skillai();
|
||||||
|
dialog.close();
|
||||||
|
game.resume();
|
||||||
|
};
|
||||||
|
_status.imchoosing=true;
|
||||||
|
game.pause();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
event._result=event.skillai();
|
||||||
|
}
|
||||||
|
'step 1'
|
||||||
|
_status.imchoosing=false;
|
||||||
|
var link=result;
|
||||||
|
player.addTempSkill(link,'phaseUseAfter');
|
||||||
|
player.popup(link);
|
||||||
|
game.log(player,'获得了技能','【'+get.translation(link)+'】');
|
||||||
|
game.delay();
|
||||||
|
}
|
||||||
|
},
|
||||||
lingji:{
|
lingji:{
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
usable:1,
|
usable:1,
|
||||||
|
@ -1475,6 +1533,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
gw_zhangyujushou:'章鱼巨兽',
|
gw_zhangyujushou:'章鱼巨兽',
|
||||||
gw_zhuoertan:'卓尔坦',
|
gw_zhuoertan:'卓尔坦',
|
||||||
|
|
||||||
|
gwfengchi:'风驰',
|
||||||
|
gwfengchi_info:'出牌阶段开始时,你可以随机观看3个可以在出牌阶段使用的技能,并获得其中一个技能直到此阶段结束',
|
||||||
gwjushi:'巨噬',
|
gwjushi:'巨噬',
|
||||||
gwjushi_info:'出牌阶段限一次,你可以将一名距离1以内的其他角色的一张随机牌置于你的武将牌上;当你受到伤害后,“巨噬”牌将回到原来的位置;准备阶段,若你有“巨噬”牌,你移去之然后增加一点体力和体力上限',
|
gwjushi_info:'出牌阶段限一次,你可以将一名距离1以内的其他角色的一张随机牌置于你的武将牌上;当你受到伤害后,“巨噬”牌将回到原来的位置;准备阶段,若你有“巨噬”牌,你移去之然后增加一点体力和体力上限',
|
||||||
bolang:'搏浪',
|
bolang:'搏浪',
|
||||||
|
|
|
@ -1018,7 +1018,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
translation=translation.slice(0,2);
|
translation=translation.slice(0,2);
|
||||||
}
|
}
|
||||||
var item=dialog.add('<div class="popup pointerdiv" style="width:50%;display:inline-block"><div class="skill">【'+
|
var item=dialog.add('<div class="popup pointerdiv" style="width:80%;display:inline-block"><div class="skill">【'+
|
||||||
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
||||||
item.firstChild.addEventListener('click',clickItem);
|
item.firstChild.addEventListener('click',clickItem);
|
||||||
item.firstChild.link=list[i];
|
item.firstChild.link=list[i];
|
||||||
|
@ -3253,7 +3253,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
translation=translation.slice(0,2);
|
translation=translation.slice(0,2);
|
||||||
}
|
}
|
||||||
var item=dialog.add('<div class="popup pointerdiv" style="width:50%;display:inline-block"><div class="skill">【'+
|
var item=dialog.add('<div class="popup pointerdiv" style="width:80%;display:inline-block"><div class="skill">【'+
|
||||||
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
||||||
item.firstChild.addEventListener('click',clickItem);
|
item.firstChild.addEventListener('click',clickItem);
|
||||||
item.firstChild.link=list[i];
|
item.firstChild.link=list[i];
|
||||||
|
|
|
@ -6798,7 +6798,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
translation=translation.slice(0,2);
|
translation=translation.slice(0,2);
|
||||||
}
|
}
|
||||||
var item=dialog.add('<div class="popup pointerdiv" style="width:50%;display:inline-block"><div class="skill">【'+
|
var item=dialog.add('<div class="popup pointerdiv" style="width:80%;display:inline-block"><div class="skill">【'+
|
||||||
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
||||||
item.firstChild.addEventListener('click',clickItem);
|
item.firstChild.addEventListener('click',clickItem);
|
||||||
item.firstChild.link=list[i];
|
item.firstChild.link=list[i];
|
||||||
|
@ -6917,7 +6917,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
else{
|
else{
|
||||||
translation=translation.slice(0,2);
|
translation=translation.slice(0,2);
|
||||||
}
|
}
|
||||||
var item=dialog.add('<div class="popup pointerdiv" style="width:50%;display:inline-block"><div class="skill">【'+
|
var item=dialog.add('<div class="popup pointerdiv" style="width:80%;display:inline-block"><div class="skill">【'+
|
||||||
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
||||||
item.firstChild.addEventListener('click',clickItem);
|
item.firstChild.addEventListener('click',clickItem);
|
||||||
item.firstChild.link=list[i];
|
item.firstChild.link=list[i];
|
||||||
|
|
|
@ -41685,13 +41685,15 @@
|
||||||
}
|
}
|
||||||
return skills;
|
return skills;
|
||||||
},
|
},
|
||||||
gainableSkills:function(){
|
gainableSkills:function(func){
|
||||||
var list=[];
|
var list=[];
|
||||||
for(var i in lib.character){
|
for(var i in lib.character){
|
||||||
if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue;
|
if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue;
|
||||||
for(var j=0;j<lib.character[i][3].length;j++){
|
for(var j=0;j<lib.character[i][3].length;j++){
|
||||||
var skill=lib.character[i][3][j];
|
var skill=lib.character[i][3][j];
|
||||||
if(lib.skill[skill]&&!lib.skill[skill].unique){
|
var info=lib.skill[skill];
|
||||||
|
if(info&&!info.unique&&!info.temp&&info.bond){
|
||||||
|
if(func&&!func(info,skill)) continue;
|
||||||
list.add(skill);
|
list.add(skill);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue