koishi-plugin-ggcevo-game 1.3.25 → 1.3.27

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 +12 -15
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ var Config = import_koishi.Schema.intersect([
36
36
  }).description("基础设置"),
37
37
  // 赛季与兑换配置组
38
38
  import_koishi.Schema.object({
39
- rankseason: import_koishi.Schema.string().description("当前赛季名称(影响兑换系统)").required(),
39
+ rankseason: import_koishi.Schema.string().description("当前赛季名称(影响兑换系统)").default("S1"),
40
40
  ignoreGlobalLimit: import_koishi.Schema.boolean().description("禁用全局兑换限制(谨慎开启)").default(false)
41
41
  }).description("赛季配置"),
42
42
  // 核心功能开关组
@@ -505,7 +505,7 @@ function apply(ctx, config) {
505
505
  },
506
506
  "光束曲射晶片": {
507
507
  cost: 2250,
508
- effect: "攻击目标后,若有其他的存活异形,则对其造成50%的武器基础伤害",
508
+ effect: "攻击目标后,若有存活的其他异形,则对其造成50%的武器基础伤害",
509
509
  exclusiveTo: "碎骨步枪",
510
510
  isExclusive: true
511
511
  }
@@ -765,7 +765,7 @@ function apply(ctx, config) {
765
765
  const spaceStationCrewConfig = [
766
766
  {
767
767
  professionName: "深空矿工",
768
- effect: "每日签到获得的金币收益增加50%",
768
+ effect: "每日签到获得的金币增加50%",
769
769
  requirements: "当月累计签到7天及以上",
770
770
  Jobtransfer: true,
771
771
  costcoins: 1500
@@ -881,7 +881,7 @@ function apply(ctx, config) {
881
881
  requirements: "当月累计签到14天及以上",
882
882
  Jobtransfer: true,
883
883
  costcoins: 0,
884
- costredcrystal: 45
884
+ costredcrystal: 25
885
885
  },
886
886
  {
887
887
  professionName: "计算机专家",
@@ -1050,7 +1050,6 @@ function apply(ctx, config) {
1050
1050
  await checkCritRhythm(ctx2, handle)
1051
1051
  );
1052
1052
  totalAdditive += totalModAdd;
1053
- if (hasCrit) effectMessage.push("✨ 触发暴击!");
1054
1053
  const careerBonus = await calculateCareerAdditive(ctx2, handle, weaponData.type, weaponData.id);
1055
1054
  totalAdditive += careerBonus.value;
1056
1055
  if (careerBonus.message) effectMessage.push(careerBonus.message);
@@ -1212,11 +1211,12 @@ function apply(ctx, config) {
1212
1211
  __name(calculateWishAdditive, "calculateWishAdditive");
1213
1212
  function calculateRankAdditive(rankRecord) {
1214
1213
  if (!rankRecord || rankRecord.rank <= 0) return { value: 0, message: "" };
1215
- const value = Math.floor(rankRecord.rank / 400) * 0.01;
1216
- if (value > 0) {
1217
- const percentage = Math.round(value * 100);
1214
+ const baseValue = Math.floor(rankRecord.rank / 300) * 0.01;
1215
+ const cappedValue = Math.min(baseValue, 1);
1216
+ if (cappedValue > 0) {
1217
+ const percentage = Math.round(cappedValue * 100);
1218
1218
  return {
1219
- value,
1219
+ value: cappedValue,
1220
1220
  message: `🏆 排名加成:攻击伤害+${percentage}%`
1221
1221
  };
1222
1222
  }
@@ -2706,9 +2706,7 @@ ${itemDetails.join("\n")}`;
2706
2706
  ⚡ 加成效果:
2707
2707
  ▸ ${messages.join("\n▸ ")}`;
2708
2708
  }
2709
- return `签到成功!本月累计签到${monthlyDays}天,获得:
2710
- 💰 金币 x ${finalPoints}${totalBonus > 0 ? `(基础值 ${basePoints})` : ""}
2711
- 🪙 咕咕币 x ${tickets}${effectMessage}`;
2709
+ return "签到成功!本月累计签到" + monthlyDays + "天,获得:\n💰 金币 x " + finalPoints + (totalBonus > 0 ? " (基础值 " + basePoints + ")" : "") + "\n🪙 咕咕币 x " + tickets + effectMessage;
2712
2710
  } catch (error) {
2713
2711
  console.error("签到命令时发生错误:", error);
2714
2712
  return "服务器繁忙,请稍后尝试。";
@@ -4087,8 +4085,7 @@ ${Object.keys(typeStats).join("、")}`;
4087
4085
  const items = Object.entries(weaponConfig).filter(([_, config2]) => config2.type === type && config2.price !== 0).map(([name2, config2]) => {
4088
4086
  const actualPrice = Math.floor(config2.price * (100 - totalDiscount) / 100);
4089
4087
  const tagEffectsDesc = config2.tagEffects ? Object.entries(config2.tagEffects).map(([tag, multiplier]) => `▸ 对${tag}目标造成${(multiplier * 100).toFixed(0)}%伤害`).join("\n") : "▸ 无特殊加成效果";
4090
- const specialEffect = config2.specialeffect ? `
4091
- 特殊效果:${config2.specialeffect}` : "";
4088
+ const specialEffect = config2.specialeffect ? `特殊效果:${config2.specialeffect}` : "";
4092
4089
  return [
4093
4090
  `【${name2}】`,
4094
4091
  `类型:${config2.type}`,
@@ -4806,7 +4803,7 @@ ${passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
4806
4803
  ] : [],
4807
4804
  `造成伤害:${initialDamage}${hasCrit ? "(✨ 暴击)" : ""}`,
4808
4805
  ...extraDamages.length > 0 ? [
4809
- `⚡ 散射伤害:`,
4806
+ `散射伤害:`,
4810
4807
  ...extraDamages.map((d) => `▸ 对 ${d.name} 造成 ${d.damage} 伤害`)
4811
4808
  ] : [],
4812
4809
  `获得金币:${finalReward}${careerMessage}`,
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.25",
4
+ "version": "1.3.27",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [