koishi-plugin-ggcevo-game 1.3.42 → 1.3.44
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 +6 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2031,7 +2031,10 @@ function apply(ctx, config) {
|
|
|
2031
2031
|
damageMultiplier: -baseReduction + freezingBonus,
|
|
2032
2032
|
messages: [
|
|
2033
2033
|
`🌀 【能量黑洞】生效:基础减伤10%`,
|
|
2034
|
-
currentFreezing > 0 ?
|
|
2034
|
+
currentFreezing > 0 ? (
|
|
2035
|
+
// 关键修改:将百分比四舍五入为整数
|
|
2036
|
+
`❄️ 寒冷(${currentFreezing}层)使受到的伤害+${Math.round(freezingBonus * 100)}%`
|
|
2037
|
+
) : ""
|
|
2035
2038
|
].filter(Boolean)
|
|
2036
2039
|
};
|
|
2037
2040
|
}, "handleEnergyBlackhole"),
|
|
@@ -6376,13 +6379,13 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
6376
6379
|
handle,
|
|
6377
6380
|
taskId: task2.id
|
|
6378
6381
|
}).catch(() => [null]);
|
|
6379
|
-
const completionStatus = playerTask2 ?
|
|
6382
|
+
const completionStatus = playerTask2 ? `${playerTask2.progress}/${task2.target}` : "尚未开始";
|
|
6380
6383
|
taskList.push([
|
|
6381
6384
|
`▸ 【${taskName}】`,
|
|
6382
6385
|
`类型: ${task2.type}`,
|
|
6383
6386
|
`目标: ${task2.target}次`,
|
|
6384
6387
|
`奖励: ${task2.price}金币`,
|
|
6385
|
-
|
|
6388
|
+
`进度: ${completionStatus}`
|
|
6386
6389
|
].join("\n"));
|
|
6387
6390
|
}
|
|
6388
6391
|
return [
|