v1.9.96.9

This commit is contained in:
Spmario233 2020-01-05 17:13:44 +08:00 committed by GitHub
parent b9064b6daf
commit a35da27375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 93 deletions

View File

@ -142,9 +142,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
else{ else{
player=game.players[Math.floor(Math.random()*game.players.length)]; player=game.players[Math.floor(Math.random()*game.players.length)];
} }
event.playerx=player;
event.trigger('gameStart'); event.trigger('gameStart');
game.gameDraw(player); "step 3"
game.gameDraw(event.playerx);
game.broadcastAll(function(player){ game.broadcastAll(function(player){
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
game.players[i].name='unknown'+get.distance(player,game.players[i],'absolute'); game.players[i].name='unknown'+get.distance(player,game.players[i],'absolute');
@ -153,7 +155,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
// lib.translate[game.players[i].name]+='(你)'; // lib.translate[game.players[i].name]+='(你)';
// } // }
} }
},player); },event.playerx);
var players=get.players(lib.sort.position); var players=get.players(lib.sort.position);
var info=[]; var info=[];
@ -175,7 +177,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.players[i].ai.shown=0; game.players[i].ai.shown=0;
} }
} }
game.phaseLoop(player); game.phaseLoop(event.playerx);
}, },
card:{ card:{
junling1:{ junling1:{
@ -3170,74 +3172,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
player.viewCharacter(target,1); player.viewCharacter(target,1);
}, },
}, },
aozhan:{
mod:{
targetEnabled:function(card){
if(card.name=='tao'&&get.itemtype(card)=='card') return false;
},
cardSavable:function(card){
if(card.name=='tao'&&get.itemtype(card)=='card') return false;
},
},
group:["aozhan_sha","aozhan_shan"],
subSkill:{
sha:{
enable:["chooseToUse","chooseToRespond"],
filterCard:{
name:"tao",
},
viewAs:{
name:"sha",
},
viewAsFilter:function (player){
if(!player.countCards('h','tao')) return false;
},
prompt:"将一张桃当杀使用或打出",
check:function (){return 1},
ai:{
effect:{
target:function (card,player,target,current){
if(get.tag(card,'respondSha')&&current<0) return 0.6
},
},
respondSha:true,
skillTagFilter:function (player){
if(!player.countCards('h','tao')) return false;
},
order:function (){
return get.order({name:'sha'})-0.1;
},
},
sub:true,
},
shan:{
enable:["chooseToRespond","chooseToUse"],
filterCard:{
name:"tao",
},
viewAs:{
name:"shan",
},
prompt:"将一张桃当闪打出",
check:function (){return 1},
viewAsFilter:function (player){
if(!player.countCards('h','tao')) return false;
},
ai:{
respondShan:true,
skillTagFilter:function (player){
if(!player.countCards('h','tao')) return false;
},
effect:{
target:function (card,player,target,current){
if(get.tag(card,'respondShan')&&current<0) return 0.6
},
},
},
sub:true,
},
},
},
_aozhan_judge:{ _aozhan_judge:{
trigger:{ trigger:{
player:"phaseBefore", player:"phaseBefore",
@ -3266,6 +3200,28 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
ui.aozhan=ui.create.div('.touchinfo.left',ui.window); ui.aozhan=ui.create.div('.touchinfo.left',ui.window);
ui.aozhan.innerHTML='鏖战模式'; ui.aozhan.innerHTML='鏖战模式';
if(ui.time3) ui.time3.style.display='none'; if(ui.time3) ui.time3.style.display='none';
ui.aozhanInfo=ui.create.system('鏖战模式',null,true);
lib.setPopped(ui.aozhanInfo,function(){
var uiintro=ui.create.dialog('hidden');
uiintro.add('鏖战模式');
var list=[
'当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。',
'在鏖战模式下,任何角色均不是非转化的【桃】的合法目标。【桃】可以被当做【杀】或【闪】使用或打出。',
'进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。'
];
var intro='<ul style="text-align:left;margin-top:0;width:450px">';
for(var i=0;i<list.length;i++){
intro+='<li>'+list[i];
}
intro+='</ul>'
uiintro.add('<div class="text center">'+intro+'</div>');
var ul=uiintro.querySelector('ul');
if(ul){
ul.style.width='180px';
}
uiintro.add(ui.create.div('.placeholder'));
return uiintro;
},250);
game.playBackgroundMusic(); game.playBackgroundMusic();
}); });
game.countPlayer(function(current){current.addSkill('aozhan')}); game.countPlayer(function(current){current.addSkill('aozhan')});
@ -7132,8 +7088,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
"yinyang_skill_add_info":"", "yinyang_skill_add_info":"",
"yinyang_add":"阴阳鱼", "yinyang_add":"阴阳鱼",
"yinyang_add_info":"", "yinyang_add_info":"",
aozhan:"鏖战",
"aozhan_info":"◇锁定技,你的【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。",
"new_jushou":"据守", "new_jushou":"据守",
"new_jushou_info":"结束阶段你可以摸X张牌X为亮明势力数然后弃置一张手牌若以此法弃置的是装备牌则改为你使用之。若X大于2则你将武将牌叠置。", "new_jushou_info":"结束阶段你可以摸X张牌X为亮明势力数然后弃置一张手牌若以此法弃置的是装备牌则改为你使用之。若X大于2则你将武将牌叠置。",
@ -7881,6 +7835,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
else{ else{
this.maxHp--; this.maxHp--;
} }
this.update();
}, },
hideCharacter:function(num,log){ hideCharacter:function(num,log){
if(this.isUnseen(2)){ if(this.isUnseen(2)){

View File

@ -294,9 +294,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
_status.videoInited=true; _status.videoInited=true;
game.addVideo('init',null,info); game.addVideo('init',null,info);
"step 6"
game.gameDraw(game.zhong||game.zhu||_status.firstAct||game.me); game.gameDraw(_status.firstAct2||game.zhong||game.zhu||_status.firstAct||game.me);
game.phaseLoop(game.zhong||game.zhu||_status.firstAct||game.me); game.phaseLoop(_status.firstAct2||game.zhong||game.zhu||_status.firstAct||game.me);
}, },
game:{ game:{
getState:function(){ getState:function(){
@ -936,7 +937,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
} }
if(!game.zhu) game.zhu=game.me; if(!game.zhu) game.zhu=game.me;
else{ else{
game.zhu.setIdentity(); game.zhu.setIdentity();
game.zhu.identityShown=true; game.zhu.identityShown=true;

View File

@ -3798,23 +3798,21 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
'mazhong','mayunlu','litong','wenpin' 'mazhong','mayunlu','litong','wenpin'
], ],
choiceFour:[ choiceFour:[
'sunquan','re_ganning','re_lvmeng','re_zhouyu','re_daqiao','re_luxun','sunshangxiang', 'sunquan','zhenji','diaochan','zhugeliang','sunshangxiang','huangyueying',
're_liubei','re_guanyu','re_zhangfei','zhugeliang','re_zhaoyun','re_machao','huangyueying','re_xushu', 're_caocao','re_liubei','re_simayi','re_guanyu','re_zhouyu','re_lvbu','re_daqiao','re_zhangfei','re_zhangliao','re_zhaoyun','re_xuzhu','re_machao','re_ganning','re_guojia','re_lidian','re_xiahoudun','re_xushu','re_lvmeng',
're_caocao','re_simayi','re_xiahoudun','re_zhangliao','re_xuzhu','re_guojia','zhenji','re_lidian', 're_xiahouyuan','re_xiaoqiao','re_huangzhong',
're_lvbu','diaochan','re_huatuo', 'yanwen','dianwei','pangtong','taishici','sp_zhugeliang','re_pangde',
'xiahouyuan','huangzhong','xiaoqiao', 'dongzhuo','jiaxu','sunjian','xuhuang','zhurong','jiangwei','sunce',
'dianwei','pangtong','sp_zhugeliang','taishici','pangde','yanwen', 'wangping','sunliang','wangji','yanyan',
'xuhuang','sunjian','jiaxu','dongzhuo', 'chengong','zhangchunhua','xin_fazheng','lingtong','wuguotai','caozhi','xusheng',
'zhanghe','dengai','jiangwei','liushan','sunce', 'xunyou','zhonghui','xin_wangyi','madai','bulianshi','handang','liubiao',
'caozhi','zhangchunhua','xin_masu','xin_fazheng','xin_xushu','lingtong','wuguotai','xusheng','chengong','gaoshun', 'fuhuanghou','xin_liru','jianyong','panzhangmazhong','yufan','liufeng',
'xunyou','wangyi','zhonghui','madai','liaohua','chengpu','handang','bulianshi', 'yj_jushou','caifuren','guyong','zhoucang',
'jianyong','panzhangmazhong','yufan','xin_liru','fuhuanghou', 'gongsunyuan','liuchen','xiahoushi','sunxiu','quancong','guotupangji',
'caozhen','chenqun','hanhaoshihuan','wuyi','zhoucang','guyong','sunluban','jushou','caifuren', 'liyan','sundeng','cenhun','guohuanghou','caiyong','xuecong',
'caoxiu','liuchen','gongsunyuan', 'liuxie','yuejin','caoang','hetaihou','simalang','mayunlu','zhugejin','sp_machao','zhugeke','sp_caoren',
'guohuanghou','liyan','cenhun','liuyu','sundeng', 'dingfeng','heqi','chengyu','wenpin','guanyinping','kanze',
'sp_caiwenji','yuejin','sp_jiangwei','simalang','chengyu','caoang','wangji','wenpin', 'sp_sunshangxiang','quyi','sp_jiangwei','dongbai','litong','yangxiu','sunqian','sunhao','xiahouba','liuqi','luzhi',
'zhugedan','mizhu','mayunlu','zhugeke','zumao','dingfeng','sunhao','zhanglu','hetaihou',
'litong','dongbai','yanbaihu','zhugejin','daxiaoqiao'
], ],
translate:{ translate:{
zhu:'主', zhu:'主',