This commit is contained in:
libccy 2016-05-29 13:34:06 +08:00
parent 2a8d9626bd
commit 1de056055d
5 changed files with 112 additions and 37 deletions

View File

@ -737,7 +737,7 @@ card.standard={
basic:{ basic:{
order:7.2, order:7.2,
useful:4, useful:4,
value:10 value:9.2
}, },
result:{ result:{
target:2, target:2,

View File

@ -45,7 +45,7 @@ character.hearth={
hs_anomalus:['male','wei',4,['mobao']], hs_anomalus:['male','wei',4,['mobao']],
hs_blingtron:['male','shu',3,['zengli','xiubu']], hs_blingtron:['male','shu',3,['zengli','xiubu']],
hs_yogg:['male','wu',4,['kuangluan']], hs_yogg:['male','wu',4,['kuangluan']],
hs_xialikeer:['female','wu',3,['duxin']], hs_xialikeer:['female','shu',3,['duxin']],
hs_zhishigushu:['male','shu',4,['jiaohui']], hs_zhishigushu:['male','shu',4,['jiaohui']],
hs_zhanzhenggushu:['male','wei',6,['biri']], hs_zhanzhenggushu:['male','wei',6,['biri']],
@ -75,6 +75,37 @@ character.hearth={
hs_malfurion:['hs_malorne'], hs_malfurion:['hs_malorne'],
}, },
skill:{ skill:{
duxin:{
trigger:{player:['phaseBegin','phaseEnd']},
frequent:true,
content:function(){
var list=['hsdusu_xueji','hsdusu_huangxuecao','hsdusu_kuyecao','hsdusu_shinancao','hsdusu_huoyanhua'];
var name=list.randomGet();
if(name=='hsdusu_huoyanhua'){
player.gain(game.createCard({name:name,nature:'fire'}),'draw');
}
else{
player.gain(game.createCard(name),'draw');
}
},
ai:{
threaten:1.6
}
},
hsdusu_shinancao:{
mark:true,
marktext:'楠',
nopop:true,
intro:{
content:'下一次造成的伤害+1'
},
trigger:{source:'damageBegin'},
forced:true,
content:function(){
trigger.num++;
player.removeSkill('hsdusu_shinancao');
}
},
kuangluan:{ kuangluan:{
trigger:{player:'damageEnd'}, trigger:{player:'damageEnd'},
forced:true, forced:true,
@ -147,6 +178,7 @@ character.hearth={
}, },
hslingjian_yinshen:{ hslingjian_yinshen:{
mark:true, mark:true,
nopop:true,
intro:{ intro:{
content:'锁定技,你不能成为其他角色的卡牌的目标' content:'锁定技,你不能成为其他角色的卡牌的目标'
}, },
@ -158,6 +190,7 @@ character.hearth={
}, },
hslingjian_chaofeng:{ hslingjian_chaofeng:{
global:'hslingjian_chaofeng_disable', global:'hslingjian_chaofeng_disable',
nopop:true,
unique:true, unique:true,
gainnable:true, gainnable:true,
mark:true, mark:true,
@ -186,6 +219,7 @@ character.hearth={
} }
}, },
hslingjian_xingtigaizao:{ hslingjian_xingtigaizao:{
nopop:true,
mod:{ mod:{
maxHandcard:function(player,num){ maxHandcard:function(player,num){
if(typeof player.storage.hslingjian_xingtigaizao=='number'){ if(typeof player.storage.hslingjian_xingtigaizao=='number'){
@ -3528,17 +3562,23 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_xialikeer', derivation:'hs_xialikeer',
filterTarget:true, filterTarget:function(card,player,target){
return target.num('e')>0;
},
content:function(){ content:function(){
target.discard(target.get('e').randomGets(Math.ceil(Math.random()*2)));
}, },
ai:{ ai:{
order:5, order:5,
result:{ result:{
target:-1, target:function(player,target){
if(target.hasSkillTag('noe')) return 0;
if(target.num('e')>1) return -1.5;
return -1;
},
}, },
useful:[2,0.5], useful:3,
value:[2,0.5], value:5,
} }
}, },
hsdusu_kuyecao:{ hsdusu_kuyecao:{
@ -3547,17 +3587,28 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_xialikeer', derivation:'hs_xialikeer',
filterTarget:true, filterTarget:function(card,player,target){
return !target.hasSkill('hslingjian_yinshen');
},
content:function(){ content:function(){
target.addTempSkill('hslingjian_yinshen',{player:'phaseBegin'});
}, },
ai:{ ai:{
order:5, order:2,
result:{ result:{
target:-1, target:function(player,target){
if(player!=target&&get.distance(player,target,'absolute')<=1) return 0;
var num=1;
if(target==player){
num=1.5;
}
if(target.hp==1) return 2*num;
if(target.hp==2&&target.num('h')<=2) return 1.2*num;
return num;
}
}, },
useful:[2,0.5], useful:4,
value:[2,0.5], value:5,
} }
}, },
hsdusu_huangxuecao:{ hsdusu_huangxuecao:{
@ -3566,17 +3617,21 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_xialikeer', derivation:'hs_xialikeer',
filterTarget:true, filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
modTarget:true,
content:function(){ content:function(){
target.draw(2);
}, },
ai:{ ai:{
order:5, order:9,
result:{ result:{
target:-1, target:1,
}, },
useful:[2,0.5], useful:5,
value:[2,0.5], value:10,
} }
}, },
hsdusu_huoyanhua:{ hsdusu_huoyanhua:{
@ -3585,17 +3640,23 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_xialikeer', derivation:'hs_xialikeer',
range:{attack:1},
filterTarget:true, filterTarget:true,
content:function(){ content:function(){
target.damage('fire');
}, },
ai:{ ai:{
order:5, order:5,
result:{ result:{
target:-1, target:-1,
}, },
useful:[2,0.5], useful:5,
value:[2,0.5], value:8,
tag:{
damage:1,
fireDamage:1,
natureDamage:1,
}
} }
}, },
hsdusu_shinancao:{ hsdusu_shinancao:{
@ -3604,17 +3665,25 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_xialikeer', derivation:'hs_xialikeer',
filterTarget:true, filterTarget:function(card,player,target){
return !target.hasSkill('hsdusu_shinancao');
},
content:function(){ content:function(){
target.addSkill('hsdusu_shinancao');
}, },
ai:{ ai:{
order:5, order:7,
result:{ result:{
target:-1, target:function(player,target){
if(target.hp>1){
if(target.num('h')>2) return 1;
return 0.5;
}
return 0.2;
},
}, },
useful:[2,0.5], useful:4,
value:[2,0.5], value:5,
} }
}, },
hslingjian_xuanfengzhiren:{ hslingjian_xuanfengzhiren:{
@ -3772,7 +3841,9 @@ character.hearth={
vanish:true, vanish:true,
enable:true, enable:true,
derivation:'hs_blingtron', derivation:'hs_blingtron',
filterTarget:true, filterTarget:function(card,player,target){
return !target.hasSkill('hslingjian_chaofeng');
},
content:function(){ content:function(){
target.addTempSkill('hslingjian_chaofeng',{player:'phaseBegin'}); target.addTempSkill('hslingjian_chaofeng',{player:'phaseBegin'});
}, },
@ -3796,7 +3867,7 @@ character.hearth={
enable:true, enable:true,
derivation:'hs_blingtron', derivation:'hs_blingtron',
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
return player!=target; return player!=target&&!target.hasSkill('hslingjian_yinshen');
}, },
content:function(){ content:function(){
target.addTempSkill('hslingjian_yinshen',{player:'phaseBegin'}); target.addTempSkill('hslingjian_yinshen',{player:'phaseBegin'});
@ -4202,17 +4273,17 @@ character.hearth={
hs_xialikeer:'夏克里尔', hs_xialikeer:'夏克里尔',
hsdusu:'毒素', hsdusu:'毒素',
hsdusu_xueji:'血蓟', hsdusu_xueji:'血蓟',
hsdusu_xueji_info:'将一名角色区域内的所有牌返回其手牌', hsdusu_xueji_info:'随机弃至一名角色的1~2张装备牌',
hsdusu_shinancao:'石楠草', hsdusu_shinancao:'石楠草',
hsdusu_shinancao_info:'令一名角色下一次造成的伤害+1', hsdusu_shinancao_info:'令一名角色下一次造成的伤害+1',
hsdusu_kuyecao:'枯叶草', hsdusu_kuyecao:'枯叶草',
hsdusu_kuyecao_info:'令一名角色获得技能潜行,直到其下一回合开始', hsdusu_kuyecao_info:'令一名角色获得技能潜行,直到其下一回合开始',
hsdusu_huoyanhua:'火焰花', hsdusu_huoyanhua:'火焰花',
hsdusu_huoyanhua_info:'造成一点火焰伤害', hsdusu_huoyanhua_info:'对攻击范围内的一名角色造成一点火焰伤害',
hsdusu_huangxuecao:'皇血草', hsdusu_huangxuecao:'皇血草',
hsdusu_huangxuecao_info:'抽两张牌', hsdusu_huangxuecao_info:'抽两张牌',
duxin:'毒心', duxin:'毒心',
duxin_info:'锁定技,回合开始和结束阶段,你获得一张随机毒素牌', duxin_info:'回合开始和结束阶段,你可以获得一张随机毒素牌',
hstuteng:'图腾', hstuteng:'图腾',
kuangluan:'狂乱', kuangluan:'狂乱',
kuangluan2:'狂乱', kuangluan2:'狂乱',

View File

@ -137,6 +137,8 @@ character.xianjian={
}, },
selectTarget:[1,Infinity], selectTarget:[1,Infinity],
discard:false, discard:false,
line:false,
multiline:true,
prepare:function(cards,player,targets){ prepare:function(cards,player,targets){
player.$throw(cards); player.$throw(cards);
player.line(targets); player.line(targets);

View File

@ -28326,10 +28326,10 @@
var sa=0,sb=0,sc=0,sd=0; var sa=0,sb=0,sc=0,sd=0;
for(var i in lib.character){ for(var i in lib.character){
switch(lib.character[i][1]){ switch(lib.character[i][1]){
case 'wei':a++;if(lib.config.forbidsingle.contains(i)) sa++;break; case 'wei':a++;if(lib.config.forbidall.contains(i)) sa++;break;
case 'shu':b++;if(lib.config.forbidsingle.contains(i)) sb++;break; case 'shu':b++;if(lib.config.forbidall.contains(i)) sb++;break;
case 'wu':c++;if(lib.config.forbidsingle.contains(i)) sc++;break; case 'wu':c++;if(lib.config.forbidall.contains(i)) sc++;break;
case 'qun':d++;if(lib.config.forbidsingle.contains(i)) sd++;break; case 'qun':d++;if(lib.config.forbidall.contains(i)) sd++;break;
} }
} }
console.log('魏:'+(a-sa)+'/'+a); console.log('魏:'+(a-sa)+'/'+a);

View File

@ -13,10 +13,12 @@ window.noname_update={
'mode/identity.js', 'mode/identity.js',
'mode/guozhan.js', 'mode/guozhan.js',
'mode/stone.js', 'mode/stone.js',
'card/standard.js',
'character/yijiang.js', 'character/yijiang.js',
'character/shenhua.js', 'character/shenhua.js',
'character/hearth.js', 'character/hearth.js',
'character/swd.js', 'character/swd.js',
'character/xianjian.js',
], ],
'1.8.11':[], '1.8.11':[],
'1.8.12':[], '1.8.12':[],