标准包yiji技能调整缩进
This commit is contained in:
parent
1ab5975364
commit
60596cd0c0
|
@ -566,7 +566,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
cards.length==1?
|
cards.length==1?
|
||||||
{result:{links:cards.slice(0),bool: true}}:
|
{result:{links:cards.slice(0),bool: true}}:
|
||||||
await player.promises.chooseCardButton('遗计:请选择要分配的牌',true,cards,[1,cards.length])
|
await player.promises.chooseCardButton('遗计:请选择要分配的牌',true,cards,[1,cards.length])
|
||||||
.set('ai', function (button) {
|
.set('ai',button=>{
|
||||||
if(ui.selected.buttons.length==0) return 1;
|
if(ui.selected.buttons.length==0) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
@ -574,8 +574,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
cards.removeArray(links);
|
cards.removeArray(links);
|
||||||
event.togive=links.slice(0);
|
event.togive=links.slice(0);
|
||||||
const {result:{targets}}=await player.promises.chooseTarget('选择一名角色获得'+get.translation(links),true)
|
const {result:{targets}}=await player.promises.chooseTarget('选择一名角色获得'+get.translation(links),true)
|
||||||
.set('ai', function (target) {
|
.set('ai',target=>{
|
||||||
var att = get.attitude(_status.event.player, target);
|
const att=get.attitude(_status.event.player,target);
|
||||||
if(_status.event.enemy){
|
if(_status.event.enemy){
|
||||||
return -att;
|
return -att;
|
||||||
}
|
}
|
||||||
|
@ -609,10 +609,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
animate:'draw',
|
animate:'draw',
|
||||||
}).toPromise().setContent('gaincardMultiple');
|
}).toPromise().setContent('gaincardMultiple');
|
||||||
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name, player)){
|
if(event.count>0&&player.hasSkill(event.name)&&!get.is.blocked(event.name, player)){
|
||||||
const { result: { bool: repeat } } = await player.promises.chooseBool(get.prompt2(event.name)).set('frequentSkill', event.name);
|
const {result:{bool:chooseBoolResultBool}}=await player.promises.chooseBool(get.prompt2(event.name)).set('frequentSkill',event.name);
|
||||||
if (repeat) {
|
if(chooseBoolResultBool) player.logSkill(event.name);
|
||||||
player.logSkill(event.name);
|
else return;
|
||||||
} else return;
|
|
||||||
}
|
}
|
||||||
else return;
|
else return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue