koishi-plugin-ggcevo-game 1.3.5 → 1.3.7

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.
Files changed (2) hide show
  1. package/lib/index.js +9 -9
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -746,7 +746,7 @@ function apply(ctx, config) {
746
746
  effect: "每日签到获得的金币收益增加50%",
747
747
  requirements: "当月累计签到14天",
748
748
  Jobtransfer: true,
749
- costcoins: 2e3
749
+ costcoins: 1500
750
750
  },
751
751
  {
752
752
  professionName: "警卫员下士",
@@ -781,7 +781,7 @@ function apply(ctx, config) {
781
781
  effect: "升级空间站科技花费的金币是原价的80%",
782
782
  requirements: "将一个空间站科技升至3级或以上",
783
783
  Jobtransfer: true,
784
- costcoins: 4e3
784
+ costcoins: 3e3
785
785
  },
786
786
  {
787
787
  professionName: "总工程师",
@@ -819,7 +819,7 @@ function apply(ctx, config) {
819
819
  requirements: "拥有一把3级或以上等级的能量武器",
820
820
  Jobtransfer: true,
821
821
  costcoins: 0,
822
- costredcrystal: 20
822
+ costredcrystal: 30
823
823
  },
824
824
  {
825
825
  professionName: "清洁工",
@@ -851,7 +851,7 @@ function apply(ctx, config) {
851
851
  requirements: "拥有一把3级或以上等级的热能武器",
852
852
  Jobtransfer: true,
853
853
  costcoins: 0,
854
- costredcrystal: 20
854
+ costredcrystal: 30
855
855
  },
856
856
  {
857
857
  professionName: "辛迪加财务经理",
@@ -859,7 +859,7 @@ function apply(ctx, config) {
859
859
  requirements: "当月累计签到21天",
860
860
  Jobtransfer: true,
861
861
  costcoins: 0,
862
- costredcrystal: 40
862
+ costredcrystal: 45
863
863
  },
864
864
  {
865
865
  professionName: "计算机专家",
@@ -2184,7 +2184,7 @@ function apply(ctx, config) {
2184
2184
  let techLevel;
2185
2185
  let baseDiscount;
2186
2186
  let careerDiscount;
2187
- if (careerData.group === "人类联盟") {
2187
+ if (careerData?.group === "人类联盟") {
2188
2188
  const [weaponTech] = await ctx.database.get("ggcevo_tech", { handle, techId: 2 }).catch(() => [{ level: 0 }]);
2189
2189
  techLevel = Math.min(Math.max(weaponTech?.level || 0, 0), 5);
2190
2190
  const isCareerMatch = weaponTechConfig?.careerNames.includes(careerData?.career);
@@ -2550,7 +2550,7 @@ ${itemDetails.join("\n")}`;
2550
2550
  let cred17Message = "";
2551
2551
  let allianceBonusMessage = "";
2552
2552
  const [careerData] = await ctx.database.get("ggcevo_careers", { handle });
2553
- if (careerData.group === "人类联盟") {
2553
+ if (careerData?.group === "人类联盟") {
2554
2554
  const baseAllianceBonus = 0.2;
2555
2555
  points = Math.round(points * (1 + baseAllianceBonus));
2556
2556
  allianceBonusMessage = `
@@ -4148,7 +4148,7 @@ ${validTypes.join("、")}`;
4148
4148
  const [weaponTech] = await ctx.database.get("ggcevo_tech", { handle, techId: 2 });
4149
4149
  let discountDetails = [];
4150
4150
  let totalDiscount = 0;
4151
- if (isWeapon && careerData.group === "人类联盟") {
4151
+ if (isWeapon && careerData?.group === "人类联盟") {
4152
4152
  const techDiscountTable = {
4153
4153
  3: [0, 10],
4154
4154
  4: [0, 15],
@@ -4369,7 +4369,7 @@ ${validTypes.join("、")}`;
4369
4369
  const techLevel = techData?.level || 0;
4370
4370
  const isCareerMatch = Spacestationtechnology.find((t) => t.techId === 3).careerNames.includes(careerData?.career);
4371
4371
  let discountRate = 0;
4372
- if (careerData.group === "人类联盟") {
4372
+ if (careerData?.group === "人类联盟") {
4373
4373
  if (modInfo.isExclusive) {
4374
4374
  if (techLevel >= 2 && isCareerMatch) discountRate = 10;
4375
4375
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.3.5",
4
+ "version": "1.3.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [