Merge pull request #1329 from PZ157/PR-Branch

对决四国模式座位号修复
This commit is contained in:
Spmario233 2024-05-08 23:01:50 +08:00 committed by GitHub
commit 8a5002b2b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View File

@ -1775,7 +1775,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
game.players[i].node.name_seat = ui.create.div(
".name.name_seat",
get.verticalStr(
get.seatTranslation(_status.firstAct, game.players[i], "absolute")
get.seatTranslation(get.distance(_status.firstAct, game.players[i], "absolute"))
),
game.players[i]
);
@ -2006,7 +2006,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
ui.create.characterDialog(
"heightset",
event.filterChoice,
"precharacter"
"character"
);
}
}

View File

@ -1242,7 +1242,6 @@ export class Create {
expandall,
onlypack,
heightset,
precharacter,
characterx;
for (var i = 0; i < arguments.length; i++) {
if (arguments[i] === "thisiscard") {
@ -1251,8 +1250,6 @@ export class Create {
expandall = true;
} else if (arguments[i] === "heightset") {
heightset = true;
} else if (arguments[i] == "precharacter") {
precharacter = true;
} else if (arguments[i] == "characterx") {
characterx = true;
} else if (
@ -1982,9 +1979,7 @@ export class Create {
dialog.add([list, "vcard"], noclick);
}
} else {
if (precharacter) {
dialog.add([list, "precharacter"], noclick);
} else if (characterx) {
if (characterx) {
dialog.add([list, "characterx"], noclick);
} else {
dialog.add([list, "character"], noclick);