diff --git a/game/game.js b/game/game.js index ea1f6eea2..cc9e7b140 100644 --- a/game/game.js +++ b/game/game.js @@ -2653,6 +2653,14 @@ guozhan:{ name:'国战', connect:{ + update:function(config,map){ + if(config.connect_onlyguozhan){ + map.connect_junzhu.show(); + } + else{ + map.connect_junzhu.hide(); + } + }, connect_player_number:{ name:'游戏人数', init:'8', @@ -2698,6 +2706,13 @@ restart:true, intro:'开启后将禁用非国战专属武将' }, + connect_junzhu:{ + name:'替换君主', + init:true, + frequent:true, + restart:true, + intro:'开启后将使用国战君主替换原武将牌' + }, connect_ban_weak:{ name:'屏蔽弱将', init:false, @@ -2710,6 +2725,14 @@ }, }, config:{ + update:function(config,map){ + if(config.onlyguozhan){ + map.junzhu.show(); + } + else{ + map.junzhu.hide(); + } + }, guozhan_mode:{ name:'游戏模式', init:'normal', @@ -2764,6 +2787,13 @@ restart:true, intro:'开启后将禁用非国战专属武将' }, + junzhu:{ + name:'替换君主', + init:true, + frequent:true, + restart:true, + intro:'开启后将使用国战君主替换原武将牌' + }, double_hp:{ name:'双将体力上限', init:'pingjun', @@ -10070,6 +10100,11 @@ player:{ init:function(character,character2,skill){ if(!lib.character[character]) return; + if(get.is.jun(character2)){ + var tmp=character; + character=character2; + character2=tmp; + } if(character2==false){ skill=false; character2=null; @@ -35095,6 +35130,13 @@ var select=get.select(func); return select[0]==1&&select[1]==1; }, + jun:function(name){ + if(typeof name=='string'&&name.indexOf('gz_jun_')==0&& + lib.junList&&lib.junList.contains(name.slice(7))){ + return true; + } + return false; + }, versus:function(){ return !_status.connectMode&&get.mode()=='versus'&&_status.mode=='three'; }, diff --git a/image/character/jun_liubei.jpg b/image/character/jun_liubei.jpg new file mode 100644 index 000000000..e7734d409 Binary files /dev/null and b/image/character/jun_liubei.jpg differ diff --git a/image/character/jun_zhangjiao.jpg b/image/character/jun_zhangjiao.jpg new file mode 100644 index 000000000..6c7515da6 Binary files /dev/null and b/image/character/jun_zhangjiao.jpg differ diff --git a/mode/guozhan.js b/mode/guozhan.js index d291123c5..8d471dcef 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -249,6 +249,9 @@ mode.guozhan={ gz_chendong:['male','wu',4,['duanxie','fenming']], gz_sp_dongzhuo:['male','qun',4,['hengzheng','baoling']], gz_zhangren:['male','qun',4,['chuanxin','fengshi']], + + gz_jun_liubei:['male','shu',4,[]], + gz_jun_zhangjiao:['male','qun',4,[]], } }, characterIntro:{ @@ -1717,7 +1720,7 @@ mode.guozhan={ } } else{ - if(hasunknown){ + if(hasunknown&&!get.zhu()){ var players=game.players.concat(game.dead); var num=0; for(var i=0;iget.population()/2) this.identity='ye'; + if(get.is.jun(this.name1)){ + this.identity=this.group; + var yelist=[]; + for(var i=0;iget.population()/2) this.identity='ye'; else this.identity=this.group; - // this.node.identity.dataset.color=this.identity; this.setIdentity(this.identity); this.ai.shown=1; this.node.identity.classList.remove('guessing');