koishi-plugin-ggcevo-game 1.3.26 → 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 +9 -10
  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
  // 核心功能开关组
@@ -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
  }
@@ -4085,8 +4085,7 @@ ${Object.keys(typeStats).join("、")}`;
4085
4085
  const items = Object.entries(weaponConfig).filter(([_, config2]) => config2.type === type && config2.price !== 0).map(([name2, config2]) => {
4086
4086
  const actualPrice = Math.floor(config2.price * (100 - totalDiscount) / 100);
4087
4087
  const tagEffectsDesc = config2.tagEffects ? Object.entries(config2.tagEffects).map(([tag, multiplier]) => `▸ 对${tag}目标造成${(multiplier * 100).toFixed(0)}%伤害`).join("\n") : "▸ 无特殊加成效果";
4088
- const specialEffect = config2.specialeffect ? `
4089
- 特殊效果:${config2.specialeffect}` : "";
4088
+ const specialEffect = config2.specialeffect ? `特殊效果:${config2.specialeffect}` : "";
4090
4089
  return [
4091
4090
  `【${name2}】`,
4092
4091
  `类型:${config2.type}`,
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.26",
4
+ "version": "1.3.27",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [