koishi-plugin-ggcevo-game 1.6.69 → 1.6.70
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.
|
@@ -136,7 +136,7 @@ export declare const BattleEffectProcessor: {
|
|
|
136
136
|
};
|
|
137
137
|
handleMoldGrowth: (targetBoss: any, activeBosses: any[]) => {
|
|
138
138
|
messages: string[];
|
|
139
|
-
|
|
139
|
+
otherUpdates: {
|
|
140
140
|
name: string;
|
|
141
141
|
updates: Partial<BattleStatistics>;
|
|
142
142
|
} | null;
|
package/lib/index.js
CHANGED
|
@@ -2261,7 +2261,7 @@ var BattleEffectProcessor = {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
const spaceStationMaxHP = getMaxHPByName(spaceStation.name);
|
|
2263
2263
|
const healAmount = Math.round(spaceStationMaxHP * 0.01);
|
|
2264
|
-
const
|
|
2264
|
+
const otherUpdates = {
|
|
2265
2265
|
name: spaceStation.name,
|
|
2266
2266
|
updates: {
|
|
2267
2267
|
hpChange: healAmount
|
|
@@ -2270,7 +2270,7 @@ var BattleEffectProcessor = {
|
|
|
2270
2270
|
messages.push(`🍄 【霉菌滋生】生效:为「空间站哨枪塔」回复${healAmount}点生命值`);
|
|
2271
2271
|
return {
|
|
2272
2272
|
messages,
|
|
2273
|
-
|
|
2273
|
+
otherUpdates
|
|
2274
2274
|
};
|
|
2275
2275
|
}, "handleMoldGrowth"),
|
|
2276
2276
|
// 岗哨机枪处理(累计10次攻击后为其他异形回复10%最大生命值)
|
|
@@ -4318,7 +4318,8 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4318
4318
|
updateStatsByName(result.targetUpdates.name, result.targetUpdates.updates);
|
|
4319
4319
|
}
|
|
4320
4320
|
if (result.otherUpdates) {
|
|
4321
|
-
|
|
4321
|
+
const updates = Array.isArray(result.otherUpdates) ? result.otherUpdates : [result.otherUpdates];
|
|
4322
|
+
for (const update of updates) {
|
|
4322
4323
|
updateStatsByName(update.name, update.updates);
|
|
4323
4324
|
}
|
|
4324
4325
|
}
|