This commit is contained in:
libccy 2017-02-04 23:59:46 +08:00
parent 6b62c879ea
commit 683ebcbf56
10 changed files with 208 additions and 192 deletions

View File

@ -25,15 +25,9 @@ card.guozhan={
},
selectTarget:-1,
content:function(){
var evt=_status.event;
for(var i=0;i<10;i++){
if(evt&&evt.getParent){
evt=evt.getParent();
}
if(evt.name=='phaseUse'){
var evt=_status.event.getParent('phaseUse');
if(evt&&evt.name=='phaseUse'){
evt.skipped=true;
break;
}
}
target.addSkill('xietianzi');
},

View File

@ -255,7 +255,11 @@ card.swd={
type:'basic',
enable:true,
fullskin:true,
filterTarget:true,
filterTarget:function(card,player,target){
return target==player;
},
selectTarget:-1,
modTarget:true,
content:function(){
'step 0'
event.num=3;
@ -1269,8 +1273,11 @@ card.swd={
return !target.isTurnedOver()&&target!=player;
},
content:function(){
target.draw(2);
'step 0'
target.changeHujia(2);
target.turnOver();
'step 1'
target.addTempSkill('qianxing',{player:'turnOverAfter'});
},
ai:{
order:9,
@ -4771,7 +4778,7 @@ card.swd={
yuruyi_ab:'如意',
yuruyi_info:'你有更高的机率摸到好牌',
fengyinzhidan:'封印之蛋',
fengyinzhidan_info:'出牌阶段对任意角色使用,目标随机使用三张非延时锦囊牌(随机指定目标)',
fengyinzhidan_info:'随机使用三张非延时锦囊牌(随机指定目标)',
shuchui:'鼠槌',
shuchui_info:'出牌阶段限一次你可以指定一名攻击范围内的角色依次将手牌中的至多3张杀对该角色使用若杀造成了伤害你摸一张牌',
zhiluxiaohu:'指路小狐',
@ -4919,7 +4926,7 @@ card.swd={
hslingjian_zhongxinghujia:'重型护甲',
hslingjian_zhongxinghujia_info:'可用于煅造装备;令一名角色装备一件随机防具,然后随机弃置其一张手牌',
hslingjian_jinjilengdong:'紧急冷冻',
hslingjian_jinjilengdong_info:'可用于煅造装备;令一名武将牌正面朝上的其他角色摸两张牌并翻面',
hslingjian_jinjilengdong_info:'可用于煅造装备;令一名武将牌正面朝上的其他角色获得两点护甲并翻面,然后获得技能潜行直到武将牌翻回正面',
hslingjian_yinmilichang:'隐秘力场',
hslingjian_yinmilichang_info:'可用于煅造装备;令一名其他角色获得技能潜行,直到其下一回合开始',
hslingjian_xingtigaizao:'型体改造',

View File

@ -170,7 +170,7 @@ card.yunchou={
var hs=player.get('h');
for(var i=0;i<hs.length;i++){
var value=ai.get.value(hs[i]);
if(event.torespond.length){
if(!_status.event.hasTarget){
if(hs[i].number>=8&&value<=7) return true;
if(value<=3) return true;
}
@ -180,7 +180,7 @@ card.yunchou={
}
}
return false;
}).set('source',target);
}).set('source',target).set('hasTarget',event.torespond.length>0);
}
else{
event.goto(3);
@ -238,18 +238,21 @@ card.yunchou={
notarget:true,
content:function(){
'step 0'
event.source=event.getParent(3).source;
if(!event.source){
var info=event.getParent(2).youdiinfo||event.getParent(3).youdiinfo;
if(!info){
event.finish();
return;
}
var evt=event.getParent(3)._trigger;
evt.untrigger();
evt.finish();
info.evt.untrigger();
info.evt.finish();
event.source=info.source;
event.source.storage.youdishenru=player;
event.source.addSkill('youdishenru');
'step 1'
event.source.chooseToUse({name:'sha'},player,-1,'对'+get.translation(player)+'使用一张杀,或受到一点伤害');
var next=event.source.chooseToUse({name:'sha'},player,-1,'对'+get.translation(player)+'使用一张杀,或受到一点伤害');
next.ai2=function(){
return 1;
};
'step 2'
if(result.bool){
if(event.source.storage.youdishenru){
@ -270,7 +273,10 @@ card.yunchou={
order:1,
result:{
player:function(player){
if(ai.get.attitude(player,_status.event.parent.source)<=0) return 1;
if(_status.event.parent.youdiinfo&&
ai.get.attitude(player,_status.event.parent.youdiinfo.source)<=0){
return 1;
}
return 0;
}
}
@ -964,7 +970,10 @@ card.yunchou={
return player.hasCard('youdishenru');
},
content:function(){
event.source=trigger.player;
event.youdiinfo={
source:trigger.player,
evt:trigger
};
player.chooseToUse({name:'youdishenru'},'是否使用诱敌深入?');
}
},

View File

@ -18,7 +18,7 @@ character.diy={
// diy_menghuo:['male','shu',4,['huoshou','zaiqix']],
re_huangyueying:['female','shu',3,['rejizhi','qicai']],
diy_liufu:['male','shu',3,[]],
diy_liufu:['male','wei',3,['zhucheng','duoqi']],
diy_xizhenxihong:['male','shu',3,[]],
diy_liuzan:['male','shu',3,[]],
diy_zaozhirenjun:['male','shu',3,[]],
@ -29,6 +29,132 @@ character.diy={
yuji:['zuoci']
},
skill:{
duoqi:{
trigger:{global:'discardAfter'},
filter:function(event,player){
if(_status.currentPhase==player) return false;
if(!player.storage.zhucheng||!player.storage.zhucheng.length) return false;
var evt=event.getParent('phaseUse');
if(evt&&evt.name=='phaseUse') return true;
return false;
},
direct:true,
content:function(){
'step 0'
var bool=false;
if(ai.get.attitude(player,trigger.player)<0&&trigger.player.needsToDiscard()){
bool=true;
}
player.chooseCardButton(get.prompt('zhucheng',_status.currentPhase),player.storage.zhucheng).ai=function(button){
return bool?1:0;
}
'step 1'
if(result.bool){
player.logSkill('zhucheng',_status.currentPhase);
player.$throw(result.links[0]);
player.storage.zhucheng.remove(result.links[0]);
ui.discardPile.appendChild(result.links[0]);
player.syncStorage('zhucheng');
if(player.storage.zhucheng.length==0){
player.unmarkSkill('zhucheng');
}
else{
player.updateMarks();
}
var evt=trigger.getParent('phaseUse');
if(evt&&evt.name=='phaseUse'){
evt.skipped=true;
}
}
},
ai:{
expose:0.2
}
},
zhucheng:{
trigger:{player:'phaseEnd'},
filter:function(event,player){
return !player.storage.zhucheng||!player.storage.zhucheng.length;
},
check:function(event,player){
if(player.storage.zhucheng&&player.storage.zhucheng.length){
if(!player.hasShan()) return false;
if(player.storage.zhucheng.length>=2) return false;
}
return true;
},
intro:{
content:'cards'
},
content:function(){
if(player.storage.zhucheng&&player.storage.zhucheng.length){
player.gain(player.storage.zhucheng,'gain2');
delete player.storage.zhucheng;
player.unmarkSkill('zhucheng');
}
else{
var cards=get.cards(Math.max(1,player.maxHp-player.hp));
player.$gain2(cards);
player.storage.zhucheng=cards;
player.markSkill('zhucheng');
}
},
ai:{
target:function(card,player,target,current){
if(card.name=='sha'&&player.storage.zhucheng&&player.storage.zhucheng.length){
if(player.storage.zhucheng.length>=2){
if(!player.hasFriend()&&player.num('he')-2<player.storage.zhucheng.length) return 'zeroplayertarget';
return 0.1;
}
else{
var he=player.get('he');
var sha=false;
for(var i=0;i<he.length;i++){
if(he[i]=='sha'&&!sha){
sha=true;
}
else{
if(ai.get.value(he[i])<=6){
return [1,0,1,-0.5];
}
}
}
return 'zeroplayertarget';
}
}
}
},
group:'zhucheng2'
},
zhucheng2:{
trigger:{target:'shaBefore'},
check:function(event,player){
if(ai.get.attitude(event.player,player)<=0) return true;
return ai.get.effect(player,event.card,event.player,player)<=0;
},
filter:function(event,player){
return player.storage.zhucheng&&player.storage.zhucheng.length>0;
},
content:function(){
'step 0'
var bool=false;
if(ai.get.effect(player,trigger.card,trigger.player,trigger.player)>=0){
bool=true;
}
var num=player.storage.zhucheng.length;
trigger.player.chooseToDiscard('弃置'+get.cnNumber(num)+'张牌,或令杀无效',num).ai=function(card){
if(bool){
return 7-ai.get.value(card);
}
return 0;
}
'step 1'
if(!result.bool){
trigger.untrigger();
trigger.finish();
}
}
},
diy_jiaoxia:{
audio:['jiaoxia',2],
trigger:{target:'useCardToBegin'},
@ -477,11 +603,11 @@ character.diy={
else if(att==0&&trigger.player.num('he')==0){
bool=1;
}
trigger.player.chooseControl('draw_card','discard_card').ai=function(){
trigger.player.chooseControl(function(){
return bool;
};
}).set('prompt','率言').set('choiceList',['令'+get.translation(player)+'摸一张牌','令'+get.translation(player)+'弃置你一张牌']);
"step 1"
if(result.control=='draw_card'){
if(result.control=='选项一'){
player.draw();
event.finish();
}
@ -694,6 +820,13 @@ character.diy={
diy_lukang:'陆抗',
diy_caiwenji:'蔡昭姬',
diy_zhenji:'甄宓',
zhucheng:'筑城',
zhucheng2:'筑城',
zhucheng_info:'①结束阶段开始时若没有“筑”你可以将牌堆顶的X张牌置于你的武将牌上称为“筑”X为你已损失的体力值与1中的较大值否则你可以获取所有“筑”。②当你成为杀的目标时若有“筑”你可以令此杀的使用者弃置X张牌X为“筑”的数量否则杀对你无效',
duoqi:'夺气',
duoqi_info:'当一名角色于除你之外的角色的出牌阶段内因弃置而失去牌后,你可以将一张“筑”置入弃牌堆,结束此出牌阶段',
siji:'伺机',
ciqiu:'刺酋',
ciqiu2:'刺酋',
@ -708,8 +841,6 @@ character.diy={
jieyan:'劫焰',
honglian:'红莲',
xiongzi:'雄姿',
yaliang:'雅量',
yaliang_info:'每当你对其他角色造成1点伤害后或受到其他角色造成的1点伤害后你可与该角色各摸一张牌。',
luweiyan:'围堰',
guihan:'归汉',
diyduanliang:'断粮',
@ -721,6 +852,8 @@ character.diy={
batu:'霸图',
zaiqix:'再起',
diy_jiaoxia:'皎霞',
yaliang:'雅量',
yaliang_info:'每当你对其他角色造成1点伤害后或受到其他角色造成的1点伤害后你可与该角色各摸一张牌。',
diy_jiaoxia_info:'每当你成为红色牌的目标,你可以摸一张牌',
zaiqix_info:'摸牌阶段若你已受伤你可以放弃摸牌并展示牌堆顶的X+1张牌X为你已损失的体力值其中每有一张♥牌你回复1点体力然后弃掉这些♥牌将其余的牌收入手牌。',
batu_info:'回合结束阶段你可以将手牌数补至XX为现存的势力数',

View File

@ -16,7 +16,7 @@ character.hearth={
hs_magni:['male','shu',4,['zhongjia','dunji']],
hs_liadrin:['female','shu',4,['xueren']],
hs_morgl:['male','wu',3,['s_tuteng']],
hs_khadgar:['male','shu',3,['midian','jinzhou']],
hs_khadgar:['male','shu',3,['midian','fuwen','jinzhou']],
hs_tyrande:['female','wei',3,['yuelu','xingluo']],
hs_neptulon:['male','wu',4,['liechao','qingliu']],
@ -98,6 +98,21 @@ character.hearth={
hs_malfurion:['hs_malorne'],
},
skill:{
fuwen:{
trigger:{player:'phaseDiscardEnd'},
frequent:true,
filter:function(event,player){
if(event.cards){
for(var i=0;i<event.cards.length;i++){
if(get.type(event.cards[i],'trick')=='trick') return true;
}
}
return false;
},
content:function(){
player.changeHujia();
},
},
jinzhou:{
trigger:{player:'phaseEnd'},
direct:true,
@ -135,14 +150,14 @@ character.hearth={
enable:'phaseUse',
usable:1,
filter:function(event,player){
return player.num('h',{type:'trick'})>0;
return player.num('h',{type:['trick','delay']})>0;
},
filterCard:{type:'trick'},
filterCard:{type:['trick','delay']},
check:function(card){
return 10-ai.get.value(card);
},
content:function(){
var list=get.inpile('trick');
var list=get.inpile('trick','trick');
var list2=[];
for(var i=0;i<3;i++){
list2.push(game.createCard(list.randomGet()));
@ -1374,11 +1389,7 @@ character.hearth={
if(num<1){
num=1;
}
var list=['hslingjian_zhongxinghujia','hslingjian_xuanfengzhiren','hslingjian_yinmilichang',
'hslingjian_shengxiuhaojiao','hslingjian_xingtigaizao','hslingjian_shijianhuisu'];
// if(get.mode()=='stone'){
// list.remove('hslingjian_jinjilengdong');
// }
var list=get.typeCard('hslingjian');
var cards=[];
while(num--){
cards.push(game.createCard(list.randomGet()));
@ -5541,10 +5552,12 @@ character.hearth={
hs_tyrande:'泰兰德',
hs_fenjie:'芬杰',
fuwen:'符文',
fuwen_info:'若你弃牌阶段弃置了锦囊牌,你可以获得一点护甲',
jinzhou:'禁咒',
jinzhou_info:'回合结束阶段,若你手牌中有黑桃牌,你可以令一名其他角色的非锁定技失效直到其下一回合结束',
midian:'秘典',
midian_info:'出牌阶段限一次,你可以弃置一张非延时锦囊牌,然后获得三张随机的非延时锦囊牌',
midian_info:'出牌阶段限一次,你可以弃置一张锦囊牌,然后随机获得三张锦囊牌',
yuelu:'月露',
yuelu_info:'在一名角色的濒死阶段,你可以弃置一张黑色牌令其回复一点体力并获得一点护甲',
xingluo:'星落',
@ -5616,7 +5629,7 @@ character.hearth={
zengli:'赠礼',
zengli_info:'出牌阶段限一次,你指定一名其他角色与你各装备一把武器',
xiubu:'修补',
xiubu_info:'每当你装备一把未强化的武器,你可以获得数量等同于武器攻击范围的随机零件(冰冻零件除外)',
xiubu_info:'每当你装备一把未强化的武器,你可以获得数量等同于武器攻击范围的随机零件',
mobao:'魔爆',
mobao_info:'出牌阶段限一次,你可以弃置至多三张黑色牌,然后对所有于上轮对你造成过伤害的角色造成等同于你弃牌数的雷电伤害',
xianji:'献祭',

View File

@ -61,6 +61,8 @@ window.characterRank={
'gjqt_ouyangshaogong',
],
a:[
'hs_khadgar',
'hs_tyrande',
'pal_muchanglan',
'hs_aya',
'ow_heiying',

View File

@ -44,154 +44,6 @@ window.config={
image_background_filter:['default','blur','gray','sepia','invert','saturate','contrast','hue','brightness'],
background_music:['music_default','music_diaochan','music_shezhan','music_danji','music_random','music_off']
},
translate:{
character_play_config:'技能卡牌',
soldier_play_config:'士兵模式',
strategy_play_config:'尔虞我诈',
wuxing_play_config:'五行生克',
sanguozhi:'三国志',
online:'OL',
background_music_config:'背景音乐',
background_audio_config:'游戏音效',
background_speak_config:'人物配音',
background_ogg_config:'补全配音',
music_default:'默认',
music_diaochan:'貂蝉',
music_danji:'单骑',
music_shezhan:'舌战',
music_nizhan:'逆战',
music_yaoshan:'榣山',
music_jingshui:'静水',
music_xingnian:'星念',
music_random:'随机',
music_off:'关闭',
blur:'模糊',
gray:'黑白',
sepia:'褪色',
invert:'反色',
saturate:'饱和',
contrast:'对比',
hue:'偏色',
brightness:'高亮',
white:'白色',
woodden:'木纹',
music:'音乐',
simple:'简约',
newlayout:'新版',
jeans:'牛仔',
metro:'极简',
glass:'玻璃',
paper:'宣纸',
dock:'蓝白',
block:'线条',
round:'圆形',
huangyueying_bg:'逐墨',
huangtian_bg:'黄天',
zhulian_bg:'璧合',
xueji_bg:'雪霁',
haian_bg:'海岸',
paper_bg:'木纹',
yinxiang_bg:'印象',
september_bg:'九月',
zhanhuo_bg:'战火',
zhulin_bg:'竹林',
lvyin_bg:'绿茵',
chunhui_bg:'春晖',
grape_bg:'葡萄',
grass_bg:'芳草',
leaf_bg:'新叶',
space_bg:'空间',
round_dybg:'圆环',
none:'无',
cheat_config:'控制台命令',
paused_config:'暂停背景',
change_choice_config:'开启换将卡',
free_choose_config:'开启自由选将',
change_card_config:'开启手气卡',
change_identity_config:'自由选择身份',
swap_config:'死亡后换人',
revive_config:'开启复活',
auto_skill_config:'自动发动常用技能',
auto_confirm_config:'自动确认',
wuxie_self_config:'不无懈自己',
enable_drag_config:'启用拖拽',
hover_all_config:'悬停显示信息',
hover_handcard_config:'悬停手牌显示信息',
duration_config:'AI出牌间隔',
hoveration_config:'悬停时间',
theme_config:'主题',
layout_config:'布局',
mode_config:'游戏模式',
player_number_config:'游戏人数',
battle_number_config:'参战人数',
difficulty_config:'AI对人类态度',
initshow_draw_config:'首亮摸牌',
ai_strategy_config:'内奸策略',
ai_identity_config:'身份预知',
keep_max_hp_config:'锁定体力上限',
dierestart_config:'死亡后显示重来',
ban_weak_config:'屏蔽弱将',
easy:'友好',
normal:'一般',
hard:'仇视',
double_character_config:'双将模式',
auto_identity_config:'自动显示身份',
double_hp_config:'双将体力上限',
zuidazhi:'最大',
zuixiaozhi:'最小',
pingjun:'平均',
hejiansan:'相加',
zonghe:'总和',
xiangcheng:'相乘',
image_character_config:'角色头像',
image_background_config:'游戏背景',
image_background_filter_config:'背景效果',
config_menu_config:'选项菜单',
show_playerids_config:'显示身份按钮',
show_replay_config:'显示重来按钮',
show_pause_config:'显示暂停按钮',
show_wuxie_config:'显示不询问无懈',
show_wuxie_self_config:'显示不无懈自己',
show_discardpile_config:'暂停时显示弃牌堆',
only_fullskin_config:'隐藏非全身皮肤',
hide_card_image_config:'隐藏卡牌背景图',
show_auto_config:'显示托管按钮',
show_volumn_config:'显示音量按钮',
show_name_config:'显示角色名称',
ui_zoom_config:'界面缩放',
no_ios_zoom_config:'禁止触屏缩放',
show_stat_config:'显示战斗统计',
show_scrollbar_config:'显示滚动条',
mousewheel_config:'滚轮控制手牌',
handcard_scroll_config:'手牌自动滚动',
touchscreen_config:'触屏模式',
fold_card_config:'折叠手牌',
threed_card_config:'立体手牌',
blur_ui_config:'模糊效果',
vertical_scroll_config:'纵向滚动手牌',
animation_config:'游戏特效',
right_sidebar_config:'侧栏靠右',
title_config:'标题栏显示信息',
intro_config:'信息符号',
right_click_config:'右键功能',
right_info_config:'右键显示信息',
long_info_config:'长按显示信息',
sort_config:'手牌分类',
reverse_sort_config:'相反排序',
strict_sort_config:'严格排序',
save_progress_config:'自动保存',
enhance_zhu_config:'加强主公',
suit_sort:'颜色',
number_sort:'点数',
type_sort:'类型',
pause:'暂停',
config:'选项',
auto:'托管'
},
game:'sgs',
duration:500,

View File

@ -6037,6 +6037,10 @@
_lianhuan2:'连环',
qianxing:'潜行',
fengyin:'封印',
pause:'暂停',
config:'选项',
auto:'托管'
},
element:{
content:{
@ -14489,12 +14493,13 @@
if(!parent) return {};
if(typeof level=='number'){
for(var i=1;i<level;i++){
parent=parent.parent;
if(!parent) return {};
parent=parent.parent;
}
}
else if(typeof level=='string'){
for(var i=0;i<20;i++){
if(!parent) return {};
if(parent.name==level) return parent;
parent=parent.parent;
}
@ -15383,7 +15388,7 @@
zhuSkill:{},
fengyin:{
init:function(player,skill){
var skills=player.get('s');
var skills=player.get('s',true,false);
for(var i=0;i<skills.length;i++){
if(get.is.locked(skills[i])){
skills.splice(i--,1);
@ -15394,6 +15399,7 @@
onremove:function(player,skill){
player.enableSkill(skill);
},
locked:true,
mark:true,
intro:{
content:function(storage,player,skill){

View File

@ -16,7 +16,7 @@ window.noname_update={
'card/guozhan.js',
// 'card/sp.js',
'card/yunchou.js',
// 'character/rank.js',
'character/rank.js',
// 'character/extra.js',
'character/ow.js',
'character/hearth.js',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 31 KiB