臣等正欲死战,陛下何故先降?
This commit is contained in:
parent
2f82f5be27
commit
43b04faf36
|
@ -388,7 +388,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
if(card==player.getEquip(2)){
|
||||
if(player.hasSkillTag('noDirectDamage')) return 10;
|
||||
if(game.hasPlayer(function(current){
|
||||
return get.attitude(current,player)<0&¤t.hasSkillTag('fireAttack',null,null,true);
|
||||
return current!=player&&get.attitude(current,player)<0&¤t.hasSkillTag('fireAttack',null,null,true);
|
||||
})) return 0;
|
||||
return 6;
|
||||
}
|
||||
|
|
|
@ -202,13 +202,13 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
fullskin:true,
|
||||
type:'trick',
|
||||
filterTarget:function(card,player,target){
|
||||
if(!get.is.single()&&!target.countCards('e')) return false;
|
||||
return target!=player;
|
||||
return target!=player&&(get.mode()!='guozhan'||target.countCards('e')>0);
|
||||
},
|
||||
enable:true,
|
||||
content:function(){
|
||||
'step 0'
|
||||
if(!target.countCards('e',function(card){
|
||||
if(get.mode()!='guozhan'&&!get.is.single()) event.goto(2);
|
||||
else if(!target.countCards('e',function(card){
|
||||
return lib.filter.cardDiscardable(card,target);
|
||||
})){
|
||||
var next=target.damage();
|
||||
|
@ -216,7 +216,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
event.finish();
|
||||
return;
|
||||
}
|
||||
target.chooseControl('discard_card','take_damage',function(event,player){
|
||||
else target.chooseControl('discard_card','take_damage',function(event,player){
|
||||
if(get.damageEffect(player,event.player,player,'thunder')>=0){
|
||||
return 'take_damage';
|
||||
}
|
||||
|
@ -233,6 +233,21 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
var next=target.damage();
|
||||
if(!get.is.single()) next.nature='thunder'
|
||||
}
|
||||
event.finish();
|
||||
'step 2'
|
||||
target.chooseToDiscard(2,event.forceExecute,'e').set('ai',function(card){
|
||||
var player=_status.event.player;
|
||||
var source=_status.event.getParent().player;
|
||||
if(get.damageEffect(player,source,player,'thunder')>=0){
|
||||
return 0;
|
||||
}
|
||||
if(player.hp>=3){
|
||||
return 4-get.value(card);
|
||||
}
|
||||
return 8-get.value(card);
|
||||
});
|
||||
'step 3'
|
||||
if(event.forceExecute||!result.bool) target.damage('thunder');
|
||||
},
|
||||
ai:{
|
||||
order:7,
|
||||
|
@ -246,6 +261,14 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
result:{
|
||||
target:function(player,target){
|
||||
if(get.mode()!='guozhan'&&!get.is.single()){
|
||||
if(target.countCards('e',function(card){
|
||||
return get.value(card,target)<=0;
|
||||
})) return 1;
|
||||
var es=target.countCards('e');
|
||||
if(es<2) return -1.5;
|
||||
return 3/es;
|
||||
}
|
||||
return -1-target.countCards('e');
|
||||
}
|
||||
}
|
||||
|
@ -1386,7 +1409,8 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
xietianzi_info:'出牌阶段,对自己使用。你结束出牌阶段,若如此做,弃牌阶段结束时,你可以弃置一张手牌,获得一个额外的回合',
|
||||
xietianzi_info_guozhan:'出牌阶段,对为大势力角色的你使用。你结束出牌阶段,若如此做,弃牌阶段结束时,你可以弃置一张手牌,获得一个额外的回合',
|
||||
shuiyanqijunx:'水淹七军',
|
||||
shuiyanqijunx_info:'出牌阶段,对一名装备区里有牌的其他角色使用。目标角色选择一项:1、弃置装备区里的所有牌;2、受到你造成的1点雷电伤害',
|
||||
shuiyanqijunx_info_guozhan:'出牌阶段,对一名装备区里有牌的其他角色使用。目标角色选择一项:1、弃置装备区里的所有牌;2、受到你造成的1点雷电伤害',
|
||||
shuiyanqijunx_info:'出牌阶段,对一名其他角色使用。目标角色选择一项:1、弃置装备区内的两张牌;2、受到你造成的1点雷电伤害',
|
||||
lulitongxin:'勠力同心',
|
||||
lulitongxin_info:'出牌阶段,对所有大势力角色或所有小势力角色使用。若目标角色:不处于“连环状态”,其横置;处于“连环状态”,其摸一张牌',
|
||||
lulitongxin_info_versus:'出牌阶段,对所有敌方角色或所有己方角色使用。若目标角色:为敌方角色且不处于“连环状态”,其横置;为己方角色且处于“连环状态”,其摸一张牌。',
|
||||
|
|
|
@ -551,7 +551,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
if(card){
|
||||
var val2=get.value(card,target);
|
||||
if(val2>0) return val2/4;
|
||||
if(val2>0) return -val2/4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
|
|
|
@ -6067,6 +6067,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
liuzan:['re_liuzan','liuzan'],
|
||||
sufei:['sp_sufei','xf_sufei'],
|
||||
jiakui:['jiakui','old_jiakui'],
|
||||
shenpei:['shenpei','sp_shenpei'],
|
||||
},
|
||||
translate:{
|
||||
liuzan:'手杀留赞',
|
||||
|
|
|
@ -619,6 +619,7 @@ window.noname_character_rank={
|
|||
'ns_yuanxi',
|
||||
'mini_sunquan',
|
||||
'mini_zuoci',
|
||||
'mini_jiangwei',
|
||||
],
|
||||
b:[
|
||||
'diy_feishi',
|
||||
|
@ -920,6 +921,7 @@ window.noname_character_rank={
|
|||
'ns_lijue',
|
||||
'ns_zhangji',
|
||||
'ol_dingyuan',
|
||||
'mini_zhangchunhua',
|
||||
],
|
||||
c:[
|
||||
'xiahoudun',
|
||||
|
@ -1491,6 +1493,8 @@ window.noname_character_rank={
|
|||
'ns_fanchou',
|
||||
'xin_zhuran',
|
||||
'mini_sunquan',
|
||||
'mini_jiangwei',
|
||||
'mini_zhangchunhua',
|
||||
],
|
||||
junk:[
|
||||
'sunshao',
|
||||
|
|
|
@ -7198,11 +7198,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
menghuo:['re_menghuo','menghuo'],
|
||||
zhurong:['re_zhurong','zhurong'],
|
||||
sunjian:['ol_sunjian','re_sunjian','sunjian'],
|
||||
jiaxu:['jiaxu','ns_jiaxu'],
|
||||
jiaxu:['jiaxu','sp_jiaxu','ns_jiaxu'],
|
||||
dongzhuo:['ol_dongzhuo','re_dongzhuo','dongzhuo'],
|
||||
dengai:['re_dengai','ol_dengai','dengai'],
|
||||
zhanghe:['zhanghe','sp_zhanghe','yj_zhanghe'],
|
||||
jiangwei:['re_jiangwei','sp_jiangwei','jiangwei'],
|
||||
jiangwei:['re_jiangwei','sp_jiangwei','mini_jiangwei','jiangwei'],
|
||||
liushan:['ol_liushan','re_liushan','liushan'],
|
||||
sunce:['re_sunben','re_sunce','sunce'],
|
||||
zhangzhang:['re_zhangzhang','zhangzhang'],
|
||||
|
|
|
@ -9369,7 +9369,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var evt2=event.getParent('phaseUse');
|
||||
if(evt2.player!=player) return false;
|
||||
return player.getHistory('useCard',function(evt){
|
||||
return ['sha','juedou'].contains(evt.card.name)&&evt.getParent('phaseUse')==evt2;
|
||||
return evt.card.name==event.card.name&&evt.getParent('phaseUse')==evt2;
|
||||
}).indexOf(event.getParent())==0;
|
||||
},
|
||||
direct:true,
|
||||
|
@ -14698,7 +14698,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
wangyun:['re_wangyun','wangyun','old_wangyun'],
|
||||
zhangliang:['re_zhangliang','zhangliang'],
|
||||
lingju:['lingju','old_lingju'],
|
||||
guansuo:['guansuo','old_guansuo'],
|
||||
guansuo:['guansuo','ol_guansuo'],
|
||||
zhangxingcai:['old_zhangxingcai'],
|
||||
},
|
||||
translate:{
|
||||
|
@ -15255,7 +15255,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
bushi_info:'当你受到1点伤害后,或其他角色受到你造成的1点伤害后,受到伤害的角色可以获得你的一张「米」',
|
||||
midao_info:'一名角色的判定牌生效前,你可以打出一张「米」代替之。',
|
||||
fengpo:'凤魄',
|
||||
fengpo_info:'当你于出牌阶段内使用第一张【杀】或【决斗】指定目标后,若目标角色数为1,你可以选择一项:1.摸X张牌;2.令此牌的伤害值基数+X。(X为其手牌中方牌的数量)',
|
||||
fengpo_info:'每种牌名限一次,当你于出牌阶段内第一次使用【杀】或【决斗】指定目标后,若目标角色数为1,你可以选择一项:1.摸X张牌;2.令此牌的伤害值基数+X。(X为其手牌中方牌的数量)',
|
||||
chenqing:'陈情',
|
||||
chenqing_info:'每轮限一次,当一名角色处于濒死状态时,你可以令另一名其他角色摸四张牌,然后其弃置四张牌。若其以此法弃置的四张牌花色各不相同,则视为该角色对濒死的角色使用一张【桃】。',
|
||||
mozhi:'默识',
|
||||
|
|
136
character/sp2.js
136
character/sp2.js
|
@ -65,6 +65,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
yj_caoang:['male','wei',4,['yjxuepin']],
|
||||
mini_sunquan:['male','wu',4,['minizhiheng','jiuyuan'],['zhu']],
|
||||
mini_zuoci:['male','qun',3,['minishendao','minixinsheng']],
|
||||
mini_jiangwei:['male','shu',4,['minitiaoxin','zhiji']],
|
||||
mini_diaochan:['female','qun',3,['minilijian','rebiyue']],
|
||||
mini_zhangchunhua:['female','wei',3,['jueqing','minishangshi']],
|
||||
},
|
||||
characterSort:{
|
||||
sp2:{
|
||||
|
@ -78,13 +81,135 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
sp_guandu:["sp_zhanghe","xunchen","sp_shenpei","gaolan","lvkuanglvxiang","chunyuqiong","sp_xuyou"],
|
||||
sp_huangjin:['liuhong','zhujun','re_hejin','hansui'],
|
||||
sp_decade:['wulan','leitong','huaman','wangshuang','wenyang','re_liuzan','re_sunluyu','caobuxing','ol_xinxianying','ol_yujin','re_maliang','xin_baosanniang','liubian'],
|
||||
sp_mini:["mini_sunquan","mini_zuoci"],
|
||||
sp_mini:["mini_sunquan","mini_zuoci","mini_jiangwei","mini_diaochan","mini_zhangchunhua"],
|
||||
sp_luanwu:["ns_lijue","ns_zhangji","ns_fanchou"],
|
||||
sp_yongjian:["ns_chendao","yj_caoang"],
|
||||
sp_s:["ns_jiaxu"],
|
||||
}
|
||||
},
|
||||
skill:{
|
||||
minishangshi:{
|
||||
audio:2,
|
||||
trigger:{player:['loseAfter','changeHp']},
|
||||
frequent:true,
|
||||
filter:function(event,player){
|
||||
return player.countCards('h')<Math.max(1,player.getDamagedHp());
|
||||
},
|
||||
content:function(){
|
||||
player.drawTo(Math.max(player.getDamagedHp(),1));
|
||||
},
|
||||
ai:{
|
||||
noh:true,
|
||||
skillTagFilter:function(player,tag){
|
||||
if(tag=='noh'&&Math.max(1,player.getDamagedHp())<player.countCards('h')){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
minilijian:{
|
||||
trigger:{player:'useCard2'},
|
||||
direct:true,
|
||||
audio:'lijian',
|
||||
usable:1,
|
||||
filter:function(event,player){
|
||||
if(!['sha','juedou'].contains(event.card.name)) return false;
|
||||
var info=get.info(event.card);
|
||||
if(info.allowMultiple==false) return false;
|
||||
if(event.targets&&!info.multitarget){
|
||||
if(game.hasPlayer(function(current){
|
||||
return current.sex=='male'&&!event.targets.contains(current)&&lib.filter.targetEnabled2(event.card,player,current)&&lib.filter.targetInRange(event.card,player,current);
|
||||
})){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
var prompt2='为'+get.translation(trigger.card)+'增加一个目标'
|
||||
player.chooseTarget(get.prompt('minilijian'),function(card,player,target){
|
||||
var player=_status.event.player;
|
||||
return target.sex=='male'&&!_status.event.targets.contains(target)&&lib.filter.targetEnabled2(_status.event.card,player,target)&&lib.filter.targetInRange(_status.event.card,player,target);
|
||||
}).set('prompt2',prompt2).set('ai',function(target){
|
||||
var trigger=_status.event.getTrigger();
|
||||
var player=_status.event.player;
|
||||
return get.effect(target,trigger.card,player,player);
|
||||
}).set('card',trigger.card).set('targets',trigger.targets);
|
||||
'step 1'
|
||||
if(result.bool){
|
||||
if(!event.isMine()) game.delayx();
|
||||
event.targets=result.targets;
|
||||
}
|
||||
else{
|
||||
event.finish();
|
||||
}
|
||||
'step 2'
|
||||
if(event.targets){
|
||||
player.logSkill('minilijian',event.targets);
|
||||
trigger.targets.addArray(event.targets);
|
||||
}
|
||||
},
|
||||
|
||||
ai:{
|
||||
effect:{
|
||||
player:function(card,player,target,current,isLink){
|
||||
if(!isLink&&(card.name=='sha'||card.name=='juedou')&&(!player.storage.counttrigger||!player.storage.counttrigger.minilijian)){
|
||||
if(player._minilijiantemp) return;
|
||||
player._minilijiantemp=true;
|
||||
if(get.effect(target,card,player,player)<=0){
|
||||
delete player._minilijiantemp;
|
||||
return;
|
||||
}
|
||||
if(game.hasPlayer(function(current){
|
||||
return current!=target&¤t.sex=='male'&&
|
||||
player.canUse(card,current)&&get.effect(current,card,player,player)>0;
|
||||
})){
|
||||
delete player._minilijiantemp;
|
||||
return [1,1];
|
||||
}
|
||||
delete player._minilijiantemp;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
minitiaoxin:{
|
||||
trigger:{player:'phaseUseBegin'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return game.hasPlayer(function(current){
|
||||
return current!=player&¤t.countDiscardableCards(player,'h')>0;
|
||||
});
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseTarget(get.prompt2('minitiaoxin'),function(card,player,target){
|
||||
return target!=player&&target.countDiscardableCards(player,'h')>0;
|
||||
}).set('ai',function(target){
|
||||
var att=get.attitude(_status.event.player,target);
|
||||
if(target.countCards('h')==1) att=get.sgn(att);
|
||||
return -att;
|
||||
});
|
||||
'step 1'
|
||||
if(result.bool){
|
||||
var target=result.targets[0];
|
||||
event.target=target;
|
||||
player.logSkill('minitiaoxin',target);
|
||||
player.discardPlayerCard(target,true,[1,2],'h');
|
||||
}
|
||||
else event.finish();
|
||||
'step 2'
|
||||
if(result.cards&&result.cards.length&&player.countCards('h')>0){
|
||||
for(var i of result.cards){
|
||||
if(get.name(i,target)=='sha'){
|
||||
player.chooseToDiscard('h',true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
minishendao:{
|
||||
audio:'rehuashen',
|
||||
trigger:{
|
||||
|
@ -6866,6 +6991,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
minishendao_info:'你的判定牌生效前,你可以将判定结果改为任意花色。',
|
||||
minixinsheng:'新生',
|
||||
minixinsheng_info:'当你受到伤害后,你可以展示牌堆顶的三张牌,然后获得其中每种花色的牌各一张。',
|
||||
mini_jiangwei:'SP姜维',
|
||||
minitiaoxin:'挑衅',
|
||||
minitiaoxin_info:'出牌阶段开始时,你可以弃置一名其他角色的两张手牌。若你以此法弃置的牌中有【杀】,则你弃置一张手牌。',
|
||||
mini_diaochan:'SP貂蝉',
|
||||
minilijian:'离间',
|
||||
minilijian_info:'每回合限触发一次,当你使用【杀】或【决斗】指定目标后,你可以为此牌增加一个目标。',
|
||||
mini_zhangchunhua:'SP张春华',
|
||||
minishangshi:'伤逝',
|
||||
minishangshi_info:'当你的手牌数小于X时,你可以将手牌摸至X张(X为你已损失的体力值且至少为1)',
|
||||
|
||||
sp_whlw:"文和乱武",
|
||||
sp_zlzy:"逐鹿中原",
|
||||
|
|
|
@ -1420,14 +1420,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
for(var i=0;i<top.length;i++){
|
||||
ui.cardPile.insertBefore(top[i],ui.cardPile.firstChild);
|
||||
}
|
||||
for(i=0;i<bottom.length;i++){
|
||||
ui.cardPile.appendChild(bottom[i]);
|
||||
}
|
||||
for(i=0;i<event.cards.length;i++){
|
||||
if(!top.contains(event.cards[i])&&!bottom.contains(event.cards[i])){
|
||||
ui.cardPile.appendChild(event.cards[i]);
|
||||
}
|
||||
}
|
||||
for(i=0;i<bottom.length;i++){
|
||||
ui.cardPile.appendChild(bottom[i]);
|
||||
}
|
||||
player.popup(get.cnNumber(top.length)+'上'+get.cnNumber(event.cards.length-top.length)+'下');
|
||||
game.log(player,'将'+get.cnNumber(top.length)+'张牌置于牌堆顶');
|
||||
game.updateRoundNumber();
|
||||
|
@ -2680,7 +2680,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
characterReplace:{
|
||||
caocao:['re_caocao','caocao'],
|
||||
guojia:['re_guojia','rguojia'],
|
||||
guojia:['re_guojia','guojia'],
|
||||
simayi:['re_simayi','simayi'],
|
||||
zhenji:['re_zhenji','zhenji'],
|
||||
xuzhu:['re_xuzhu','xuzhu'],
|
||||
|
@ -2702,7 +2702,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
sunshangxiang:['re_sunshangxiang','sp_sunshangxiang','sunshangxiang'],
|
||||
ganning:['re_ganning','yj_ganning','sp_ganning','ganning'],
|
||||
lvbu:['re_lvbu','lvbu'],
|
||||
diaochan:['re_diaochan','sp_diaochan','ganning'],
|
||||
diaochan:['re_diaochan','sp_diaochan','mini_diaochan','diaochan'],
|
||||
huatuo:['re_huatuo','old_huatuo','huatuo'],
|
||||
huaxiong:['re_huaxiong','old_huaxiong','huaxiong','ol_huaxiong'],
|
||||
yuanshu:['yl_yuanshu','yuanshu','re_yuanshu','old_yuanshu','ol_yuanshu'],
|
||||
|
|
|
@ -12054,13 +12054,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
characterReplace:{
|
||||
caozhi:['re_caozhi','caozhi'],
|
||||
zhangchunhua:['zhangchunhua','mini_zhangchunhua'],
|
||||
yujin:['yujin_yujin','re_yujin','ol_yujin','xin_yujin','yujin'],
|
||||
xushu:['re_xushu','xin_xushu','xushu'],
|
||||
fazheng:['xin_fazheng','fazheng'],
|
||||
masu:['xin_masu','re_masu','masu'],
|
||||
xusheng:['xin_xusheng','re_xusheng','xusheng'],
|
||||
xusheng:['xin_xusheng','re_xusheng','xusheng','old_xusheng'],
|
||||
wuguotai:['re_wuguotai','wuguotai'],
|
||||
lingtong:['xin_lingtong','re_lingtong','lingtong'],
|
||||
lingtong:['xin_lingtong','re_lingtong','lingtong','old_lingtong'],
|
||||
gaoshun:['gaoshun','re_gaoshun'],
|
||||
zhonghui:['re_zhonghui','zhonghui','old_zhonghui'],
|
||||
wangyi:['wangyi','old_wangyi'],
|
||||
|
@ -12093,7 +12094,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
quancong:['re_quancong','quancong','old_quancong'],
|
||||
sunxiu:['re_sunxiu','sunxiu'],
|
||||
zhuzhi:['zhuzhi','old_zhuzhi'],
|
||||
liuyu:['liuyu','old_liuyu'],
|
||||
liuyu:['liuyu','ol_liuyu'],
|
||||
zhangrang:['zhangrang','ol_zhangrang','junk_zhangrang'],
|
||||
jikang:['re_jikang','jikang'],
|
||||
xinxianying:['xinxianying','ol_xinxianying','sp_xinxianying'],
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
window.noname_asset_list=[
|
||||
'v1.9.106.3',
|
||||
'v1.9.106.3.1',
|
||||
'audio/background/aozhan_chaoming.mp3',
|
||||
'audio/background/aozhan_online.mp3',
|
||||
'audio/background/aozhan_rewrite.mp3',
|
||||
|
@ -3495,6 +3495,8 @@ window.noname_asset_list=[
|
|||
'image/character/mini_sunquan.jpg',
|
||||
'image/character/mini_zhugeliang.jpg',
|
||||
'image/character/mini_zuoci.jpg',
|
||||
'image/character/mini_zhangchunhua.jpg',
|
||||
'image/character/mini_jiangwei.jpg',
|
||||
|
||||
'image/character/baiwuchang.jpg',
|
||||
'image/character/baosanniang.jpg',
|
||||
|
|
153
game/game.js
153
game/game.js
|
@ -15698,9 +15698,162 @@
|
|||
},player,player.isLinked());
|
||||
game.addVideo('link',player,player.isLinked());
|
||||
},
|
||||
chooseToGuanxing:function(){
|
||||
"step 0"
|
||||
if(player.isUnderControl()){
|
||||
game.swapPlayerAuto(player);
|
||||
}
|
||||
var cards=get.cards(num);
|
||||
event.cards=cards;
|
||||
var switchToAuto=(event.ai||function(){
|
||||
_status.imchoosing=false;
|
||||
if(event.dialog) event.dialog.close();
|
||||
if(event.control) event.control.close();
|
||||
var top=[];
|
||||
var bottom;
|
||||
cards.sort(function(a,b){
|
||||
return get.value(b,player)-get.value(a,player);
|
||||
});
|
||||
while(cards.length){
|
||||
if(get.value(cards[0],player)<=5) break;
|
||||
top.unshift(cards.shift());
|
||||
}
|
||||
bottom=cards;
|
||||
for(var i=0;i<top.length;i++){
|
||||
ui.cardPile.insertBefore(top[i],ui.cardPile.firstChild);
|
||||
}
|
||||
for(i=0;i<bottom.length;i++){
|
||||
ui.cardPile.appendChild(bottom[i]);
|
||||
}
|
||||
player.popup(get.cnNumber(top.length)+'上'+get.cnNumber(bottom.length)+'下');
|
||||
game.log(player,'将'+get.cnNumber(top.length)+'张牌置于牌堆顶');
|
||||
game.delay(2);
|
||||
});
|
||||
var chooseButton=function(player,cards){
|
||||
var event=_status.event;
|
||||
player=player||event.player;
|
||||
cards=cards||event.cards;
|
||||
event.top=[];
|
||||
event.bottom=[];
|
||||
event.status=true;
|
||||
event.dialog=ui.create.dialog('按顺序选择置于牌堆顶的牌(先选择的在上)',cards);
|
||||
for(var i=0;i<event.dialog.buttons.length;i++){
|
||||
event.dialog.buttons[i].classList.add('pointerdiv');
|
||||
}
|
||||
event.switchToAuto=function(){
|
||||
event._result='ai';
|
||||
event.dialog.close();
|
||||
event.control.close();
|
||||
_status.imchoosing=false;
|
||||
},
|
||||
event.control=ui.create.control('ok','pileTop','pileBottom',function(link){
|
||||
var event=_status.event;
|
||||
if(link=='ok'){
|
||||
event._result={
|
||||
top:[],
|
||||
bottom:[]
|
||||
}
|
||||
for(var i=0;i<event.top.length;i++){
|
||||
event._result.top.push(event.top[i].link);
|
||||
}
|
||||
for(var i=0;i<event.bottom.length;i++){
|
||||
event._result.bottom.push(event.bottom[i].link);
|
||||
}
|
||||
event.dialog.close();
|
||||
event.control.close();
|
||||
game.resume();
|
||||
_status.imchoosing=false;
|
||||
}
|
||||
else if(link=='pileTop'){
|
||||
event.status=true;
|
||||
event.dialog.content.childNodes[0].innerHTML='按顺序选择置于牌堆顶的牌';
|
||||
}
|
||||
else{
|
||||
event.status=false;
|
||||
event.dialog.content.childNodes[0].innerHTML='按顺序选择置于牌堆底的牌';
|
||||
}
|
||||
})
|
||||
for(var i=0;i<event.dialog.buttons.length;i++){
|
||||
event.dialog.buttons[i].classList.add('selectable');
|
||||
}
|
||||
event.custom.replace.button=function(link){
|
||||
var event=_status.event;
|
||||
if(link.classList.contains('target')){
|
||||
link.classList.remove('target');
|
||||
event.top.remove(link);
|
||||
}
|
||||
else if(link.classList.contains('glow')){
|
||||
link.classList.remove('glow');
|
||||
event.bottom.remove(link);
|
||||
}
|
||||
else if(event.status){
|
||||
link.classList.add('target');
|
||||
event.top.unshift(link);
|
||||
}
|
||||
else{
|
||||
link.classList.add('glow');
|
||||
event.bottom.push(link);
|
||||
}
|
||||
}
|
||||
event.custom.replace.window=function(){
|
||||
for(var i=0;i<_status.event.dialog.buttons.length;i++){
|
||||
_status.event.dialog.buttons[i].classList.remove('target');
|
||||
_status.event.dialog.buttons[i].classList.remove('glow');
|
||||
_status.event.top.length=0;
|
||||
_status.event.bottom.length=0;
|
||||
}
|
||||
}
|
||||
game.pause();
|
||||
game.countChoose();
|
||||
};
|
||||
event.switchToAuto=switchToAuto;
|
||||
if(event.isMine()){
|
||||
chooseButton();
|
||||
}
|
||||
else if(event.isOnline()){
|
||||
event.player.send(chooseButton,event.player,event.cards);
|
||||
event.player.wait();
|
||||
game.pause();
|
||||
}
|
||||
else{
|
||||
event.switchToAuto();
|
||||
event.finish();
|
||||
}
|
||||
"step 1"
|
||||
var result=event.result||result;
|
||||
if(!result||result=='ai'){
|
||||
event.switchToAuto();
|
||||
}
|
||||
else{
|
||||
var top=result.top||[];
|
||||
var bottom=result.bottom||[];
|
||||
for(var i=0;i<top.length;i++){
|
||||
ui.cardPile.insertBefore(top[i],ui.cardPile.firstChild);
|
||||
}
|
||||
for(i=0;i<event.cards.length;i++){
|
||||
if(!top.contains(event.cards[i])&&!bottom.contains(event.cards[i])){
|
||||
ui.cardPile.appendChild(event.cards[i]);
|
||||
}
|
||||
}
|
||||
for(i=0;i<bottom.length;i++){
|
||||
ui.cardPile.appendChild(bottom[i]);
|
||||
}
|
||||
player.popup(get.cnNumber(top.length)+'上'+get.cnNumber(event.cards.length-top.length)+'下');
|
||||
game.log(player,'将'+get.cnNumber(top.length)+'张牌置于牌堆顶');
|
||||
game.updateRoundNumber();
|
||||
game.delay(2);
|
||||
}
|
||||
},
|
||||
},
|
||||
player:{
|
||||
//新函数
|
||||
chooseToGuanxing:function(num){
|
||||
var next=game.createEvent('chooseToGuanxing');
|
||||
next.num=num||1;
|
||||
next.player=this;
|
||||
next.setContent('chooseToGuanxing');
|
||||
return next;
|
||||
},
|
||||
$throwEmotion:function(target,name){
|
||||
game.addVideo('throwEmotion',this,[target.dataset.position,name]);
|
||||
var getLeft=function(player){
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
window.bannedKeyWords=[
|
||||
'ghs','直肠','性交','做爱','http','吃奶','骚逼','哈巴狗','美眉','癌','屁眼','艹','傻逼','操你','做鸡','奸','姦','华为','屄','狗子','屎','同性恋','肖战','鸡巴','精液','粪水','挂月亮中','贱骨头','吃屁','傻','奥利给',
|
||||
'ghs','直肠','性交','做爱','http','吃奶','骚逼','哈巴狗','美眉','癌','屁眼','艹','傻逼','操你','做鸡','奸','姦','华为','屄','狗子','屎','同性恋','肖战','鸡巴','精液','粪水','挂月亮中','贱骨头','吃屁','傻','奥利给','丁真','蛆','鼠鼠','鼠人','神友',
|
||||
];
|
|
@ -1,26 +1,25 @@
|
|||
window.noname_update={
|
||||
version:'1.9.106.3',
|
||||
update:'1.9.106.2.2',
|
||||
version:'1.9.106.3.1',
|
||||
update:'1.9.106.3',
|
||||
changeLog:[
|
||||
'同名武将替换选择',
|
||||
'微信小程序·欢乐三国杀',
|
||||
'bug修复',
|
||||
],
|
||||
files:[
|
||||
//'card/extra.js',
|
||||
'card/extra.js',
|
||||
//'card/huanlekapai.js',
|
||||
//'card/sp.js',
|
||||
'card/standard.js',
|
||||
//'card/standard.js',
|
||||
//'card/swd.js',
|
||||
//'card/mtg.js',
|
||||
//'card/gujian.js',
|
||||
//'card/guozhan.js',
|
||||
'card/guozhan.js',
|
||||
//'card/gwent.js',
|
||||
//'card/yunchou.js',
|
||||
//'card/zhenfa.js',
|
||||
//'card/zhulu.js',
|
||||
'character/diy.js',
|
||||
'character/extra.js',
|
||||
'card/zhulu.js',
|
||||
//'character/diy.js',
|
||||
//'character/extra.js',
|
||||
//'character/hearth.js',
|
||||
//'character/gujian.js',
|
||||
//'character/gwent.js',
|
||||
|
@ -29,7 +28,7 @@ window.noname_update={
|
|||
//'character/mtg.js',
|
||||
//'character/old.js',
|
||||
'character/rank.js',
|
||||
'character/refresh.js',
|
||||
//'character/refresh.js',
|
||||
'character/shenhua.js',
|
||||
'character/sp.js',
|
||||
'character/sp2.js',
|
||||
|
@ -41,23 +40,23 @@ window.noname_update={
|
|||
'character/yijiang.js',
|
||||
//'character/yxs.js',
|
||||
//'extension/boss/extension.js',
|
||||
'layout/default/layout.css',
|
||||
//'layout/default/layout.css',
|
||||
//'layout/nova/layout.css',
|
||||
'mode/identity.js',
|
||||
'mode/doudizhu.js',
|
||||
//'mode/doudizhu.js',
|
||||
//'mode/guozhan.js',
|
||||
//'mode/chess.js',
|
||||
//'mode/tafang.js',
|
||||
//'mode/single.js',
|
||||
'mode/stone.js',
|
||||
'mode/brawl.js',
|
||||
'mode/versus.js',
|
||||
//'mode/stone.js',
|
||||
//'mode/brawl.js',
|
||||
//'mode/versus.js',
|
||||
//'mode/boss.js',
|
||||
'game/game.js',
|
||||
//'game/keyWords.js',
|
||||
'game/keyWords.js',
|
||||
//'game/server.js',
|
||||
//'game/NoSleep.js',
|
||||
'game/config.js',
|
||||
//'game/config.js',
|
||||
//'game/package.js',
|
||||
//'game/asset.js',
|
||||
//'game/source.js',
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
|
@ -1705,8 +1705,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
else{
|
||||
game.me.init(event.choosed[0]);
|
||||
}
|
||||
event.list.remove(game.me.name);
|
||||
event.list.remove(game.me.name2);
|
||||
event.list.remove(get.sourceCharacter(game.me.name));
|
||||
event.list.remove(get.sourceCharacter(game.me.name2));
|
||||
if(game.me==game.zhu&&game.players.length>4){
|
||||
game.me.hp++;
|
||||
game.me.maxHp++;
|
||||
|
|
Loading…
Reference in New Issue