This commit is contained in:
libccy 2016-07-02 11:05:40 +08:00
parent 04c4c04293
commit d57882d314
7 changed files with 522 additions and 485 deletions

View File

@ -1,86 +1,5 @@
card.swd={
card:{
lingjiandai:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].type=='hslingjian'){
list.push(i);
}
}
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
jiguanshu:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].type=='hslingjian'){
list.push(i);
}
}
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
mujiaren:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].type=='hslingjian'){
list.push(i);
}
}
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
xingjunyan:{
fullskin:true,
type:'equip',
@ -719,34 +638,6 @@ card.swd={
},
},
skill:{
mujiaren:{},
_lingjianduanzao:{
enable:'phaseUse',
check:function(card){
return 1+ai.get.value(card);
},
lose:true,
discard:false,
process:function(cards){
},
selectCard:2,
filter:function(event,player){
return player.num('h',{type:'equip'})&&player.num('h',{type:'hslingjian'});
},
prepare:function(cards,player){
player.$throw(cards);
},
content:function(){
},
ai:{
result:{
player:1,
order:10,
}
}
},
qinglonglingzhu:{
trigger:{source:'damageEnd'},
direct:true,
@ -1234,63 +1125,6 @@ card.swd={
},
},
translate:{
hslingjian_xuanfengzhiren_duanzao:'旋风',
hslingjian_xuanfengzhiren_duanzao2:'风',
hslingjian_xuanfengzhiren_equip1:'随机弃置一名角色的一张牌',
hslingjian_xuanfengzhiren_equip2:'随机弃置一名角色的一张牌',
hslingjian_xuanfengzhiren_equip3:'随机弃置一名角色的一张牌',
hslingjian_xuanfengzhiren_equip4:'随机弃置一名角色的一张牌',
hslingjian_xuanfengzhiren_equip5:'随机弃置一名角色的一张牌',
hslingjian_zhongxinghujia_duanzao:'重甲',
hslingjian_zhongxinghujia_duanzao2:'护',
hslingjian_zhongxinghujia_equip1:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_zhongxinghujia_equip2:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_zhongxinghujia_equip3:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_zhongxinghujia_equip4:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_zhongxinghujia_equip5:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_jinjilengdong_duanzao:'冷冻',
hslingjian_jinjilengdong_duanzao2:'冰',
hslingjian_jinjilengdong_equip1:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_jinjilengdong_equip2:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_jinjilengdong_equip3:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_jinjilengdong_equip4:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_jinjilengdong_equip5:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_yinmilichang_duanzao:'隐秘',
hslingjian_yinmilichang_duanzao2:'隐秘',
hslingjian_yinmilichang_equip1:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_yinmilichang_equip2:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_yinmilichang_equip3:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_yinmilichang_equip4:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_yinmilichang_equip5:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_xingtigaizao_duanzao:'移形',
hslingjian_xingtigaizao_duanzao2:'形',
hslingjian_xingtigaizao_equip1:'摸一张牌,本回合手牌上限-1',
hslingjian_xingtigaizao_equip2:'摸一张牌,本回合手牌上限-1',
hslingjian_xingtigaizao_equip3:'摸一张牌,本回合手牌上限-1',
hslingjian_xingtigaizao_equip4:'摸一张牌,本回合手牌上限-1',
hslingjian_xingtigaizao_equip5:'摸一张牌,本回合手牌上限-1',
hslingjian_shengxiuhaojiao_duanzao:'号角',
hslingjian_shengxiuhaojiao_duanzao2:'角',
hslingjian_shengxiuhaojiao_equip1:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shengxiuhaojiao_equip2:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shengxiuhaojiao_equip3:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shengxiuhaojiao_equip4:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shengxiuhaojiao_equip5:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shijianhuisu_duanzao:'回溯',
hslingjian_shijianhuisu_duanzao2:'溯',
hslingjian_shijianhuisu_equip1:'令一名其他角色将其装备牌收回手牌',
hslingjian_shijianhuisu_equip2:'令一名其他角色将其装备牌收回手牌',
hslingjian_shijianhuisu_equip3:'令一名其他角色将其装备牌收回手牌',
hslingjian_shijianhuisu_equip4:'令一名其他角色将其装备牌收回手牌',
hslingjian_shijianhuisu_equip5:'令一名其他角色将其装备牌收回手牌',
_lingjianduanzao:'煅造',
_lingjianduanzao_info:'出牌阶段你可以选择手牌中的一张零件牌和一张装备牌将它们合成为一件强化装备并装备给距离1以内的一名角色',
jiguanshu:'机关鼠',
jiguanshu_info:'出牌阶段对距离1以内的一名角色使用用随机零件强化目标装备区内的装备',
lingjiandai:'零件袋',
lingjiandai_info:'出牌阶段对距离1以内的一名角色使用目标获得3张随机零件',
mujiaren:'木甲人',
mujiaren_info:'出牌阶段对距离1以内的一名角色使用在本局游戏中目标在煅造装备时可以额外加入一个零件',
qinglonglingzhu:'青龙灵珠',
qinglonglingzhu_info:'每当你造成一次属性伤害,你可以获得对方的一张牌',
xingjunyan:'星君眼',

View File

@ -1,5 +1,81 @@
card.yunchou={
card:{
lingjiandai:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=get.typeCard('hslingjian');
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
jiguanshu:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].type=='hslingjian'){
list.push(i);
}
}
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
mujiaren:{
fullskin:true,
enable:true,
type:'basic',
range:{global:1},
filterTarget:true,
content:function(){
var list=[];
for(var i in lib.card){
if(lib.card[i].type=='hslingjian'){
list.push(i);
}
}
if(list.length){
list=list.randomGets(3);
for(var i=0;i<list.length;i++){
list[i]=game.createCard(list[i]);
}
}
target.gain(list,'gain2');
},
ai:{
result:{
target:1
}
}
},
suolianjia:{
fullskin:true,
type:"equip",
@ -677,8 +753,302 @@ card.yunchou={
}
}
},
hslingjian_xuanfengzhiren:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return target.num('he')>0;
},
content:function(){
target.discard(target.get('he').randomGet());
},
ai:{
order:10.1,
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_zhongxinghujia:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:true,
content:function(){
'step 0'
var list=[];
for(var i=0;i<lib.inpile.length;i++){
if(lib.card[lib.inpile[i]].subtype=='equip2'){
list.push(lib.inpile[i]);
}
}
if(list.length){
var card=game.createCard(list.randomGet());
target.$draw(card);
game.delay();
target.equip(card);
}
'step 1'
var hs=target.get('h');
if(hs.length){
target.discard(hs.randomGet());
}
},
ai:{
order:1,
result:{
target:function(player,target){
if(target.get('e','2')){
if(target.num('h')) return -0.6;
return 0;
}
else{
if(target.num('h')) return 0.5;
return 1;
}
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_xingtigaizao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
content:function(){
target.draw();
target.addSkill('hslingjian_xingtigaizao');
if(typeof target.storage.hslingjian_xingtigaizao=='number'){
target.storage.hslingjian_xingtigaizao++;
}
else{
target.storage.hslingjian_xingtigaizao=1;
}
},
ai:{
order:1,
result:{
target:function(player,target){
if(target.num('h')<target.hp) return 1;
return 0;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shijianhuisu:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return target!=player&&target.num('e')>0;
},
content:function(){
var es=target.get('e');
target.gain(es);
target.$gain2(es);
},
ai:{
order:5,
result:{
target:function(player,target){
if(target.hasSkillTag('noe')) return target.num('e')*2;
return -target.num('e');
}
},
useful:[2,0.5],
value:[2,0.5],
tag:{
loseCard:1,
}
}
},
hslingjian_jinjilengdong:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return !target.isTurnedOver()&&target!=player;
},
content:function(){
target.draw(2);
target.turnOver();
},
ai:{
order:2,
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shengxiuhaojiao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return !target.hasSkill('hslingjian_chaofeng');
},
content:function(){
target.addTempSkill('hslingjian_chaofeng',{player:'phaseBegin'});
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.num('h')<=target.hp) return -0.1;
return -1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_yinmilichang:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:true,
filterTarget:function(card,player,target){
return player!=target&&!target.hasSkill('hslingjian_yinshen');
},
content:function(){
target.addTempSkill('hslingjian_yinshen',{player:'phaseBegin'});
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.hp==1) return 2;
if(target.hp==2&&target.num('h')<=2) return 1.2;
return 1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
},
skill:{
mujiaren:{},
_lingjianduanzao:{
enable:'phaseUse',
check:function(card){
return 1+ai.get.value(card);
},
lose:true,
discard:false,
process:function(cards){
},
selectCard:2,
filter:function(event,player){
return player.num('h',{type:'equip'})&&player.num('h',{type:'hslingjian'});
},
prepare:function(cards,player){
player.$throw(cards);
},
content:function(){
},
ai:{
result:{
player:1,
order:10,
}
}
},
hslingjian_yinshen:{
mark:true,
nopop:true,
intro:{
content:'锁定技,你不能成为其他角色的卡牌的目标'
},
mod:{
targetEnabled:function(card,player,target){
if(player!=target) return false;
}
}
},
hslingjian_chaofeng:{
global:'hslingjian_chaofeng_disable',
nopop:true,
unique:true,
gainnable:true,
mark:true,
intro:{
content:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
},
subSkill:{
disable:{
mod:{
targetEnabled:function(card,player,target){
if(player.skills.contains('hslingjian_chaofeng')) return;
if(card.name=='sha'){
if(target.skills.contains('hslingjian_chaofeng')) return;
for(var i=0;i<game.players.length;i++){
if(game.players[i].skills.contains('hslingjian_chaofeng')){
if(game.players[i].hp<game.players[i].num('h')&&
get.distance(player,game.players[i],'attack')<=1){
return false;
}
}
}
}
}
}
}
}
},
hslingjian_xingtigaizao:{
nopop:true,
mod:{
maxHandcard:function(player,num){
if(typeof player.storage.hslingjian_xingtigaizao=='number'){
return num-player.storage.hslingjian_xingtigaizao;
}
},
},
mark:true,
intro:{
content:function(storage){
return '手牌上限-'+storage;
}
},
trigger:{player:'phaseEnd'},
forced:true,
popup:false,
silent:true,
content:function(){
player.removeSkill('hslingjian_xingtigaizao');
player.storage.hslingjian_xingtigaizao=0;
}
},
suolianjia:{
trigger:{player:'damageBefore'},
filter:function(event){
@ -777,7 +1147,86 @@ card.yunchou={
check:function(){return 1},
},
},
cardType:{
hslingjian:0.5,
},
translate:{
hslingjian_xuanfengzhiren_duanzao:'旋风',
hslingjian_xuanfengzhiren_duanzao2:'风',
hslingjian_xuanfengzhiren_equip1_info:'每当你用杀造成一次伤害,受伤害角色随机弃置一张牌',
hslingjian_xuanfengzhiren_equip2_info:'每当你受到杀造成的伤害,伤害来源随机弃置一张牌',
hslingjian_xuanfengzhiren_equip3_info:'当你于回合外失去牌后,你本回合的防御距离+1',
hslingjian_xuanfengzhiren_equip4_info:'当你于回合内失去牌后,你本回合的进攻距离+1',
hslingjian_xuanfengzhiren_equip5_info:'出牌阶段限一次,你可以弃置一张牌,然后随机弃置一名其他角色的一张牌',
hslingjian_zhongxinghujia_duanzao:'重甲',
hslingjian_zhongxinghujia_duanzao2:'护',
hslingjian_zhongxinghujia_equip1_info:'每当你用杀造成一次伤害,你可以弃置目标的防具牌',
hslingjian_zhongxinghujia_equip2_info:'每当你受到杀造成的伤害,你可以随机装备一防具牌',
hslingjian_zhongxinghujia_equip3_info:'当你的装备区内有防具牌时,你的防御距离+1',
hslingjian_zhongxinghujia_equip4_info:'当你的装备区内有防具牌时,你的进攻距离+1',
hslingjian_zhongxinghujia_equip5_info:'出牌阶段限一次,你可以弃置两张牌,然后令一名角色随机装备一件防具',
hslingjian_jinjilengdong_duanzao:'冷冻',
hslingjian_jinjilengdong_duanzao2:'冰',
hslingjian_jinjilengdong_equip1_info:'每当你用杀造成一次伤害,若受伤害角色武将牌正面朝上,你可以令其摸两张牌并翻面',
hslingjian_jinjilengdong_equip2_info:'每当你受到杀造成的伤害,若伤害来源武将牌正面朝上,你可以令其摸两张牌并翻面',
hslingjian_jinjilengdong_equip3_info:'你的武将牌背面朝上时防御距离+2',
hslingjian_jinjilengdong_equip4_info:'你的武将牌背面朝上时进攻距离+2',
hslingjian_jinjilengdong_equip5_info:'回合结束后,若你的武将牌正面朝上,你可以与一名武将牌正面朝上的其他角色同时翻面,然后各摸两张牌',
hslingjian_yinmilichang_duanzao:'隐秘',
hslingjian_yinmilichang_duanzao2:'隐秘',
hslingjian_yinmilichang_equip1_info:'每当你用杀造成一次伤害,你获得潜行直到下一回合开始',
hslingjian_yinmilichang_equip2_info:'每当你受到杀造成的伤害,你本回合内获得潜行',
hslingjian_yinmilichang_equip3_info:'当你的体力值为1时你的防御距离+1',
hslingjian_yinmilichang_equip4_info:'当你的体力值为1时你的进攻距离+1',
hslingjian_yinmilichang_equip5_info:'当你没有手牌时,你不能成为杀或决斗的目标',
hslingjian_xingtigaizao_duanzao:'移形',
hslingjian_xingtigaizao_duanzao2:'形',
hslingjian_xingtigaizao_equip1_info:'每当你用杀造成一次伤害,你摸一张牌',
hslingjian_xingtigaizao_equip2_info:'每当你受到杀造成的伤害,你摸一张牌',
hslingjian_xingtigaizao_equip3_info:'你的防御距离+1进攻距离-1',
hslingjian_xingtigaizao_equip4_info:'你的防御距离-1进攻距离+1',
hslingjian_xingtigaizao_equip5_info:'你于摸牌阶段额外摸一张牌;你的手牌上限-1',
hslingjian_shengxiuhaojiao_duanzao:'号角',
hslingjian_shengxiuhaojiao_duanzao2:'角',
hslingjian_shengxiuhaojiao_equip1_info:'有嘲讽的角色不能闪避你的杀',
hslingjian_shengxiuhaojiao_equip2_info:'有嘲讽的角色不能对你使用杀',
hslingjian_shengxiuhaojiao_equip3_info:'若你的手牌数大于你的体力值,你的防御距离+1',
hslingjian_shengxiuhaojiao_equip4_info:'若你的手牌数大于你的体力值,你的进攻距离+1',
hslingjian_shengxiuhaojiao_equip5_info:'出牌阶段限一次,你可以弃置一张牌,然后令一名角色获得或解除嘲讽',
hslingjian_shijianhuisu_duanzao:'回溯',
hslingjian_shijianhuisu_duanzao2:'溯',
hslingjian_shijianhuisu_equip1_info:'每当你使用杀指定目标后,你可以选择目标装备区内的一张牌,令其将此装备收回手牌',
hslingjian_shijianhuisu_equip2_info:'每当你成为杀的目标后,你可以选择使用者装备区内的一张牌,令其将此装备收回手牌,且本回合内不能再次装备',
hslingjian_shijianhuisu_equip3_info:'当你的装备区内没有其他牌时,你的防御距离+1',
hslingjian_shijianhuisu_equip4_info:'当你的装备区内没有其他牌时,你的进攻距离+1',
hslingjian_shijianhuisu_equip5_info:'出牌阶段限一次,你可以弃置一张牌,然后令一名其他角色将其装备区内的牌收回手牌',
_lingjianduanzao:'煅造',
_lingjianduanzao_info:'出牌阶段你可以选择手牌中的一张零件牌和一张装备牌将它们合成为一件强化装备强化装备可以装备给距离1以内的角色',
jiguanshu:'机关鼠',
jiguanshu_info:'出牌阶段对距离1以内的一名角色使用用随机零件强化目标装备区内的装备',
lingjiandai:'零件袋',
lingjiandai_info:'出牌阶段对距离1以内的一名角色使用目标获得3张随机零件',
mujiaren:'木甲人',
mujiaren_info:'出牌阶段对距离1以内的一名角色使用在本局游戏中目标可以二次煅造装备',
hslingjian:'零件',
hslingjian_xuanfengzhiren:'旋风之刃',
hslingjian_xuanfengzhiren_info:'随机弃置一名角色的一张牌',
hslingjian_zhongxinghujia:'重型护甲',
hslingjian_zhongxinghujia_info:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_jinjilengdong:'紧急冷冻',
hslingjian_jinjilengdong_info:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_yinmilichang:'隐秘力场',
hslingjian_yinmilichang_info:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_xingtigaizao:'型体改造',
hslingjian_xingtigaizao_info:'摸一张牌,本回合手牌上限-1',
hslingjian_shengxiuhaojiao:'生锈号角',
hslingjian_shengxiuhaojiao_info:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shijianhuisu:'时间回溯',
hslingjian_shijianhuisu_info:'令一名其他角色将其装备牌收回手牌',
hslingjian_chaofeng:'嘲讽',
hslingjian_chaofeng_info:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
hslingjian_yinshen:'潜行',
hslingjian_yinshen_info:'锁定技,你不能成为其他角色的卡牌的目标',
suolianjia:'锁链甲',
suolianjia_info:'锁定技,你防止即将受到的属性伤害,当装备时进入连环状态,当卸下时解除连环状态',
suolianjia_bg:'链',

View File

@ -353,6 +353,9 @@ character.hearth={
frequent:true,
content:function(){
var list=['hsdusu_xueji','hsdusu_huangxuecao','hsdusu_kuyecao','hsdusu_shinancao','hsdusu_huoyanhua'];
if(typeof lib.cardType.hslingjian!='number'){
list.remove('hsdusu_kuyecao');
}
var name=list.randomGet();
if(name=='hsdusu_huoyanhua'){
player.gain(game.createCard({name:name,nature:'fire'}),'draw');
@ -428,7 +431,7 @@ character.hearth={
trigger:{player:'equipEnd'},
frequent:true,
filter:function(event){
return get.subtype(event.card)=='equip1'
return get.subtype(event.card)=='equip1'&&typeof lib.cardType.hslingjian=='number';
},
content:function(){
var num=1;
@ -449,72 +452,6 @@ character.hearth={
},
threaten:1.3
},
hslingjian_yinshen:{
mark:true,
nopop:true,
intro:{
content:'锁定技,你不能成为其他角色的卡牌的目标'
},
mod:{
targetEnabled:function(card,player,target){
if(player!=target) return false;
}
}
},
hslingjian_chaofeng:{
global:'hslingjian_chaofeng_disable',
nopop:true,
unique:true,
gainnable:true,
mark:true,
intro:{
content:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
},
subSkill:{
disable:{
mod:{
targetEnabled:function(card,player,target){
if(player.skills.contains('hslingjian_chaofeng')) return;
if(card.name=='sha'){
if(target.skills.contains('hslingjian_chaofeng')) return;
for(var i=0;i<game.players.length;i++){
if(game.players[i].skills.contains('hslingjian_chaofeng')){
if(game.players[i].hp<game.players[i].num('h')&&
get.distance(player,game.players[i],'attack')<=1){
return false;
}
}
}
}
}
}
}
}
},
hslingjian_xingtigaizao:{
nopop:true,
mod:{
maxHandcard:function(player,num){
if(typeof player.storage.hslingjian_xingtigaizao=='number'){
return num-player.storage.hslingjian_xingtigaizao;
}
},
},
mark:true,
intro:{
content:function(storage){
return '手牌上限-'+storage;
}
},
trigger:{player:'phaseEnd'},
forced:true,
popup:false,
silent:true,
content:function(){
player.removeSkill('hslingjian_xingtigaizao');
player.storage.hslingjian_xingtigaizao=0;
}
},
zengli:{
enable:'phaseUse',
usable:1,
@ -3864,7 +3801,6 @@ character.hearth={
cardType:{
hsmengjing:0.5,
hsbaowu:0.5,
hslingjian:0.5,
hsdusu:0.5,
hsshenqi:0.5,
},
@ -3999,206 +3935,6 @@ character.hearth={
value:5,
}
},
hslingjian_xuanfengzhiren:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return target.num('he')>0;
},
content:function(){
target.discard(target.get('he').randomGet());
},
ai:{
order:10.1,
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_zhongxinghujia:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:true,
content:function(){
'step 0'
var list=[];
for(var i=0;i<lib.inpile.length;i++){
if(lib.card[lib.inpile[i]].subtype=='equip2'){
list.push(lib.inpile[i]);
}
}
if(list.length){
var card=game.createCard(list.randomGet());
target.$draw(card);
game.delay();
target.equip(card);
}
'step 1'
var hs=target.get('h');
if(hs.length){
target.discard(hs.randomGet());
}
},
ai:{
order:1,
result:{
target:function(player,target){
if(target.get('e','2')){
if(target.num('h')) return -0.6;
return 0;
}
else{
if(target.num('h')) return 0.5;
return 1;
}
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_xingtigaizao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
content:function(){
target.draw();
target.addSkill('hslingjian_xingtigaizao');
if(typeof target.storage.hslingjian_xingtigaizao=='number'){
target.storage.hslingjian_xingtigaizao++;
}
else{
target.storage.hslingjian_xingtigaizao=1;
}
},
ai:{
order:1,
result:{
target:function(player,target){
if(target.num('h')<target.hp) return 1;
return 0;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shijianhuisu:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return target!=player&&target.num('e')>0;
},
content:function(){
var es=target.get('e');
target.gain(es);
target.$gain2(es);
},
ai:{
order:5,
result:{
target:function(player,target){
if(target.hasSkillTag('noe')) return target.num('e')*2;
return -target.num('e');
}
},
useful:[2,0.5],
value:[2,0.5],
tag:{
loseCard:1,
}
}
},
hslingjian_jinjilengdong:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return !target.isTurnedOver()&&target!=player;
},
content:function(){
target.draw(2);
target.turnOver();
},
ai:{
order:2,
result:{
target:-1,
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_shengxiuhaojiao:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return !target.hasSkill('hslingjian_chaofeng');
},
content:function(){
target.addTempSkill('hslingjian_chaofeng',{player:'phaseBegin'});
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.num('h')<=target.hp) return -0.1;
return -1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hslingjian_yinmilichang:{
type:'hslingjian',
fullimage:true,
vanish:true,
enable:true,
derivation:'hs_blingtron',
filterTarget:function(card,player,target){
return player!=target&&!target.hasSkill('hslingjian_yinshen');
},
content:function(){
target.addTempSkill('hslingjian_yinshen',{player:'phaseBegin'});
},
ai:{
order:2,
result:{
target:function(player,target){
if(get.distance(player,target,'absolute')<=1) return 0;
if(target.hp==1) return 2;
if(target.hp==2&&target.num('h')<=2) return 1.2;
return 1;
}
},
useful:[2,0.5],
value:[2,0.5],
}
},
hsbaowu_cangbaotu:{
type:'hsbaowu',
fullimage:true,
@ -4691,25 +4427,6 @@ character.hearth={
hsbaowu_huangjinyuanhou_info:'回复全部体力,弃置所有手牌,并获得等量的无中生有;直到下个回合开始,防上即将受到的一切伤害',
hsbaowu_cangbaotu:'藏宝图',
hsbaowu_cangbaotu_info:'回合结束阶段,将一张黄金猿猴置入你的手牌;摸一张牌',
hslingjian:'零件',
hslingjian_xuanfengzhiren:'旋风之刃',
hslingjian_xuanfengzhiren_info:'随机弃置一名角色的一张牌',
hslingjian_zhongxinghujia:'重型护甲',
hslingjian_zhongxinghujia_info:'令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_jinjilengdong:'紧急冷冻',
hslingjian_jinjilengdong_info:'令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_yinmilichang:'隐秘力场',
hslingjian_yinmilichang_info:'令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_xingtigaizao:'型体改造',
hslingjian_xingtigaizao_info:'摸一张牌,本回合手牌上限-1',
hslingjian_shengxiuhaojiao:'生锈号角',
hslingjian_shengxiuhaojiao_info:'令一名角色获得技能嘲讽,直到其下一回合开始',
hslingjian_shijianhuisu:'时间回溯',
hslingjian_shijianhuisu_info:'令一名其他角色将其装备牌收回手牌',
hslingjian_chaofeng:'嘲讽',
hslingjian_chaofeng_info:'锁定技,若你的手牌数大于你的体力值,则只要你在任一其他角色的攻击范围内,该角色使用【杀】时便不能指定你以外的角色为目标',
hslingjian_yinshen:'潜行',
hslingjian_yinshen_info:'锁定技,你不能成为其他角色的卡牌的目标',
shifa:'嗜法',
shifa_info:'锁定技,出牌阶段开始时,你令场上所有角色各获得一张随机锦囊牌',

View File

@ -3716,7 +3716,7 @@ character.sp={
player.discard(player.get('he'));
}
else if(num){
player.chooseToDiscard(num,true);
player.chooseToDiscard('he',num,true);
}
player.removeSkill('kuiwei2');
}

View File

@ -3857,7 +3857,7 @@ character.swd={
inherit:'tuoqiao'
},
qiaoxie:{
group:['xiaoji2','xuanfeng2'],
group:['qiaoxie2','qiaoxie3'],
ai:{
effect:{
target:function(card,player,target,current){
@ -3866,7 +3866,7 @@ character.swd={
}
}
},
xiaoji2:{
qiaoxie2:{
trigger:{player:'equipEnd'},
frequent:true,
//filter:function(event,player){
@ -3908,7 +3908,7 @@ character.swd={
expose:0.2
}
},
xuanfeng2:{
qiaoxie3:{
trigger:{player:['loseEnd']},
direct:true,
filter:function(event,player){
@ -3929,11 +3929,31 @@ character.swd={
};
"step 1"
if(result.bool){
player.logSkill('xuanfeng2',result.targets);
player.logSkill('qiaoxie3',result.targets);
player.discardPlayerCard(result.targets[0],'he',true);
}
else{
event.finish();
}
"step 2"
player.gain(game.createCard(get.typeCard('hslingjian').randomGet()),'gain2');
},
},
qiaoxie4:{
trigger:{player:['loseEnd']},
frequent:true,
filter:function(event,player){
if(typeof lib.cardType.hslingjian!='number') return false;
if(!player.equiping) return false;
for(var i=0;i<event.cards.length;i++){
if(event.cards[i].original=='e') return true;
}
return false;
},
content:function(){
player.gain(game.createCard(get.typeCard('hslingjian').randomGet()),'gain2');
}
},
meihuo:{
trigger:{player:['loseEnd']},
direct:true,
@ -4526,25 +4546,7 @@ character.swd={
return 8-ai.get.value(card);
},
content:function(){
for(var i=0;i<ui.cardPile.childNodes.length;i++){
if(get.type(ui.cardPile.childNodes[i])=='equip'){
player.gain(ui.cardPile.childNodes[i]);
player.$gain(ui.cardPile.childNodes[i]);
game.delay();
event.finish();
return;
}
}
for(var i=0;i<ui.discardPile.childNodes.length;i++){
if(get.type(ui.discardPile.childNodes[i])=='equip'){
player.gain(ui.discardPile.childNodes[i]);
player.$gain(ui.discardPile.childNodes[i]);
game.delay();
event.finish();
return;
}
}
player.draw();
player.gain(game.createCard(get.inpile('equip').randomGet()),'gain');
},
ai:{
result:{
@ -8038,8 +8040,9 @@ character.swd={
suiyan_info:'每当你造成一次伤害,可以弃置一张牌并弃置对方的全部装备牌',
xianyin:'散结',
qiaoxie:'巧械',
xiaoji2:'巧械',
xuanfeng2:'巧械',
qiaoxie2:'巧械',
qiaoxie3:'巧械',
qiaoxie4:'巧械',
mailun:'脉轮',
mailun31:'脉轮',
mailun32:'脉轮',
@ -8059,7 +8062,7 @@ character.swd={
kunlunjing_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束时的位置,然后弃置一张手牌',
swd_xiuluo_info:'回合开始阶段,你可以弃一张手牌来弃置你判断区里的一张延时类锦囊(必须花色相同)',
xianyin_info:'出牌阶段,你可以令所有判定区内有牌的角色弃置判定区内的牌,然后交给你一张手牌',
qiaoxie_info:'每当你装备一张牌,可摸一张牌每当你失去一张装备牌(不含替换),你可以弃置其他角色的一张牌',
qiaoxie_info:'每当你装备一张牌,可摸一张牌每当你失去一张装备牌(不含替换),你可以弃置其他角色的一张牌,然后获得一个随机零件',
mailun_info:'回合开始阶段,你可以选择一个脉轮效果直到下一回合开始',
guiyan_info:'出牌阶段,你可以观看一名角色的手牌,并获得其中一张梅花牌,每阶段限一次。当你首次进入濒死状态时,你须回复一点体力并失去技能鬼眼',
busi_info:'锁定技当你进入濒死状态时你进行一次判定若结果不为黑桃你将体力回复至1并将武将牌翻至背面',
@ -8090,8 +8093,8 @@ character.swd={
swd_wuxie_info:'锁定技,你不能成为其他角色的延时锦囊的目标',
qingcheng_info:'回合结束阶段你可以进行判定若为红色则可以继续判定最多判定3次判定结束后将判定成功的牌收入手牌',
xianjiang_info:'出牌阶段,你可以将一张装备牌永久转化为任意一张其它装备牌,一张牌在一个阶段只能转化一次',
xianjiang3_info:'出牌阶段,若你装备区内没有牌,你可以弃置一张锦囊牌,并从牌堆中随机获得一张装备牌,若牌堆中没有装备牌,你摸一张牌,每阶段限一次',
shengong_info:'每当你需要打出一张杀或闪时,你可以弃置一名角色装备区内的一张武器牌或防具牌,视为打出一张杀或闪,然后该角色摸一张牌,你弃一张牌',
xianjiang3_info:'出牌阶段限一次,若你装备区内没有牌,你可以弃置一张锦囊牌,并随机获得一张装备牌',
shengong_info:'每当你需要打出一张杀或闪时,你可以弃置一名其他角色装备区内的一张武器牌或防具牌,视为打出一张杀或闪,然后该角色摸一张牌,你弃一张牌',
ningjian_info:'你可以将一张红色牌当闪、黑色牌当杀使用或打出',
taixu_info:'限定技你可以弃置你的所有牌至少1张并对一名体力值大于1为其他角色造成X点火焰伤害X为你已损失的体力值且至少为1',
duoren_info:'每当你闪避一张杀,你可以立即获得来源的武器牌',

View File

@ -3863,7 +3863,7 @@
}
if(lib.cardPack.mode_derivation){
for(var i=0;i<lib.cardPack.mode_derivation.length;i++){
if(!lib.character[lib.card[lib.cardPack.mode_derivation[i]].derivation]){
if(typeof lib.card[lib.cardPack.mode_derivation[i]].derivation=='string'&&!lib.character[lib.card[lib.cardPack.mode_derivation[i]].derivation]){
lib.cardPack.mode_derivation.splice(i--,1);
}
}
@ -9706,7 +9706,7 @@
return skill;
},
addTempSkill:function(skill,expire){
if(this.skills.contains(skill)&&this.tempSkills[skill]==undefined) return;
if(this.hasSkill(skill)&&this.tempSkills[skill]==undefined) return;
this.addSkill(skill);
this.tempSkills[skill]=expire;
this.checkConflict();
@ -26739,6 +26739,32 @@
},
};
var get={
inpile:function(type,filter){
var list=[];
for(var i=0;i<lib.inpile.length;i++){
if(typeof filter=='function'&&!filter(lib.inpile[i])) continue;
if(type.indexOf('equip')==0&&type.length==6){
if(get.subtype(lib.inpile[i])==type) list.push(lib.inpile[i]);
}
else{
if(get.type(lib.inpile[i])==type) list.push(lib.inpile[i]);
}
}
return list;
},
typeCard:function(type,filter){
var list=[];
for(var i in lib.card){
if(typeof filter=='function'&&!filter(i)) continue;
if(type.indexOf('equip')==0&&type.length==6){
if(get.subtype(i)==type) list.push(i);
}
else{
if(get.type(i)==type) list.push(i);
}
}
return list;
},
ip:function(){
if(!require) return '';
var interfaces = require('os').networkInterfaces();
@ -28850,7 +28876,11 @@
}
},
};
lib.init.init();
lib.get=get;
lib.ui=ui;
lib.ai=ai;
lib.game=game;
lib.init.init();
HTMLDivElement.prototype.animate=function(name,time){
this.classList.add(name);
var that=this;

View File

@ -7,7 +7,11 @@ window.noname_update={
global:[
'game/game.js',
'game/asset.js',
'character/hearth.js',
'character/swd.js',
'character/sp.js',
'card/swd.js',
'card/yunchou.js',
'layout/default/layout.css',
'theme/woodden/style.css',
],