This commit is contained in:
libccy 2017-08-27 12:44:18 +08:00
parent 50e33a1e84
commit 835263b3cc
8 changed files with 113 additions and 22 deletions

View File

@ -1329,7 +1329,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
if(eff<=0) return get.buttonValue(button);
if(trigger.target.hp==1) return false;
if(player.hasSkill('jiu')||player.hasSkill('tianxianjiu')||
player.hasSkill('luoyi2')||player.hasSkill('reluoyi2')) return false;
player.hasSkill('luoyi2')||player.hasSkill('reluoyi2')) return -1;
if(_status.event.dialog.buttons.length<2) return -1;
var num=0;
for(var i=0;i<_status.event.dialog.buttons.length;i++){

View File

@ -52,6 +52,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_nitelila:['male','wei',4,['shuangxi']],
gw_linjing:['male','wu',4,['gwyewu']],
gw_kanbi:['male','qun',1,['gwfutian']],
},
characterIntro:{
gw_huoge:'那个老年痴呆?不知道他是活着还是已经被制成标本了!',
@ -67,6 +68,97 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
},
skill:{
gwfutian:{
trigger:{player:'damageBefore'},
forced:true,
content:function(){
trigger.untrigger();
trigger.finish();
},
ai:{
nofire:true,
nothunder:true,
nodamage:true,
effect:{
target:function(card,player,target,current){
if(get.tag(card,'damage')) return [0,0];
}
},
},
init:function(player){
player.storage.gwfutian=0;
},
intro:{
content:'弃置的牌总点数:#'
},
unique:true,
onremove:true,
group:'gwfutian_discard',
subSkill:{
discard:{
trigger:{player:'phaseBegin'},
forced:true,
filter:function(event,player){
return game.hasPlayer(function(current){
return current!=player&&current.countCards('h');
});
},
content:function(){
'step 0'
player.chooseTarget('覆天:弃置一名角色的一张手牌',function(card,player,target){
return target!=player&&target.countCards('h');
}).set('ai',function(target){
if(target.hasSkillTag('noh')) return 0;
return -get.attitude(player,target)/Math.sqrt(target.countCards('h'));
});
'step 1'
if(result.bool){
var target=result.targets[0];
player.discardPlayerCard(target,'h',true);
player.line(target,'green');
}
else{
event.finish();
}
'step 2'
if(result.bool&&result.cards&&result.cards.length){
player.storage.gwfutian+=get.number(result.cards[0]);
player.markSkill('gwfutian',true);
}
'step 3'
if(player.storage.gwfutian>=24){
player.$skill('覆天','legend','metal');
player.removeSkill('gwfutian');
player.addSkill('gwzhongmo');
player.setAvatar('gw_kanbi','gw_hanmuduoer');
player.maxHp+=4;
player.hp=player.maxHp;
player.update();
}
}
}
}
},
gwzhongmo:{
trigger:{player:'phaseDrawBefore'},
forced:true,
content:function(){
trigger.untrigger();
trigger.finish();
var list=['bronze','silver','gold'];
list.randomRemove();
var cards=[];
for(var i=0;i<list.length;i++){
var list2=get.typeCard('spell_'+list[i]);
if(list2.length){
cards.push(game.createCard(list2.randomGet()));
}
}
if(cards.length){
player.gain(cards,'draw2');
}
}
},
gwyewu:{
enable:'phaseUse',
usable:1,
@ -2391,9 +2483,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
gwzhongmo:'终末',
gwzhongmo_info:'锁定技,你跳过摸牌阶段,改为获得两张随机的稀有度不同的法术牌',
gwfutian:'覆天',
gwfutian_info:'锁定技,你防止一切伤害;准备阶段,你须弃置一名其他角色的一张手牌;',
gwfutian_info:'锁定技,你防止一切伤害;准备阶段,你须弃置一名其他角色的一张手牌;若你以此法累计弃置弃置的总点数达到了24你变身为汉姆多尔',
gouhun:'勾魂',
gouhun_info:'出牌阶段限一次你可以交给一名有手牌的其他角色一张手牌然后令其选择一项1. 将手牌中与此牌花色相同的其它牌至少一张交给你2. 弃置除此牌之外的所有其它手牌3. 进入混乱状态直到下一回合结束',
gouhun_info:'出牌阶段限一次你可以交给一名有手牌的其他角色一张手牌然后令其选择一项1. 将手牌中与此牌花色相同的其它牌至少一张交给你2. 弃置手牌中与此牌花色不同的牌(至少一张)3. 进入混乱状态直到下一回合结束',
gw_wuyao:'雾妖',
gw_wuyao_info:'在你行动时可当作杀使用;回合结束后,从手牌中消失',
gwyewu:'叶舞',

View File

@ -2067,23 +2067,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
threaten:1.4,
check:function(event,player){
if(player.countCards('h')<=1) return true;
var min=[];
var temp=player.next.countCards('h');
var players=game.filterPlayer();
for(var i=0;i<players.length;i++){
if(players[i]!=player&&players[i].countCards('h')<temp){
temp=players[i].countCards('h');
}
}
for(var i=0;i<players.length;i++){
if(players[i]!=player&&players[i].countCards('h')==temp){
min.push(players[i]);
}
}
for(var i=0;i<min.length;i++){
if(get.attitude(player,min[i])>0) return true;
}
return false;
return game.hasPlayer(function(current){
return current!=player&&current.isMinHandcard()&&get.attitude(player,current)>0;
});
},
content:function(){
trigger.num+=2;

View File

@ -4654,6 +4654,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
viewAs:{name:'sha'},
prompt:'将两张手牌当杀使用或打出',
check:function(card){
if(player.hasSkill('wusheng')&&get.color(card)=='red') return 0;
if(_status.event.name=='chooseToRespond'){
if(card.name=='sha') return 0;
return 6-get.useful(card);
@ -4678,14 +4679,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
fuhun2:{
trigger:{source:'damageAfter'},
forced:true,
filter:function(event){
filter:function(event,player){
if(player.hasSkill('fuhun3')) return false;
return event.getParent().skill=='fuhun';
},
content:function(){
player.addTempSkill('wusheng');
player.addTempSkill('paoxiao');
player.addTempSkill('fuhun3');
}
},
fuhun3:{},
fencheng:{
skillAnimation:'epic',
animationColor:'fire',

View File

@ -396,10 +396,12 @@ window.noname_asset_list=[
'image/character/gw_gaier.jpg',
'image/character/gw_haizhiyezhu.jpg',
'image/character/gw_haluo.jpg',
'image/character/gw_hanmuduoer.jpg',
'image/character/gw_hengsaite.jpg',
'image/character/gw_huoge.jpg',
'image/character/gw_jieluote.jpg',
'image/character/gw_kaerweite.jpg',
'image/character/gw_kanbi.jpg',
'image/character/gw_kaxier.jpg',
'image/character/gw_kuite.jpg',
'image/character/gw_laduoweide.jpg',

View File

@ -13662,7 +13662,7 @@
this.updateMarks();
return this;
},
updateMark:function(i){
updateMark:function(i,storage){
if(!this.marks[i]){
if(lib.skill[i]&&lib.skill[i].intro&&(this.storage[i]||lib.skill[i].intro.markcount)){
this.markSkill(i);
@ -13672,6 +13672,9 @@
return this;
}
}
if(storage&&this.storage[i]){
this.syncStorage(i);
}
if(i=='ghujia'||((!this.marks[i].querySelector('.image')||this.storage[i+'_markcount'])&&
lib.skill[i]&&lib.skill[i].intro&&!lib.skill[i].intro.nocount&&
(this.storage[i]||lib.skill[i].intro.markcount))){
@ -16257,6 +16260,10 @@
}
},
markSkill:function(name,info,card){
if(info===true){
this.syncStorage(name);
info=null;
}
if(get.itemtype(card)=='card'){
game.addVideo('markSkill',this,[name,get.cardInfo(card)]);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB