AI、技能调整
This commit is contained in:
parent
e00f1eaffc
commit
b14c5bf3fc
|
@ -392,7 +392,7 @@ character.extra={
|
|||
}
|
||||
}
|
||||
if(!hasfriend) return;
|
||||
if(player.hp>2&&ai.get.attitude(player,target<=0)) return [0,2];
|
||||
if(player.hp>2&&ai.get.attitude(player,target)<=0) return [0,2];
|
||||
return [1,0,0,-player.hp];
|
||||
}
|
||||
}
|
||||
|
@ -751,7 +751,7 @@ character.extra={
|
|||
if(lib.config.mode=='identity'){
|
||||
if(game.players[i].ai.shown<=0.2) return 0;
|
||||
}
|
||||
else if(lib.config.mode='guozhan'){
|
||||
else if(lib.config.mode=='guozhan'){
|
||||
if(game.players[i].identity=='unknown') return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -519,7 +519,7 @@ character.gujian={
|
|||
"step 2"
|
||||
if(player.isTurnedOver()) player.turnOver();
|
||||
"step 3"
|
||||
player.draw(event.num);
|
||||
player.draw(3);
|
||||
"step 4"
|
||||
player.recover(1-player.hp);
|
||||
player.removeSkill('fanshi');
|
||||
|
@ -1016,7 +1016,7 @@ character.gujian={
|
|||
fanshi_info:'锁定技,若你于回合内造成过伤害,你于弃牌阶段结束时流失一点体力并摸一张牌',
|
||||
shahun:'煞魂',
|
||||
shahun2:'煞魂',
|
||||
shahun_info:'限定技,濒死阶段,你可以重置武将牌,弃置所有牌并摸等量的牌(至少三张),然后将体力回复至1;若如此做,你失去技能【反噬】,并获得技能【绝境】,然后于三回合后立即死亡',
|
||||
shahun_info:'限定技,濒死阶段,你可以重置武将牌,弃置所有牌并摸三张牌,然后将体力回复至1;若如此做,你失去技能【反噬】,获得技能【绝境】,并于三回合后立即死亡',
|
||||
|
||||
xiuhua:'袖花',
|
||||
xiuhua_info:'每当你使用杀击中目标,你可以将其拉至你的旁边',
|
||||
|
|
|
@ -147,7 +147,11 @@ character.hearth={
|
|||
content:function(){
|
||||
"step 0";
|
||||
player.chooseTarget('是否发动【震击】?').ai=function(target){
|
||||
return ai.get.damageEffect(target,player,player,'thunder')-(target.num('he')?1:0);
|
||||
var eff=ai.get.damageEffect(target,player,player,'thunder');
|
||||
if(eff>0){
|
||||
return eff+(target.num('he')?1:0);
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
|
|
|
@ -135,8 +135,27 @@ character.mountain={
|
|||
"step 0"
|
||||
player.chooseToDiscard(true);
|
||||
"step 1"
|
||||
player.storage.fangquan.phase();
|
||||
var target=player.storage.fangquan;
|
||||
target.marks.fangquan=target.markCharacter(player,{
|
||||
name:'放权',
|
||||
content:'进行一个额外的回合'
|
||||
});
|
||||
target.phase();
|
||||
target.addSkill('fangquan3');
|
||||
player.removeSkill('fangquan2');
|
||||
delete player.storage.fangquan;
|
||||
}
|
||||
},
|
||||
fangquan3:{
|
||||
trigger:{player:'phaseAfter'},
|
||||
forced:true,
|
||||
popup:false,
|
||||
content:function(){
|
||||
if(player.marks.fangquan){
|
||||
player.marks.fangquan.delete();
|
||||
delete player.marks.fangquan;
|
||||
}
|
||||
player.removeSkill('fangquan3');
|
||||
}
|
||||
},
|
||||
ruoyu:{
|
||||
|
|
|
@ -1214,7 +1214,7 @@ character.sp={
|
|||
target.addSkill('yongjue');
|
||||
target.marks.yongjue=target.markCharacter(player,{
|
||||
name:'存嗣',
|
||||
content:'已获得技能【勇决】'
|
||||
content:'$<div><div class="skill">【勇决】</div><div>每当其他角色于回合内使用一张杀,若目标不是你,你可以获得之(每回合最多能以此法获得一张杀)</div></div>'
|
||||
})
|
||||
"step 1"
|
||||
player.turnOver();
|
||||
|
@ -2799,7 +2799,6 @@ character.sp={
|
|||
shoucheng_info:'每当一名其他角色在其回合外失去最后的手牌时,你可令该角色摸一张牌。',
|
||||
shengxi_info:'若你于出牌阶段未造成伤害,你可在弃牌阶段开始时摸两张牌。',
|
||||
hengzheng_info:'摸牌阶段开始时,若你的体力值为1或你没有手牌,你可以放弃摸牌,获得每名其他角色区域里的一张牌。',
|
||||
yongjue_info:'每当其他角色于回合内使用一张杀,若目标不是你,你可以获得之(每回合最多能以此法获得一张杀)',
|
||||
cunsi_info:'限定技,出牌阶段,你可以将所有手牌交给一名男性角色,令该角色获得技能【勇决】,然后翻面',
|
||||
guixiu_info:'每当你成为杀的目标,若你的手牌数小于体力值,可以摸一张牌',
|
||||
fenming_info:'结束阶段开始时,若你处于连环状态,你可以弃置处于连环状态的每名角色的一张牌。',
|
||||
|
|
|
@ -1327,7 +1327,7 @@ character.standard={
|
|||
return -3;
|
||||
}
|
||||
else{
|
||||
return ai.get.effect(ui.selected.targets[0],{name:'juedou'},target,target);
|
||||
return ai.get.effect(target,{name:'juedou'},ui.selected.targets[0],target);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -6109,7 +6109,10 @@ character.swd={
|
|||
lanzhi:{
|
||||
trigger:{source:'damageBefore'},
|
||||
filter:function(event,player){
|
||||
return player.skills.contains('lanzhi2')==false;
|
||||
return player.skills.contains('lanzhi2')==false&&event.player!=player;
|
||||
},
|
||||
prompt:function(event){
|
||||
return '是否对'+get.translation(event.player)+'发动【兰芷】?';
|
||||
},
|
||||
check:function(event,player){
|
||||
if(event.source==player){
|
||||
|
@ -7667,7 +7670,7 @@ character.swd={
|
|||
xiaozhan:'消战',
|
||||
xiaozhan_info:'其他角色使用杀时,若你不是杀的目标,可以弃置一张杀取消之',
|
||||
xielei:'挟雷',
|
||||
xielei_info:'每当你使用或打出一张杀,弃置一张牌并对目标以外的一名角色造成一点雷电伤害',
|
||||
xielei_info:'每当你使用或打出一张杀,可以弃置一张牌并对目标以外的一名角色造成一点雷电伤害',
|
||||
dangping:'荡平',
|
||||
dangping_info:'每当你造成一次伤害,可以弃置一张手牌对其距离1以内的另一名角色造成一点伤害',
|
||||
guisi:'归思',
|
||||
|
|
|
@ -359,12 +359,15 @@ character.xianjian={
|
|||
player.$throw(result.links);
|
||||
ui.discardPile.appendChild(result.links[0]);
|
||||
trigger.player.recover();
|
||||
trigger.player.draw();
|
||||
if(player!=trigger.player){
|
||||
player.draw();
|
||||
game.asyncDraw([trigger.player,player]);
|
||||
}
|
||||
player.logSkill('shuiyun5',trigger.player,'thunder');
|
||||
}
|
||||
"step 2"
|
||||
if(trigger.player!=player){
|
||||
game.delay();
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
expose:0.3
|
||||
|
@ -459,6 +462,10 @@ character.xianjian={
|
|||
target.gain(cards);
|
||||
target.addSkill('changnian2');
|
||||
player.logSkill('changnian',target);
|
||||
target.marks.changnian=target.markCharacter(player,{
|
||||
name:'长念',
|
||||
content:'$<div><div class="skill">【追思】</div><div>锁定技,回合结束阶段,你摸一张牌</div></div>'
|
||||
});
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
@ -1344,12 +1351,12 @@ character.xianjian={
|
|||
shuiyun2:'水蕴',
|
||||
shuiyun5:'水蕴',
|
||||
shuiyun3:'水蕴',
|
||||
shuiyun_info:'回合结束阶段,你可以将一张与武将牌上的牌类别均不相同的手牌置于武将牌上称为“蕴”;任意一名进入濒死状态时,你可以弃置一张“蕴”令其回复1点体力,然后与其各摸1张牌',
|
||||
shuiyun_info:'回合结束阶段,你可以将一张与武将牌上的牌类别均不相同的手牌置于武将牌上称为“蕴”;任意一名角色进入濒死状态时,你可以弃置一张“蕴”令其回复1点体力,若该角色不是你,你与其各摸1张牌',
|
||||
wangyou:'忘忧',
|
||||
wangyou_info:'其他角色的回合结束阶段,你可以弃置一张牌,令此回合内受过伤害的所有角色各摸一张牌',
|
||||
changnian:'长念',
|
||||
changnian2:'长念',
|
||||
changnian_info:'你死亡时,可以将所有牌交给一名其他角色,令其于每个回合结束阶段摸一张牌;若你有至少1张“蕴”,该角色增加1点体力上限回复X点体力,X为“蕴”的个数',
|
||||
changnian2:'追思',
|
||||
changnian_info:'你死亡时,可以将所有牌交给一名其他角色,令其获得技能【追思】;若你有至少1张“蕴”,该角色增加1点体力上限回复X点体力,X为“蕴”的个数',
|
||||
sajin:'洒金',
|
||||
sajin_info:'出牌阶段,你可以弃置一张手牌并指定任意名角色进行判定,若判定花色与你弃置的牌相同,该角色回复一点体力',
|
||||
jubao:'聚宝',
|
||||
|
|
18
game/game.js
18
game/game.js
|
@ -25,7 +25,6 @@
|
|||
frameId:0,
|
||||
},
|
||||
help:{
|
||||
'关于':'无名杀 1.2.3<div class="dashedline"></div><ul><li>1L 先谢神上<li>图片等素材来自网(shén)络(shā)<li>bug反馈/建议欢迎来百度无名杀吧',
|
||||
'选项帮助':'<ul><li>控制台命令:开启后可用浏览器控制台控制游戏<li>自动确认:开启后当候选目标仅有1个时点击目标无需再点击确定<li>悬停时间:弹出角色/卡牌介绍所需的等待时间<li>'+
|
||||
'触屏模式:可消除iOS等设备上300ms的点击延迟,但开启后无法使用鼠标<li>滚轮控制手牌:开启后滚轮可控制手牌的左右滚动,建议Mac等具备横向滚动功能的设备关闭此选项'+
|
||||
'<li>隐藏非全身皮肤:在新版布局中,若角色没有全身皮肤将被隐藏<li>游戏玩法:为游戏增加不同玩法,开启后可在帮助中查看介绍'+
|
||||
|
@ -1142,6 +1141,11 @@
|
|||
},
|
||||
useCard:function(){
|
||||
"step 0"
|
||||
if(!card){
|
||||
console.log('err: no card',get.translation(event.player));
|
||||
event.finish();
|
||||
return;
|
||||
}
|
||||
player.lose(cards);
|
||||
var cardaudio=true;
|
||||
if(event.skill){
|
||||
|
@ -6741,7 +6745,7 @@
|
|||
if(thisiscard){
|
||||
groupSort=function(name){
|
||||
if(lib.card[name[2]].type=='basic') return 0;
|
||||
if(lib.card[name[2]].type=='stone') return 0.5;
|
||||
if(lib.card[name[2]].type=='stonecard') return 0.5;
|
||||
if(lib.card[name[2]].type=='stonecharacter') return 1;
|
||||
if(lib.card[name[2]].type=='chess') return 1.5;
|
||||
if(lib.card[name[2]].type=='trick') return 2;
|
||||
|
@ -10401,7 +10405,7 @@
|
|||
if(sort=='type_sort'){
|
||||
func=function(card){
|
||||
if(get.type(card)=='basic') return 2;
|
||||
if(get.type(card)=='stone') return -0.5;
|
||||
if(get.type(card)=='stonecard') return -0.5;
|
||||
if(get.type(card)=='stonecharacter') return 1;
|
||||
if(get.type(card)=='chess') return 1.5;
|
||||
if(get.type(card)=='trick') return -1;
|
||||
|
@ -10603,7 +10607,8 @@
|
|||
uiintro.add('<div><div class="skill">【'+translation+'】</div><div>'+'已禁用'+'</div></div>');
|
||||
}
|
||||
}
|
||||
if(!simple){
|
||||
// if(!simple)
|
||||
if(false){
|
||||
var storage=node.storage;
|
||||
for(i in storage){
|
||||
if(get.info(i)&&get.info(i).intro){
|
||||
|
@ -10685,7 +10690,10 @@
|
|||
else{
|
||||
var stint=get.storageintro(info.content,player.storage[node.skill],player,uiintro);
|
||||
if(stint){
|
||||
if(stint.length<=10){
|
||||
if(stint[0]=='$'){
|
||||
uiintro.add('<div class="caption">'+stint.slice(1)+'</div>');
|
||||
}
|
||||
else if(stint.length<=10){
|
||||
uiintro.add('<div class="text center">'+stint+'</div>');
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -1766,7 +1766,7 @@ mode.chess={
|
|||
chess_taishici:['male','wu',4,['guanchuan','pojun']],
|
||||
//
|
||||
// chess_lvbu:['male','qun',3,['']],
|
||||
chess_sunshangxiang:['female','wu',3,['lingdong','lianshe']],
|
||||
chess_sunshangxiang:['female','wu',3,['lingdong','lianshe','gongji']],
|
||||
chess_diaochan:['female','qun',3,['xingzhui','pianyi']],
|
||||
chess_huatuo:['male','qun',3,['zhenjiu','mazui']],
|
||||
// chess_zhangjiao:['male','qun',3,['']],
|
||||
|
|
|
@ -513,7 +513,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
zhaohunfan:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
fullskin:true,
|
||||
enable:true,
|
||||
stoneact:2,
|
||||
|
@ -546,7 +546,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
jintiao:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:2,
|
||||
fullskin:true,
|
||||
|
@ -572,7 +572,7 @@ mode.stone={
|
|||
},
|
||||
liumangxingzhen:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
filterTarget:function(card,player,target){
|
||||
return target.isMin();
|
||||
|
@ -597,7 +597,7 @@ mode.stone={
|
|||
},
|
||||
shengerpingdeng:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:2,
|
||||
filterTarget:function(card,player,target){
|
||||
|
@ -620,7 +620,7 @@ mode.stone={
|
|||
},
|
||||
emofengdi:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:function(event,player){
|
||||
if(player.isMin()) return false;
|
||||
return player.canAddFellow();
|
||||
|
@ -644,7 +644,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
konghunshi:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
fullskin:true,
|
||||
enable:function(event,player){
|
||||
if(player.isMin()) return false;
|
||||
|
@ -671,7 +671,7 @@ mode.stone={
|
|||
},
|
||||
mindieyi:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:3,
|
||||
filterTarget:function(card,player,target){
|
||||
|
@ -692,7 +692,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
miefafu:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:2,
|
||||
fullskin:true,
|
||||
|
@ -714,9 +714,9 @@ mode.stone={
|
|||
},
|
||||
dianhaishenzhu:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:3,
|
||||
stoneact:1,
|
||||
filterTarget:function(card,player,target){
|
||||
return target.isMin()&&target.side==player.side&&!target.skills.contains('chaofeng');
|
||||
},
|
||||
|
@ -738,7 +738,7 @@ mode.stone={
|
|||
},
|
||||
yesushengxue:{
|
||||
fullskin:true,
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
enable:true,
|
||||
stoneact:4,
|
||||
filterTarget:function(card,player,target){
|
||||
|
@ -760,7 +760,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
sanghunzhao:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
fullskin:true,
|
||||
enable:true,
|
||||
stoneact:3,
|
||||
|
@ -785,7 +785,7 @@ mode.stone={
|
|||
}
|
||||
},
|
||||
fengraozhijiao:{
|
||||
type:'stone',
|
||||
type:'stonecard',
|
||||
fullskin:true,
|
||||
enable:true,
|
||||
stoneact:1,
|
||||
|
@ -1433,6 +1433,8 @@ mode.stone={
|
|||
zhaohunfan_info:'令双方各一名随从立即死亡',
|
||||
fengraozhijiao:'丰饶之角',
|
||||
fengraozhijiao_info:'令一名随从回复一点体力',
|
||||
|
||||
stonecard:'法术'
|
||||
},
|
||||
ai:{
|
||||
get:{
|
||||
|
@ -1455,7 +1457,7 @@ mode.stone={
|
|||
'<li>牌堆中随机加入总量1/3的随从牌,使用之可召唤一个随从,随从出场时背面朝上。每一方在场的随从数不能超过4<li>随从于摸牌阶段摸牌基数为1,随从的随从牌均视为闪,装备牌均视为杀<li>'+
|
||||
'随从与其他所有角色相互距离基数为1<li>'+
|
||||
'主将杀死对方随从后获得一个额外的行动值并摸两张牌,杀死己方随从无惩罚,随从杀死随从无效果'+
|
||||
'<li>牌堆中随机加入总量1/6的炉石牌,效果主要与随从有关,炉石牌根据强度不同可能会消耗额外的行动值'+
|
||||
'<li>牌堆中随机加入总量1/6的法术牌,效果主要与随从有关,法术牌根据强度不同可能会消耗额外的行动值'+
|
||||
'<li>主将可重铸装备牌和随从牌,但回合内总的重铸次数不能超过3,随从不能重铸任何牌(包括铁索等默认可以重铸的牌)'+
|
||||
'<li>嘲讽:若一方阵营中有嘲讽角色,则同阵营的无嘲讽角色不以能成为杀或决斗的目标'+
|
||||
'<li>行动顺序为先主将后随从。主将或随从死亡后立即移出游戏,主将死亡后替补登场,替补登场时摸2+X张牌,X为对方存活的随从数,无替补时游戏结束'
|
||||
|
|
Loading…
Reference in New Issue