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

View File

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