koishi-plugin-ggcevo-game 1.5.23 → 1.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +0 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10926,10 +10926,8 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
10926
10926
|
return "⛔ 您已被列入黑名单。";
|
|
10927
10927
|
}
|
|
10928
10928
|
const [career] = await ctx.database.get("ggcevo_careers", { handle });
|
|
10929
|
-
if (!career) return "🚫 需要阵营为【人类联盟】或【辛迪加海盗】";
|
|
10930
10929
|
const allowedGroups = ["人类联盟", "辛迪加海盗"];
|
|
10931
10930
|
if (!allowedGroups.includes(career.group)) {
|
|
10932
|
-
return `🚫 需要阵营为【人类联盟】或【辛迪加海盗】,您当前是${career.group}`;
|
|
10933
10931
|
}
|
|
10934
10932
|
const [tech] = await ctx.database.get("ggcevo_tech", { handle, techId: 1 });
|
|
10935
10933
|
const techLevel = tech?.level || 0;
|
|
@@ -11431,10 +11429,8 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11431
11429
|
return "⛔ 您已被列入黑名单。";
|
|
11432
11430
|
}
|
|
11433
11431
|
const [career] = await ctx.database.get("ggcevo_careers", { handle });
|
|
11434
|
-
if (!career) return "🚫 需要阵营为【人类联盟】或【辛迪加海盗】";
|
|
11435
11432
|
const allowedGroups = ["人类联盟", "辛迪加海盗"];
|
|
11436
11433
|
if (!allowedGroups.includes(career.group)) {
|
|
11437
|
-
return `🚫 需要阵营为【人类联盟】或【辛迪加海盗】,您当前是${career.group}`;
|
|
11438
11434
|
}
|
|
11439
11435
|
const careerName = career.career;
|
|
11440
11436
|
const careerCoinBonus = careerName === "总工程师" ? 50 : 0;
|