This commit is contained in:
libccy 2016-01-13 14:37:59 +08:00
parent 4e45b3f30d
commit cbd053ecd1
4 changed files with 23 additions and 2 deletions

View File

@ -2389,13 +2389,13 @@
'<li>牌堆<br>ui.cardPile<li>弃牌堆<br>ui.discardPile</ul>'+
'<div style="margin:10px">角色属性</div><ul style="margin-top:0"><li>体力值<br>player.hp'+
'<li>体力上限<br>player.maxHp<li>身份<br>player.identity<li>手牌<br>player.get("h")<li>装备牌<br>player.get("e")<li>判定牌<br>player.get("j")'+
'<li>是否存活/横置/翻面<br>player.isAlive()/isLinked()/<br>isTurnedOver()</ul>'+
'<li>是否存活/横置/翻面<br>player.isAlive()/<br>isLinked()/<br>isTurnedOver()</ul>'+
'<div style="margin:10px">角色操作</div><ul style="margin-top:0"><li>受到伤害<br>player.damage(source,<br>num)'+
'<li>回复体力<br>player.recover(num)<li>摸牌<br>player.draw(num)<li>获得牌<br>player.gain(cards)<li>弃牌<br>player.discard(cards)'+
'<li>使用卡牌<br>player.useCard(card,<br>targets)<li>死亡<br>player.die()<li>复活<br>player.revive(hp)</ul>'+
'<div style="margin:10px">游戏操作</div><ul style="margin-top:0"><li>在命令输入框中输出结果<br>game.print(str)<li>游戏结束<br>game.over(bool)'+
'<li>角色资料<br>lib.character<li>卡牌资料<br>lib.card</ul>'+
'<div style="margin:10px">富甲天下</div><ul style="margin-top:0"><li>改变金币数<br>game.changeCoin(num)<li>自动下雪<br>game.saveConfig(<br><span style="width:10px;display:inline-block"></span>"snowFall",true)',
'<div style="margin:10px">富甲天下</div><ul style="margin-top:0"><li>改变金币数<br>game.changeCoin(num)<li>自动下雪<br>game.haveFun.alwaysSnow()',
'身份模式':'<div style="margin:10px">选项</div><ul style="margin-top:0"><li>加强主公<br>反贼人数多于2时主公会额外增加一个技能每个主公的额外技能固定非常备主公增加天命</ul>'+
'<div style="margin:10px">明忠</div><ul style="margin-top:0"><li>本模式需要8名玩家进行游戏使用的身份牌为1主公、2忠臣、4反贼和1内奸。游戏开始时每名玩家随机获得一个身份由系统随机选择一名忠臣身份的玩家亮出身份将忠臣牌正面朝上放在面前其他身份包括主公的玩家不亮出身份。<li>'+
'首先由亮出身份的忠臣玩家随机获得六张武将牌,挑选一名角色,并将选好的武将牌展示给其他玩家。之后其余每名玩家随机获得三张武将牌,各自从其中挑选一张同时亮出<li>'+

View File

@ -222,3 +222,6 @@
.dialog .buttons>.button.character.squarebutton>.name{
top:8px;
}
br.finish_game{
display: none;
}

View File

@ -70,6 +70,16 @@
transform: scale(1.3);
}
br.finish_game{
display: inline !important;
}
div:not(.shown)>div.finish_game{
opacity: 0 !important;
}
div.finish_game{
transition: all 0.2s !important;
}
@media screen and (orientation:portrait) {
}

View File

@ -2116,6 +2116,8 @@ mode.chess={
},true);
}
if(!event.video&&_status.mode=='combat'&&!_status.vsboss&&get.config('additional_player')){
var finishGameBr=document.createElement('br');
finishGameBr.classList.add('finish_game');
ui.finishGame=ui.create.system('结束游戏',function(){
ui.finishGame.remove();
var next=game.createEvent('finish_game');
@ -2129,6 +2131,8 @@ mode.chess={
game.resume();
}
});
ui.finishGame.classList.add('finish_game');
ui.finishGame.parentNode.insertBefore(finishGameBr,ui.finishGame);
}
ui.create.me();
@ -3891,10 +3895,12 @@ mode.chess={
dialog.choice.replace_number=dialog.add(ui.create.switcher('replace_number',[0,1,2,3,5,7,9,17],get.config('replace_number'))).querySelector('.toggle');
dialog.choice.choice_number=dialog.add(ui.create.switcher('choice_number',[3,6,9],get.config('choice_number'))).querySelector('.toggle');
if(get.config('additional_player')){
dialog.choice.noreplace_end.parentNode.classList.add('disabled');
dialog.choice.replace_number.parentNode.classList.add('disabled');
dialog.choice.choice_number.parentNode.classList.remove('disabled');
}
else{
dialog.choice.noreplace_end.parentNode.classList.remove('disabled');
dialog.choice.replace_number.parentNode.classList.remove('disabled');
dialog.choice.choice_number.parentNode.classList.add('disabled');
}
@ -3954,10 +3960,12 @@ mode.chess={
dialog.choice.main_zhu.parentNode.classList.add('disabled');
}
if(get.config('additional_player')){
dialog.choice.noreplace_end.parentNode.classList.add('disabled');
dialog.choice.replace_number.parentNode.classList.add('disabled');
dialog.choice.choice_number.parentNode.classList.remove('disabled');
}
else{
dialog.choice.noreplace_end.parentNode.classList.remove('disabled');
dialog.choice.replace_number.parentNode.classList.remove('disabled');
dialog.choice.choice_number.parentNode.classList.add('disabled');
}