This commit is contained in:
libccy 2017-02-15 23:52:47 +08:00
parent cb1993f00a
commit 64f60cc37f
12 changed files with 178 additions and 69 deletions

View File

@ -904,7 +904,8 @@ card.gujian={
luyugeng:{
mark:'card',
trigger:{player:'phaseBegin'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -937,7 +938,8 @@ card.gujian={
xiajiao:{
mark:'card',
trigger:{player:['phaseUseBefore','phaseEnd']},
direct:true,
forced:true,
popup:false,
nopop:true,
filter:function(event,player){
return !player.hasSkill('xiajiao3');
@ -984,7 +986,8 @@ card.gujian={
mizhilianou:{
mark:'card',
trigger:{player:'phaseAfter'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1026,7 +1029,8 @@ card.gujian={
chunbing:{
mark:'card',
trigger:{player:'phaseAfter'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1053,7 +1057,8 @@ card.gujian={
gudonggeng:{
mark:'card',
trigger:{player:'phaseBegin'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1095,7 +1100,8 @@ card.gujian={
qingtuan:{
mark:'card',
trigger:{player:'phaseAfter'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1131,7 +1137,8 @@ card.gujian={
liyutang:{
mark:'card',
trigger:{player:'phaseEnd'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1157,7 +1164,8 @@ card.gujian={
yougeng:{
mark:'card',
trigger:{player:'phaseBegin'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1183,7 +1191,8 @@ card.gujian={
molicha:{
mark:'card',
trigger:{player:'phaseAfter'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1221,7 +1230,8 @@ card.gujian={
yuanbaorou:{
mark:'card',
trigger:{player:'phaseAfter'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1248,7 +1258,8 @@ card.gujian={
tanhuadong:{
mark:'card',
trigger:{player:'phaseEnd'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){
@ -1274,7 +1285,8 @@ card.gujian={
mapodoufu:{
mark:'card',
trigger:{player:'phaseEnd'},
direct:true,
forced:true,
popup:false,
nopop:true,
intro:{
content:function(storage,player){

View File

@ -1372,6 +1372,7 @@ card.standard={
trigger:{player:'shaBegin'},
priority:5,
audio:true,
logTarget:'target',
filter:function(event,player){
if(player.sex=='male'&&event.target.sex=='female') return true;
if(player.sex=='female'&&event.target.sex=='male') return true;

View File

@ -232,8 +232,10 @@ window.characterRank={
're_lidian',
'wangyi',
'swd_weida',
'yxs_libai',
],
bp:[
'pal_jiangcheng',
'lifeng',
'zhugeguo',
'xiaoqiao',
@ -380,7 +382,6 @@ window.characterRank={
'diy_tianyu',
'old_zhuran',
'old_lingtong',
'sp_pangde',
'sp_jiaxu',
'sp_liubei',
'zhuling',
@ -466,7 +467,6 @@ window.characterRank={
'dingfeng',
'mayunlu',
'yxs_mingchenghuanghou',
'yxs_libai',
'shen_guanyu',
'jiangfei',
're_caocao',
@ -497,6 +497,7 @@ window.characterRank={
'zhangliang',
'xiahouyuan',
'pangde',
'sp_pangde',
'yanwen',
],
c:[

View File

@ -35,21 +35,79 @@ character.xianjian={
pal_xiahoujinxuan:['male','shu',3,['xuanmo','danqing']],
pal_muchanglan:['female','wu',3,['feixia','lueying']],
// pal_xia:['male','wei',4,[]],
// pal_jiangcheng:['male','qun',4,['yanzhan','fenshi']],
pal_jiangcheng:['male','qun',4,['yanzhan','fenshi']],
},
skill:{
fenshi:{
unique:true,
skillAnimation:true,
animationColor:'fire',
trigger:{player:'dyingAfter'},
forced:true,
mark:true,
intro:{
content:'limited'
},
content:function(){
player.awakenSkill('fenshi');
player.changeHujia(2);
player.draw(2);
player.addSkill('longhuo');
},
ai:{
threaten:0.7
}
},
longhuo:{
unique:true,
trigger:{player:'phaseEnd'},
check:function(event,player){
if(player.hp==1&&player.hujia==0) return false;
var num=game.countPlayer(function(current){
var eff=get.sgn(ai.get.damageEffect(current,player,player,'fire'));
if(current.hp==1&&current.hujia==0) eff*=1.5;
return eff;
});
return num>0;
},
content:function(){
'step 0'
event.targets=get.players(lib.sort.seat);
'step 1'
if(event.targets.length){
var current=event.targets.shift();
if(current.isIn()){
player.line(current,'fire');
current.damage('fire');
event.redo();
}
}
}
},
yanzhan:{
enable:'phaseUse',
viewAs:{name:'sha',nature:'fire'},
usable:1,
position:'he',
viewAsFilter:function(player){
if(!player.num('h',{color:'red'})) return false;
if(!player.num('he',{color:'red'})) return false;
},
filterCard:{color:'red'},
check:function(card){
if(get.suit(card)=='heart') return 7-ai.get.value(card);
return 5-ai.get.value(card);
},
onuse:function(result){
if(result.targets){
for(var i=0;i<result.targets.length;i++){
result.targets[i].addTempSkill('yanzhan3','phaseAfter');
}
}
},
group:'yanzhan2',
ai:{
order:3.15
},
group:'yanzhan2'
},
yanzhan2:{
trigger:{source:'damageEnd'},
@ -62,6 +120,15 @@ character.xianjian={
player.getStat().card.sha--;
}
},
yanzhan3:{
mod:{
cardRespondable:function(card,player){
console.log(_status.event.parent.skill,_status.event.parent.name)
if(_status.event.parent.skill=='yanzhan'&&
get.suit(card)!=get.suit(_status.event.parent.cards[0])) return false;
}
}
},
yufeng:{
trigger:{player:'loseEnd'},
frequent:true,
@ -2415,9 +2482,9 @@ character.xianjian={
longhuo:'龙火',
longhuo_info:'结束阶段,你可以对所有角色各造成一点火焰伤害',
fenshi:'焚世',
fenshi_info:'觉醒技,准备阶段,若你没有牌,你回复一点体力并摸三张牌,并获得技能龙火',
fenshi_info:'觉醒技,当你解除濒死状态时,你获得两点护甲,摸两张牌,然后获得技能龙火',
yanzhan:'炎斩',
yanzhan_info:'出牌阶段限一次,你可以将一张红色手牌当作火杀使用,若造成了伤害,此杀不计入出牌次数',
yanzhan_info:'出牌阶段限一次,你可以将一张红色牌当作火杀使用,此杀只能用与之花色相同的闪响应;若此杀造成了伤害,则不计入出杀次数',
feixia:'飞霞',
feixia_info:'出牌阶段限一次,你可以弃置一张红色牌视为对一名随机敌人使用一张不计入出杀次数的杀',
lueying:'掠影',

View File

@ -40,6 +40,10 @@ character.yxs={
yxs_tangbohu:['male','qun',3,['luobi','fengliu']],
yxs_zhangsanfeng:['male','wei',4,['zbudao','taiji']],
yxs_nandinggeer:['female','shu',3,['huli','xianqu','yixin']],
// yxs_weizhongxian:['male','qun',3,['zhuxin','wlianhuan']],
// yxs_meixi:['female','shu',3,['liebo','yaoji']],
// yxs_lanlinwang:['male','shu',4,['guimian','yuxue']],
},
skill:{
huli:{
@ -2358,61 +2362,67 @@ character.yxs={
threaten:1.2
}
},
miaobix:{
filterCard:true,
selectCard:1,
popname:true,
},
miaobi:{
enable:'phaseUse',
viewAs:{name:'wugu'},
filterCard:{suit:'heart'},
filter:function(event,player){
return !player.getStat('skill').miaobi&&player.num('h',{suit:'heart'})>0;
},
check:function(card){
return 5-ai.get.value(card);
}
},
zhexian:{
unique:true,
enable:'chooseToUse',
mark:true,
skillAnimation:true,
animationStr:'谪仙',
animationColor:'metal',
init:function(player){
player.storage.zhexian=false;
},
filter:function(event,player){
if(event.type!='dying') return false;
if(player!=event.dying) return false;
if(player.storage.zhexian) return false;
return true;
usable:1,
filterTarget:function(card,player,target){
return target!=player&&target.num('he')>0;
},
content:function(){
'step 0'
player.hp=Math.min(3,player.maxHp);
player.discard(player.get('hej'));
player.draw(3);
player.awakenSkill('zhexian');
player.storage.zhexian=true;
player.discardPlayerCard(target,true);
'step 1'
if(player.isLinked()) player.link();
if(result.bool){
var type=get.type(result.cards[0]);
if(type!='basic'&&type!='trick'){
player.chooseToDiscard('he',true);
event.finish();
}
else{
event.card=result.cards[0];
}
}
else{
event.finish();
}
'step 2'
if(player.isTurnedOver()) player.turnOver();
},
ai:{
order:1,
skillTagFilter:function(player){
if(player.storage.zhexian) return false;
if(player.hp>0) return false;
},
save:true,
result:{
player:10
},
threaten:function(player,target){
if(!target.storage.zhexian) return 0.6;
var card=event.card;
card={name:card.name,nature:card.nature,suit:card.suit,number:card.number};
if(lib.filter.cardEnabled(card)){
if(game.hasPlayer(function(current){
return player.canUse(card,current);
})){
lib.skill.miaobix.viewAs=card;
var next=player.chooseToUse();
next.logSkill='miaobi';
next.set('openskilldialog','妙笔:将一张手牌当'+get.translation(card)+'使用');
next.set('norestore',true);
next.set('_backupevent','miaobix');
next.backup('miaobix');
}
}
},
intro:{
content:'limited'
ai:{
order:9,
result:{
target:-1
}
}
},
zhexian:{
trigger:{player:'loseEnd'},
usable:1,
filter:function(event,player){
return _status.currentPhase!=player;
},
frequent:true,
content:function(){
player.draw();
}
},
guifu:{
@ -2540,6 +2550,18 @@ character.yxs={
yxs_zhangsanfeng:'张三丰',
yxs_nandinggeer:'南丁格尔',
zhuxin:'诛心',
zhuxin_info:'出牌阶段限一次,你可以与一名其他角色拼点,若你赢,你对其造成一点伤害',
wlianhuan:'连环',
wlianhuan_info:'你使用杀造成伤害时,可以弃置一张装备区内的牌并令伤害+1',
liebo:'裂帛',
liebo_info:'出牌阶段限一次你可以使用任意张手牌与一名其他角色交换对应数量的手牌或与一名其他角色交换全部手牌牌差不能超过1',
yaoji:'妖姬',
yaoji_info:'每当你受到一次伤害,你可以将一张乐不思蜀置入伤害来源的判定区',
guimian:'鬼面',
guimian_info:'锁定技,每当你在出牌阶段使用杀造成伤害,本阶段内出杀次数上限+1',
yuxue:'浴血',
yuxue_info:'锁定技,每当你造成一次伤害,若目标没有浴血标记,你令其获得一个浴血标记;准备阶段,若场上浴血标记的数量不少于存活角色数的一半,你清空浴血标记并令所有有标记的角色流失一点体力',
huli:'护理',
huli_info:'出牌阶段你可以将一张红桃手牌当作桃对距离1以内的角色使用',
yixin:'医心',
@ -2639,9 +2661,9 @@ character.yxs={
lshengong:'神工',
lshengong_info:'出牌阶段限一次,你可以选定场上任意一名角色的装备区的牌,出自己的一张手牌复制该装备,然后可以选择装备上自己或者别的角色的装备区',
zhexian:'谪仙',
zhexian_info:'限定技当你处于濒死状态时你可以丢弃你所有的牌和你判定区里的牌并复原你的武将牌然后摸三张牌且体力回复至3点。',
zhexian_info:'当你于一名其他角色的回合内首次失去牌时,你可以摸一张牌',
miaobi:'妙笔',
miaobi_info:'出牌阶段限一次,你可以将一张红桃牌当作五谷丰登使用',
miaobi_info:'出牌阶段限一次,你可以弃置一名其他角色的一张牌,若此牌是基本牌或通常锦囊,你可以将一张手牌当此牌使用;否则你须弃置一张牌',
cike:'刺客',
cike_info:'你对别的角色出【杀】时可以选择做一次判定:若判定牌为红色花色,则此【杀】不可回避,直接命中;若判定牌为黑色花色,你可以选择弃掉对方一张牌。',
qiangyun:'强运',

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[
'1.9.8',
'1.9.9',
'image/background/huangtian_bg.jpg',
'image/background/september_bg.jpg',
'image/background/shengshi_bg.jpg',
@ -728,6 +728,7 @@ window.noname_asset_list=[
'image/character/yxs_huamulan.jpg',
'image/character/yxs_jinke.jpg',
'image/character/yxs_kaisa.jpg',
'image/character/yxs_lanlinwang.jpg',
'image/character/yxs_libai.jpg',
'image/character/yxs_lishimin.jpg',
'image/character/yxs_luban.jpg',
@ -736,12 +737,14 @@ window.noname_asset_list=[
'image/character/yxs_luzhishen.jpg',
'image/character/yxs_lvzhi.jpg',
'image/character/yxs_mingchenghuanghou.jpg',
'image/character/yxs_meixi.jpg',
'image/character/yxs_mozi.jpg',
'image/character/yxs_nandinggeer.jpg',
'image/character/yxs_napolun.jpg',
'image/character/yxs_sunwu.jpg',
'image/character/yxs_tangbohu.jpg',
'image/character/yxs_wangzhaojun.jpg',
'image/character/yxs_weizhongxian.jpg',
'image/character/yxs_wuzetian.jpg',
'image/character/yxs_xiangyu.jpg',
'image/character/yxs_xiaoqiao.jpg',

View File

@ -8089,6 +8089,7 @@
else ui.click.cancel();
}
event.dialog.close();
event.result.cards=event.result.links.slice(0);
},
discardPlayerCard:function(){
"step 0"
@ -8193,6 +8194,7 @@
for(var i=0;i<event.result.links.length;i++){
cards.push(event.result.links[i]);
}
event.result.cards=event.result.links.slice(0);
target.discard(cards);
}
},
@ -8303,6 +8305,7 @@
for(var i=0;i<event.result.links.length;i++){
cards.push(event.result.links[i]);
}
event.result.cards=event.result.links.slice(0);
event.cards=cards;
if(!_status.connectMode&&(target.isUnderControl(true)||player.isUnderControl(true))){
target.$give(cards,player);

View File

@ -6,7 +6,7 @@ window.noname_update={
],
files:[
'game/game.js',
// 'game/asset.js',
'game/asset.js',
'card/*',
'character/*',
'mode/boss.js',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB