koishi-plugin-ggcevo-game 1.3.65 → 1.3.66
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 +34 -50
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -401,9 +401,9 @@ function apply(ctx, config) {
|
|
|
401
401
|
"零度之下": {
|
|
402
402
|
id: 8,
|
|
403
403
|
type: "热能武器",
|
|
404
|
-
damage:
|
|
404
|
+
damage: 20,
|
|
405
405
|
description: "喷射稳定的液氮恒流,对长时间接触者造成致命的损伤",
|
|
406
|
-
specialeffect: "攻击使目标叠加“寒冷”层数,每层使其受到的伤害+5%",
|
|
406
|
+
specialeffect: "攻击使目标叠加“寒冷”层数,每层使其受到的伤害+5%(至多叠加10层)",
|
|
407
407
|
price: 775,
|
|
408
408
|
redCrystalCost: 10,
|
|
409
409
|
isantiair: false,
|
|
@@ -429,14 +429,15 @@ function apply(ctx, config) {
|
|
|
429
429
|
"伽马枪": {
|
|
430
430
|
id: 10,
|
|
431
431
|
type: "热能武器",
|
|
432
|
-
damage:
|
|
432
|
+
damage: 25,
|
|
433
433
|
description: "一种高度危险性的武器,设计用辐射照射并伤害敌人",
|
|
434
|
-
specialeffect: "攻击使生物目标(无机械标签)叠加“辐射”层数,每层使其受到的伤害+
|
|
434
|
+
specialeffect: "攻击使生物目标(无机械标签)叠加“辐射”层数,每层使其受到的伤害+5%(至多叠加10层)",
|
|
435
435
|
price: 825,
|
|
436
436
|
redCrystalCost: 10,
|
|
437
437
|
isantiair: true,
|
|
438
438
|
tagEffects: {
|
|
439
|
-
"生物": 1.
|
|
439
|
+
"生物": 1.5,
|
|
440
|
+
"机械": 0.2
|
|
440
441
|
}
|
|
441
442
|
},
|
|
442
443
|
"中子步枪": {
|
|
@@ -686,14 +687,6 @@ function apply(ctx, config) {
|
|
|
686
687
|
effect: 0,
|
|
687
688
|
description: "当无“吸血”层数时,受到的伤害+20%"
|
|
688
689
|
},
|
|
689
|
-
"辐射": {
|
|
690
|
-
effect: 0,
|
|
691
|
-
description: "受到武器伽马枪攻击时会积累辐射层数,每层使受到的伤害增加1%(至多增加100%)"
|
|
692
|
-
},
|
|
693
|
-
"寒冷": {
|
|
694
|
-
effect: 0,
|
|
695
|
-
description: "受到武器零度之下攻击时会积累寒冷层数,每层使受到的伤害增加5%(至多增加50%)"
|
|
696
|
-
},
|
|
697
690
|
"电能导体": {
|
|
698
691
|
effect: 0,
|
|
699
692
|
description: "当血量降低到10%以下时,“护盾”标签变为“重甲”标签;"
|
|
@@ -1235,16 +1228,16 @@ function apply(ctx, config) {
|
|
|
1235
1228
|
}
|
|
1236
1229
|
];
|
|
1237
1230
|
const Tasklist = {
|
|
1238
|
-
"
|
|
1231
|
+
"伽马辐射": {
|
|
1239
1232
|
id: 1,
|
|
1240
1233
|
type: "可重复任务",
|
|
1241
1234
|
description: "利用【伽马枪】武器对异形目标造成辐射伤害",
|
|
1242
1235
|
target: 2,
|
|
1243
|
-
price:
|
|
1236
|
+
price: 100,
|
|
1244
1237
|
redCrystalCost: 0,
|
|
1245
1238
|
condition: "使用伽马枪攻击异形并成功使辐射层数+1"
|
|
1246
1239
|
},
|
|
1247
|
-
"
|
|
1240
|
+
"绝对零度": {
|
|
1248
1241
|
id: 2,
|
|
1249
1242
|
type: "可重复任务",
|
|
1250
1243
|
description: "利用【零度之下】武器对异形目标造成寒冷伤害",
|
|
@@ -1253,7 +1246,7 @@ function apply(ctx, config) {
|
|
|
1253
1246
|
redCrystalCost: 0,
|
|
1254
1247
|
condition: "使用零度之下攻击异形并成功使寒冷层数+1"
|
|
1255
1248
|
},
|
|
1256
|
-
"
|
|
1249
|
+
"胆汁引爆": {
|
|
1257
1250
|
id: 3,
|
|
1258
1251
|
type: "可重复任务",
|
|
1259
1252
|
description: "利用【焚烧枪】武器引爆异形目标的胆汁",
|
|
@@ -1937,55 +1930,46 @@ function apply(ctx, config) {
|
|
|
1937
1930
|
await ctx2.database.set("ggcevo_boss", { name: targetBoss.name }, { Skillcountpoints: newStacks });
|
|
1938
1931
|
return { updatedHP, messages };
|
|
1939
1932
|
}, "handleBloodCount"),
|
|
1940
|
-
//
|
|
1933
|
+
// 修改后的伽马枪辐射处理(上限10层,每层5%)
|
|
1941
1934
|
handleGammaRadiation: /* @__PURE__ */ __name(async (ctx2, targetBoss, weaponName) => {
|
|
1942
1935
|
if (weaponName !== "伽马枪" || targetBoss.tags.includes("机械") || !targetBoss.tags.includes("生物")) {
|
|
1943
1936
|
return null;
|
|
1944
1937
|
}
|
|
1945
1938
|
const messages = [];
|
|
1946
1939
|
let radiationApplied = false;
|
|
1947
|
-
const hasRadiation = targetBoss.skills.includes("辐射");
|
|
1948
1940
|
const currentLayers = targetBoss.Vulnerability || 0;
|
|
1949
|
-
const
|
|
1950
|
-
const newLayers =
|
|
1951
|
-
let layerMsg;
|
|
1952
|
-
if (!hasRadiation) {
|
|
1953
|
-
layerMsg = `☢️ ${targetBoss.name}获得【辐射】效果(当前1层)`;
|
|
1954
|
-
skillUpdates.push({
|
|
1955
|
-
name: targetBoss.name,
|
|
1956
|
-
add: ["辐射"]
|
|
1957
|
-
});
|
|
1958
|
-
radiationApplied = true;
|
|
1959
|
-
} else if (newLayers === currentLayers) {
|
|
1960
|
-
layerMsg = `☢️ 辐射层数已达上限(100层)`;
|
|
1961
|
-
} else {
|
|
1962
|
-
layerMsg = `☢️ ${targetBoss.name}获得1层“辐射”(当前${newLayers}层)`;
|
|
1963
|
-
radiationApplied = true;
|
|
1964
|
-
}
|
|
1941
|
+
const maxLayers = 10;
|
|
1942
|
+
const newLayers = Math.min(currentLayers + 1, maxLayers);
|
|
1965
1943
|
await ctx2.database.set(
|
|
1966
1944
|
"ggcevo_boss",
|
|
1967
1945
|
{ name: targetBoss.name },
|
|
1968
|
-
{
|
|
1969
|
-
Vulnerability: newLayers
|
|
1970
|
-
}
|
|
1946
|
+
{ Vulnerability: newLayers }
|
|
1971
1947
|
);
|
|
1972
|
-
|
|
1948
|
+
if (newLayers === maxLayers && currentLayers < maxLayers) {
|
|
1949
|
+
messages.push(`☢️ 【辐射】效果达到上限(10层)`);
|
|
1950
|
+
} else {
|
|
1951
|
+
const layerIncrease = newLayers - currentLayers;
|
|
1952
|
+
messages.push(`☢️ ${targetBoss.name}获得${layerIncrease}层"辐射"(当前${newLayers}层)`);
|
|
1953
|
+
radiationApplied = true;
|
|
1954
|
+
}
|
|
1973
1955
|
return {
|
|
1974
1956
|
messages,
|
|
1975
|
-
skillUpdates,
|
|
1976
1957
|
radiationApplied
|
|
1977
|
-
// 返回辐射应用标志
|
|
1978
1958
|
};
|
|
1979
1959
|
}, "handleGammaRadiation"),
|
|
1980
|
-
//
|
|
1960
|
+
// 修改后的辐射伤害计算(每层5%增伤)
|
|
1981
1961
|
calculateRadiationDamage: /* @__PURE__ */ __name((targetBoss) => {
|
|
1982
|
-
if (!targetBoss.skills.includes("辐射")) return null;
|
|
1983
1962
|
const radiationLayers = targetBoss.Vulnerability || 0;
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1963
|
+
if (radiationLayers > 0) {
|
|
1964
|
+
return {
|
|
1965
|
+
damageMultiplier: radiationLayers * 0.05,
|
|
1966
|
+
// 每层5%增伤
|
|
1967
|
+
messages: [
|
|
1968
|
+
`☢️ 【辐射】生效:当前${radiationLayers}层辐射,受到的伤害+${radiationLayers * 5}%`
|
|
1969
|
+
]
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
return null;
|
|
1989
1973
|
}, "calculateRadiationDamage"),
|
|
1990
1974
|
// 新增寒冷层数处理函数(类似辐射处理)
|
|
1991
1975
|
handleColdEffect: /* @__PURE__ */ __name(async (ctx2, targetBoss, weaponName) => {
|
|
@@ -6369,14 +6353,14 @@ ${scatterMsg}`);
|
|
|
6369
6353
|
return "🚫 该功能需要【辛迪加海盗】阵营权限";
|
|
6370
6354
|
}
|
|
6371
6355
|
await session.send(`请输入你想要兑换多少红晶?(请在30秒内回复数字,回复“0”为取消兑换)
|
|
6372
|
-
注意:每块红晶需要
|
|
6356
|
+
注意:每块红晶需要500金币。`);
|
|
6373
6357
|
const exchangeInput = await session.prompt(3e4);
|
|
6374
6358
|
if (!exchangeInput) return "已取消操作,请重新输入。";
|
|
6375
6359
|
const exchangeCount = parseInt(exchangeInput, 10);
|
|
6376
6360
|
if (isNaN(exchangeCount)) return "请输入有效的数字!";
|
|
6377
6361
|
if (exchangeCount < 0) return "兑换数量不能为负数!";
|
|
6378
6362
|
if (exchangeCount === 0) return "已取消兑换。";
|
|
6379
|
-
const goldAmount = exchangeCount *
|
|
6363
|
+
const goldAmount = exchangeCount * 500;
|
|
6380
6364
|
const [coin] = await ctx.database.get("ggcevo_sign", {
|
|
6381
6365
|
handle
|
|
6382
6366
|
});
|