From ed90de10ec5e16a35465490e86455cff55f0694d Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Mon, 2 Jun 2025 18:06:00 +0900 Subject: [PATCH] fixed --- src/client/TerritoryPatternsModal.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/client/TerritoryPatternsModal.ts b/src/client/TerritoryPatternsModal.ts index 15e5740b9..724571fd8 100644 --- a/src/client/TerritoryPatternsModal.ts +++ b/src/client/TerritoryPatternsModal.ts @@ -89,17 +89,7 @@ export class TerritoryPatternsModal extends LitElement { const isAllowed = groupList.some((required) => roles.includes(required)); if (!isAllowed) { - let reason: string; - - if (groupList.includes("donor")) { - reason = - "This pattern is available only to donors (money haters or early access supporters)."; - } else if (groupList.includes("staff")) { - reason = "This pattern is available only to moderators and above."; - } else { - reason = `This pattern is available only to specific roles. (${groupList.join(", ")})`; - } - + const reason = `This pattern requires the ${groupList.join(", ")} role.`; this.setLockedPatterns([key], reason); } }