koishi-plugin-ggcevo-game 1.4.4 → 1.4.5
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 +7 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -545,10 +545,10 @@ var spaceStationCrewConfig = [
|
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
professionName: "情报副官",
|
|
548
|
-
effect: "升级空间站科技享有
|
|
548
|
+
effect: "升级空间站科技享有10%的折扣",
|
|
549
549
|
requirements: "至少一个空间站科技等级≥3级",
|
|
550
550
|
Jobtransfer: true,
|
|
551
|
-
costcoins:
|
|
551
|
+
costcoins: 2e3
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
professionName: "总工程师",
|
|
@@ -1917,8 +1917,8 @@ async function handleTechUpgrade(ctx, handle, target) {
|
|
|
1917
1917
|
let discountDetails = [];
|
|
1918
1918
|
if (careerData.career === "情报副官") {
|
|
1919
1919
|
discountApplied = true;
|
|
1920
|
-
actualCost = Math.floor(originalCost * 0.
|
|
1921
|
-
discountDetails.push("🎖️ 情报副官:
|
|
1920
|
+
actualCost = Math.floor(originalCost * 0.9);
|
|
1921
|
+
discountDetails.push("🎖️ 情报副官:10%折扣");
|
|
1922
1922
|
}
|
|
1923
1923
|
const [signInfo] = await ctx.database.get("ggcevo_sign", { handle });
|
|
1924
1924
|
if (signInfo?.totalRewards < actualCost) {
|
|
@@ -7424,7 +7424,7 @@ ${validTypes.join("、")}`;
|
|
|
7424
7424
|
'使用 "科技 科技名称" 查看详细信息',
|
|
7425
7425
|
isIntelligenceOfficer ? [
|
|
7426
7426
|
"💰 当前折扣:",
|
|
7427
|
-
"🎖️ 情报副官:
|
|
7427
|
+
"🎖️ 情报副官:10%"
|
|
7428
7428
|
].join("\n") : "",
|
|
7429
7429
|
"====================",
|
|
7430
7430
|
...techList,
|
|
@@ -7438,7 +7438,7 @@ ${validTypes.join("、")}`;
|
|
|
7438
7438
|
${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
7439
7439
|
const techDetails = tech.levels.map((level) => {
|
|
7440
7440
|
const originalCost = level.cost;
|
|
7441
|
-
const discountedCost = isIntelligenceOfficer ? Math.floor(originalCost * 0.
|
|
7441
|
+
const discountedCost = isIntelligenceOfficer ? Math.floor(originalCost * 0.9) : originalCost;
|
|
7442
7442
|
const costDesc = isIntelligenceOfficer ? `▸ 升级花费:${discountedCost}金币 (原价${originalCost})` : `▸ 升级花费:${originalCost}金币`;
|
|
7443
7443
|
return [
|
|
7444
7444
|
`✦ 等级 ${romanNumerals[level.level]}`,
|
|
@@ -7453,7 +7453,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
7453
7453
|
if (isIntelligenceOfficer) {
|
|
7454
7454
|
discountInfo = [
|
|
7455
7455
|
"💰 当前折扣:",
|
|
7456
|
-
"🎖️ 情报副官:
|
|
7456
|
+
"🎖️ 情报副官:10%"
|
|
7457
7457
|
];
|
|
7458
7458
|
}
|
|
7459
7459
|
return [
|