Merge pull request #603 from lieren2023/codespace-redesigned-space-xylophone-7gpgq5xgx572wxw6

小修复
This commit is contained in:
Spmario233 2023-10-31 11:44:40 +08:00 committed by GitHub
commit fc92a05505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 29 deletions

View File

@ -735,12 +735,6 @@
general:{
name:'通用',
config:{
mount_combine:{
name:'合并坐骑栏',
init:false,
intro:'<li>将进攻坐骑栏和防御坐骑栏合并为同一个位置(重启后生效)。',
restart:true,
},
low_performance:{
name:'流畅模式',
init:false,
@ -3650,6 +3644,12 @@
map.show_extensionshare.hide();
}
},
mount_combine:{
name:'合并坐骑栏',
init:false,
intro:'<li>将进攻坐骑栏和防御坐骑栏合并为同一个位置(重启后生效)。',
restart:true,
},
show_history:{
name:'出牌记录栏',
init:'off',
@ -5658,6 +5658,13 @@
frequent:true,
restart:true,
},
connect_aozhan:{
name:'鏖战模式',
init:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
frequent:true,
restart:true,
},
get connect_separatism(){
return lib.mode.guozhan.config.separatism;
},
@ -5672,13 +5679,6 @@
frequent:true,
intro:'第一个明置武将牌的角色可获得首亮奖励'
},
connect_aozhan:{
name:'鏖战模式',
init:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
frequent:true,
restart:true,
},
connect_viewnext:{
name:'观看下家副将',
init:false,
@ -5751,6 +5751,13 @@
frequent:true,
restart:true,
},
aozhan:{
name:'鏖战模式',
init:true,
frequent:true,
restart:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
},
separatism:{
name:'群雄割据',
init:false,
@ -5769,13 +5776,6 @@
frequent:true,
intro:'第一个明置身份牌的角色可获得摸牌奖励'
},
aozhan:{
name:'鏖战模式',
init:true,
frequent:true,
restart:true,
intro:'若开启此选项,则将在游戏中引入“鏖战模式”的规则:<br>当游戏中仅剩四名或更少角色时(七人以下游戏时改为三名或更少),若此时全场没有超过一名势力相同的角色,则从一个新的回合开始,游戏进入鏖战模式直至游戏结束。<br>◇在鏖战模式下,【桃】只能当做【杀】或【闪】使用或打出,不能用来回复体力。<br>注:进入鏖战模式后,即使之后有两名或者更多势力相同的角色出现,仍然不会取消鏖战模式。',
},
viewnext:{
name:'观看下家副将',
init:false,
@ -51009,7 +51009,10 @@
var node=ui.create.div('.menubutton.large','录像',start.firstChild,clickMode);
node.type='video';
lib.videos=[];
ui.create.videoNode=(video,before)=>lib.videos[before===true?'unshift':'push'](video);
ui.create.videoNode=(video,before)=>{
lib.videos.remove(video);
lib.videos[before===true?'unshift':'push'](video);
};
node._initLink=function(){
node.link=page;
var store=lib.db.transaction(['video'],'readwrite').objectStore('video');
@ -58146,13 +58149,13 @@
*/
updatePlayerPositions:numberOfPlayers=>{
if(typeof numberOfPlayers!='number') numberOfPlayers=ui.arena.dataset.number;
//当人数小于8时还是用以前的布局。
if(!numberOfPlayers||numberOfPlayers<9) return;
//当人数不超过8人时还是用以前的布局
if(!numberOfPlayers||numberOfPlayers<=8) return;
const playerPositions=ui.playerPositions;
while(playerPositions.length){
playerPositions.pop().remove();
}
//单个人物的宽度这里要设置玩家的实际的宽度
//单个人物的宽度这里要设置玩家的实际的宽度
const temporaryPlayer=ui.create.div('.player',ui.arena).hide();
const computedStyle=getComputedStyle(temporaryPlayer);
const scale=6/numberOfPlayers;
@ -58163,10 +58166,10 @@
//列数即假如8人场除去自己后上面7个人占7列
const columnCount=numberOfPlayers-1;
const percentage=90/(columnCount-1);
//仅当游戏人数大于8人且玩家的座位号大于0时设置玩家的位置因为0号位是game.me在最下方无需设置
//仅当游戏人数大于8人且玩家的座位号大于0时设置玩家的位置因为0号位是game.me在最下方无需设置
for(let ordinal=1;ordinal<numberOfPlayers;ordinal++){
const reversedOrdinal=columnCount-ordinal;
//动态计算玩家的top属性实现拱桥的效果只让两边的各两个人向下偏移一些
//动态计算玩家的top属性实现拱桥的效果只让两边的各两个人向下偏移一些
const top=Math.max(0,Math.round(numberOfPlayers/5)-Math.min(Math.abs(ordinal-1),Math.abs(reversedOrdinal)))*quarterHeight;
playerPositions.push(lib.init.sheet([
`#arena[data-number='${numberOfPlayers}']>.player[data-position='${ordinal}']{`,

View File

@ -38,8 +38,6 @@ var pinyin_dict_polyphone = {
"马日磾": " mì dī",
"凯撒": " sà",
"梼杌": "táo ",
"地藏王": "dì zàng wáng",
"乐无异": "yuè ",
"端蒙": " méng",
@ -47,9 +45,11 @@ var pinyin_dict_polyphone = {
"洛欧塞布": " sài ",
"塞纳留斯": "sài ",
"半藏": " zàng",
"地藏王": "dì zàng wáng",
"查莉娅": "zhā ",
"单小小": "shàn ",
"少微": "shào ",
"少昊": "shào ",
"欧阳少恭": " shào ",
"卡尔维特": "kǎ ",
"卡西尔": "kǎ ",
@ -59,6 +59,7 @@ var pinyin_dict_polyphone = {
"卡利莫斯": "kǎ ",
"安卡": " kǎ",
"卡玛": "kǎ ",
"梼杌": "táo ",
"库特莉亚芙卡": " kǎ",
"露娜": "lù ",
@ -144,7 +145,6 @@ var pinyin_dict_polyphone = {
"膴仕": "wǔ ",
"蒙斥": "méng ",
"奈落": " luò",
"乐动": "yuè ",
"血凰": "xuè ",
@ -154,6 +154,7 @@ var pinyin_dict_polyphone = {
"血逐": "xuè ",
"血咒": "xuè ",
"血殇": "xuè ",
"血池": "xuè ",
"越行": " xíng",
"劫行": " xíng",
"割发": " fà",
@ -161,6 +162,7 @@ var pinyin_dict_polyphone = {
"落石": "luò ",
"落刀": "luò ",
"星落": " luò",
"奈落": " luò",
"舍身": "shě ",
"舍愿": "shě ",
"月露": " lù",