koishi-plugin-ggcevo-game 1.4.14 → 1.4.15

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.
@@ -38,7 +38,7 @@ export declare const PassiveHandler: {
38
38
  messages: string[];
39
39
  skillUpdates: {
40
40
  name: any;
41
- remove: ("弱化形态" | "异形甲壳" | "孤立无援" | "冰霜回复" | "冰霜进化" | "冰霜环绕" | "寒霜地狱" | "应激甲壳I" | "应激甲壳II" | "求生本能I" | "求生本能II" | "冷适应" | "感染空间站" | "病毒云" | "霉菌滋生" | "岗哨机枪" | "结构装甲" | "吸血唾液" | "进食" | "嗜血狂暴" | "吐血" | "电能导体" | "超导体" | "能量虹吸" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞" | "火焰异形" | "庞兽狂暴" | "灼烧粘液" | "腐蚀胆汁" | "火焰吐息" | "太阳耀斑" | "燃烧潜地" | "炼狱爆弹" | "猎手异形" | "狂暴" | "伪装" | "致命一击")[];
41
+ remove: ("冰霜环绕" | "寒霜地狱" | "冰霜回复" | "弱化形态" | "异形甲壳" | "孤立无援" | "冰霜进化" | "应激甲壳I" | "应激甲壳II" | "求生本能I" | "求生本能II" | "冷适应" | "感染空间站" | "病毒云" | "霉菌滋生" | "岗哨机枪" | "结构装甲" | "吸血唾液" | "进食" | "嗜血狂暴" | "吐血" | "电能导体" | "超导体" | "能量虹吸" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞" | "火焰异形" | "庞兽狂暴" | "灼烧粘液" | "腐蚀胆汁" | "火焰吐息" | "太阳耀斑" | "燃烧潜地" | "炼狱爆弹" | "猎手异形" | "狂暴" | "伪装" | "致命一击")[];
42
42
  }[];
43
43
  };
44
44
  handleInfectedStation: (ctx: Context, targetBoss: any) => Promise<{
package/lib/index.js CHANGED
@@ -211,7 +211,6 @@ var weaponConfig = {
211
211
  isantiair: true,
212
212
  tagEffects: {
213
213
  "护盾": 2,
214
- "轻甲": 0.5,
215
214
  "重甲": 0.2
216
215
  }
217
216
  },
@@ -625,7 +624,7 @@ var syndicatePirateConfig = [
625
624
  },
626
625
  {
627
626
  professionName: "猩红杀手",
628
- effect: "使用“侦察步枪”造成的伤害+15%; 解锁DSR-55反器材步枪(传奇)购买权限",
627
+ effect: "“侦察步枪”攻击伤害+15%; 使用“侦察步枪”攻击时无视目标20%的减伤效果; 解锁DSR-55反器材步枪(传奇)购买权限",
629
628
  requirements: "“侦察步枪”武器等级≥3级",
630
629
  Jobtransfer: true,
631
630
  costredcrystal: 30
@@ -2838,7 +2837,7 @@ var PassiveHandler = {
2838
2837
  { name: targetBoss.name },
2839
2838
  { energy: newEnergy }
2840
2839
  );
2841
- messages.push(`⚡ 【弧焊枪】触发特效:消耗目标200点能量`);
2840
+ messages.push(`⚡ 【弧焊枪】武器效果:消耗目标200点能量`);
2842
2841
  } else {
2843
2842
  return null;
2844
2843
  }
@@ -2859,7 +2858,7 @@ var PassiveHandler = {
2859
2858
  { energy: newEnergy }
2860
2859
  );
2861
2860
  targetBoss.energy = newEnergy;
2862
- messages.push(`⚡ 【DG-3电弧步枪】生效:消耗目标${drainAmount}点能量`);
2861
+ messages.push(`⚡ 【DG-3电弧步枪】武器效果:消耗目标${drainAmount}点能量`);
2863
2862
  return { drainAmount };
2864
2863
  }, "handleArcRifleEffect"),
2865
2864
  // 庞兽狂暴处理(血量低于50%时减伤)
@@ -3201,16 +3200,16 @@ var PassiveHandler = {
3201
3200
  let messages = [];
3202
3201
  if (weaponName === "光剑") {
3203
3202
  ignoreEffects.push(1);
3204
- messages.push(`⚔️ 【光剑】特效:无视目标100%减伤效果`);
3203
+ messages.push(`⚔️ 【光剑】武器效果:无视目标100%减伤效果`);
3205
3204
  } else if (weaponName === "M4AE脉冲步枪") {
3206
3205
  ignoreEffects.push(0.8);
3207
- messages.push(`🔫 【M4AE脉冲步枪】特效:无视目标80%减伤效果`);
3206
+ messages.push(`🔫 【M4AE脉冲步枪】武器效果:无视目标80%减伤效果`);
3208
3207
  }
3209
3208
  if (weaponName !== "光剑" && weaponName !== "M4AE脉冲步枪") {
3210
3209
  const particleEffect = PassiveHandler.handleParticlePhaseEffect(targetBoss, weaponName);
3211
3210
  if (particleEffect > 0) {
3212
3211
  ignoreEffects.push(particleEffect);
3213
- messages.push(`⚡ 【粒子相位枪】特效:无视护盾目标${particleEffect * 100}%减伤效果`);
3212
+ messages.push(`⚡ 【粒子相位枪】武器效果:无视护盾目标${particleEffect * 100}%减伤效果`);
3214
3213
  }
3215
3214
  const weaponConfigData = weaponConfig[weaponName];
3216
3215
  if (weaponConfigData) {
@@ -3239,9 +3238,14 @@ var PassiveHandler = {
3239
3238
  ignoreEffects.push(radarEffect);
3240
3239
  messages.push(`🛰️ 【雷达面罩】生效:无视目标${radarEffect * 100}%减伤效果`);
3241
3240
  }
3241
+ if (careerData?.career === "猩红杀手" && weaponName === "侦察步枪") {
3242
+ const scarletEffect = 0.2;
3243
+ ignoreEffects.push(scarletEffect);
3244
+ messages.push(`🎯 【猩红杀手】职业效果:无视目标${scarletEffect * 100}%减伤效果`);
3245
+ }
3242
3246
  }
3243
3247
  } catch (error) {
3244
- console.error("检查雷达面罩效果时出错:", error);
3248
+ console.error("出错:", error);
3245
3249
  }
3246
3250
  if (ignoreEffects.length === 0) {
3247
3251
  return null;
@@ -3270,7 +3274,7 @@ var PassiveHandler = {
3270
3274
  targetBoss.Skillcountpoints = newCount;
3271
3275
  return {
3272
3276
  messages: [
3273
- `⚡ 【脉冲扰乱枪】特效:减少${targetBoss.name} 2层技能计数(当前${newCount}层)`
3277
+ `⚡ 【脉冲扰乱枪】武器效果:减少${targetBoss.name} 2层技能计数(当前${newCount}层)`
3274
3278
  ]
3275
3279
  };
3276
3280
  }, "handlePulseDisruptor"),
@@ -6112,14 +6116,16 @@ ${Object.keys(categoryStats).join("、")}`;
6112
6116
  "------------------"
6113
6117
  ].filter(Boolean).join("\n");
6114
6118
  });
6115
- const shouldShowDiscountInfo = totalDiscount > 0 && !isLegendaryCategory;
6116
- const discountInfo = shouldShowDiscountInfo ? `💰 当前折扣:
6119
+ const permissionNotice = isLegendaryCategory ? '⚠️ 注意:购买传奇武器需要"传奇武器购买权限"' : null;
6120
+ const discountInfo = totalDiscount > 0 && !isLegendaryCategory ? `💰 当前折扣:
6117
6121
  ${discountDetails.length ? `${discountDetails.join("\n")}` : ""}` : null;
6118
6122
  return [
6119
6123
  `🏪 咕咕武器库 - ${category} 🏪`,
6120
6124
  '使用"购买 武器名称"指令进行购买',
6125
+ permissionNotice,
6126
+ // 新增权限提示
6121
6127
  discountInfo,
6122
- // 传奇武器分类时不显示此信息
6128
+ // 原有折扣信息
6123
6129
  "====================",
6124
6130
  ...items,
6125
6131
  items.length === 0 ? "⚠️ 该分类下暂无可用武器" : ""
@@ -6413,7 +6419,7 @@ ${validTypes.join("、")}`;
6413
6419
  }
6414
6420
  return `❌ 未找到 "${target}" 对应的武器或科技(科技仅限人类联盟阵营升级)`;
6415
6421
  });
6416
- ctx.command("ggcevo/改装 <weapon> [mod]", "安装武器模块").action(async ({ session }, weapon, mod) => {
6422
+ ctx.command("ggcevo/改装 <weapon> [mod]", "安装武器模块").alias("改造").action(async ({ session }, weapon, mod) => {
6417
6423
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
6418
6424
  if (!profile) return "🔒 需要先绑定游戏句柄。";
6419
6425
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
@@ -7282,10 +7288,10 @@ ${validTypes.join("、")}`;
7282
7288
  if (!category) {
7283
7289
  const discountLines = [];
7284
7290
  if (isComputerExpert) {
7285
- discountLines.push("💻 计算机专家:设备工具类物品50%折扣");
7291
+ discountLines.push("💻 计算机专家职业:设备工具类物品50%折扣");
7286
7292
  }
7287
7293
  if (isSaboteur) {
7288
- discountLines.push("💣 破坏者:爆破物类物品50%折扣");
7294
+ discountLines.push("💣 破坏者职业:爆破物类物品50%折扣");
7289
7295
  }
7290
7296
  return [
7291
7297
  "🏴 辛迪加黑市 🏴",
@@ -7301,6 +7307,8 @@ ${validTypes.join("、")}`;
7301
7307
  }
7302
7308
  const normalizedCategory = Object.keys(categoryStats).find((c) => c === category);
7303
7309
  if (!normalizedCategory) return `无效分类,可用:${Object.keys(categoryStats).join("、")}`;
7310
+ const isLegendaryCategory = normalizedCategory === "传奇武器";
7311
+ const legendaryNotice = isLegendaryCategory ? "⚠️ 注意:购买传奇武器需要对应的辛迪加海盗职业权限" : null;
7304
7312
  const items = [
7305
7313
  ...Object.entries(weaponConfig).filter(
7306
7314
  ([_, config2]) => config2.category === normalizedCategory && config2.redCrystalCost > 0
@@ -7368,17 +7376,19 @@ ${validTypes.join("、")}`;
7368
7376
  if (isSaboteur && normalizedCategory === "爆破物") {
7369
7377
  discountInfo = [
7370
7378
  "💰 当前折扣:",
7371
- "💣 破坏者:爆破物类物品50%折扣"
7379
+ "💣 破坏者职业:爆破物类物品50%折扣"
7372
7380
  ];
7373
7381
  } else if (isComputerExpert && normalizedCategory === "设备工具") {
7374
7382
  discountInfo = [
7375
7383
  "💰 当前折扣:",
7376
- "💻 计算机专家:设备工具类物品50%折扣"
7384
+ "💻 计算机专家职业:设备工具类物品50%折扣"
7377
7385
  ];
7378
7386
  }
7379
7387
  return [
7380
7388
  `🏴 辛迪加黑市 - ${normalizedCategory} 🏴`,
7381
7389
  '使用"订购 物品名称"进行购买(仅消耗红晶)',
7390
+ legendaryNotice,
7391
+ // 新增传奇武器权限提示
7382
7392
  ...discountInfo,
7383
7393
  "====================",
7384
7394
  ...items
@@ -7479,10 +7489,10 @@ ${validTypes.join("、")}`;
7479
7489
  const buildResponse = /* @__PURE__ */ __name(async () => {
7480
7490
  const discountLines = [];
7481
7491
  if (isSaboteurDiscount) {
7482
- discountLines.push("💣 破坏者:爆破物类物品50%折扣");
7492
+ discountLines.push("💣 破坏者职业:爆破物类物品50%折扣");
7483
7493
  }
7484
7494
  if (isComputerExpertDiscount) {
7485
- discountLines.push("💻 计算机专家:设备工具类物品50%折扣");
7495
+ discountLines.push("💻 计算机专家职业:设备工具类物品50%折扣");
7486
7496
  }
7487
7497
  const priceInfo = [
7488
7498
  `消耗红晶:${finalCost}${discountApplied ? ` (原价${originalPrice})` : ""}`
@@ -7752,7 +7762,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
7752
7762
  }
7753
7763
  reportLines.push(rewardLine);
7754
7764
  if (tech.level >= 3) {
7755
- reportLines.push(`🔧 采掘系统科技Lv.${tech.level}(矿骡):+${multiplier * 100}%金币`);
7765
+ reportLines.push(`⚙️ 采掘系统科技Lv.${tech.level}(矿骡):+${multiplier * 100}%金币`);
7756
7766
  }
7757
7767
  reportLines.push(`🏆 历史总挖矿收益:${record.totalMined + total}金币`);
7758
7768
  reportLines.push("💡 已自动开始下一轮挖矿");
package/lib/weapons.d.ts CHANGED
@@ -176,7 +176,6 @@ export declare const weaponConfig: {
176
176
  isantiair: boolean;
177
177
  tagEffects: {
178
178
  护盾: number;
179
- 轻甲: number;
180
179
  重甲: number;
181
180
  };
182
181
  };
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.4.14",
4
+ "version": "1.4.15",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [