This commit is contained in:
libccy 2016-09-27 11:26:24 +08:00
parent c6ddbff510
commit 83014bb5ff
10 changed files with 63 additions and 15 deletions

View File

@ -391,7 +391,6 @@ card.guozhan={
if(player.identity=='ye') return true; if(player.identity=='ye') return true;
return player.identity!=target.identity; return player.identity!=target.identity;
}, },
multitarget:true,
content:function(){ content:function(){
game.asyncDraw([target,player],[1,get.mode()=='guozhan'?3:1]); game.asyncDraw([target,player],[1,get.mode()=='guozhan'?3:1]);
}, },

View File

@ -1,5 +1,8 @@
card.swd={ card.swd={
card:{ card:{
shenmiguo:{
fullskin:true,
},
// yuchanqian:{ // yuchanqian:{
// fullskin:true, // fullskin:true,
// }, // },
@ -3927,6 +3930,7 @@ card.swd={
yuchanli:'离玉蝉', yuchanli:'离玉蝉',
yuchangen:'艮玉蝉', yuchangen:'艮玉蝉',
yuchandui:'兑玉蝉', yuchandui:'兑玉蝉',
shenmiguo:'神秘果',
shuchui:'鼠槌', shuchui:'鼠槌',
shuchui_info:'出牌阶段限一次你可以指定一名攻击范围内的角色依次将手牌中的所有杀对该角色使用杀每造成一次伤害你摸一张牌最多使用3张杀', shuchui_info:'出牌阶段限一次你可以指定一名攻击范围内的角色依次将手牌中的所有杀对该角色使用杀每造成一次伤害你摸一张牌最多使用3张杀',
zhiluxiaohu:'指路小狐', zhiluxiaohu:'指路小狐',

View File

@ -808,25 +808,58 @@ character.hearth={
direct:true, direct:true,
delay:false, delay:false,
unique:true, unique:true,
onremove:function(player){
player.removeAdditionalSkill('maoxian');
},
content:function(){ content:function(){
'step 0' 'step 0'
var list=get.gainableSkills(); var list=get.gainableSkills();
list.remove('maoxian'); list.remove('maoxian');
player.chooseControl(list.randomGets(3)).prompt='选择一项作为你的技能'; list=list.randomGets(3);
'step 1' event.skillai=function(){
if(result.control){ return list.randomGet();
game.stopCountChoose(); };
var link=result.control; if(event.isMine()){
player.addAdditionalSkill('maoxian',link); var dialog=ui.create.dialog();
player.popup(link); dialog.add('选择获得一项技能');
game.log(player,'获得了技能','【'+get.translation(link)+'】'); var clickItem=function(){
player.checkMarks(); _status.event._result=this.link;
player.markSkill('maoxian'); dialog.close();
game.delay(); game.resume();
};
for(var i=0;i<list.length;i++){
if(lib.translate[list[i]+'_info']){
var translation=get.translation(list[i]);
if(translation[0]=='新'&&translation.length==3){
translation=translation.slice(1,3);
}
else{
translation=translation.slice(0,2);
}
var item=dialog.add('<div class="popup" style="width:50%;display:inline-block"><div class="skill">【'+
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
item.firstChild.addEventListener('click',clickItem);
item.firstChild.link=list[i];
}
}
dialog.add(ui.create.div('.placeholder'));
event.switchToAuto=function(){
event._result=event.skillai();
dialog.close();
game.resume();
};
_status.imchoosing=true;
game.pause();
} }
else{
event._result=event.skillai();
}
'step 1'
_status.imchoosing=false;
var link=result;
player.addAdditionalSkill('maoxian',link);
player.popup(link);
game.log(player,'获得了技能','【'+get.translation(link)+'】');
player.checkMarks();
player.markSkill('maoxian');
game.delay();
}, },
intro:{ intro:{
content:function(storage,player){ content:function(storage,player){
@ -3754,6 +3787,7 @@ character.hearth={
animationColor:'thunder', animationColor:'thunder',
trigger:{player:'phaseBegin'}, trigger:{player:'phaseBegin'},
forced:true, forced:true,
unique:true,
filter:function(event,player){ filter:function(event,player){
if(!player.storage.tuteng_awake){ if(!player.storage.tuteng_awake){
var rand=['tuteng1','tuteng2','tuteng3','tuteng4', var rand=['tuteng1','tuteng2','tuteng3','tuteng4',

View File

@ -546,6 +546,7 @@ character.ow={
content:'limited' content:'limited'
}, },
mark:true, mark:true,
unique:true,
skillAnimation:true, skillAnimation:true,
animationColor:'water', animationColor:'water',
line:'thunder', line:'thunder',

View File

@ -217,6 +217,7 @@ character.shenhua={
audio:2, audio:2,
unique:true, unique:true,
zhuSkill:true, zhuSkill:true,
keepSkill:true,
trigger:{player:'phaseBegin'}, trigger:{player:'phaseBegin'},
forced:true, forced:true,
filter:function(event,player){ filter:function(event,player){

View File

@ -1106,6 +1106,7 @@ character.yijiang={
trigger:{player:'phaseDrawBegin'}, trigger:{player:'phaseDrawBegin'},
forced:true, forced:true,
mark:true, mark:true,
audio:false,
intro:{ intro:{
content:'下个摸牌阶段额外摸一张牌' content:'下个摸牌阶段额外摸一张牌'
}, },

View File

@ -123,6 +123,7 @@ window.noname_asset_list=[
'image/card/chiling.png', 'image/card/chiling.png',
'image/card/shenenshu.png', 'image/card/shenenshu.png',
'image/card/shengdong.png', 'image/card/shengdong.png',
'image/card/shenmiguo.png',
'image/card/shennongding.png', 'image/card/shennongding.png',
'image/card/shentoumianju.png', 'image/card/shentoumianju.png',
'image/card/shihuawuqi.png', 'image/card/shihuawuqi.png',

View File

@ -11342,6 +11342,9 @@
info.onremove(this); info.onremove(this);
} }
this.removeSkillTrigger(skill); this.removeSkillTrigger(skill);
if(!info.keepSkill){
this.removeAdditionalSkill(skill);
}
} }
} }
return skill; return skill;

View File

@ -20,6 +20,7 @@ window.noname_update={
} }
// 'card/swd.js', // 'card/swd.js',
// 'card/guozhan.js',
// 'game/package.js', // 'game/package.js',
// 'game/asset.js', // 'game/asset.js',
// 'game/game.js', // 'game/game.js',
@ -27,6 +28,9 @@ window.noname_update={
// 'character/swd.js', // 'character/swd.js',
// 'character/hearth.js', // 'character/hearth.js',
// 'character/xianjian.js', // 'character/xianjian.js',
// 'character/shenhua.js',
// 'character/ow.js',
// 'character/yijiang.js',
// 'mode/boss.js', // 'mode/boss.js',
// 'mode/versus.js', // 'mode/versus.js',
// 'mode/brawl.js', // 'mode/brawl.js',

BIN
image/card/shenmiguo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB