koishi-plugin-ggcevo-game 1.4.89 → 1.4.91
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 +25 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -287,7 +287,7 @@ var weaponConfig = {
|
|
|
287
287
|
id: 17,
|
|
288
288
|
type: "能量武器",
|
|
289
289
|
category: "能量武器",
|
|
290
|
-
damage:
|
|
290
|
+
damage: 60,
|
|
291
291
|
armorDamageReduction: 0,
|
|
292
292
|
description: "一种实验性的超级武器,能造成巨大的伤害",
|
|
293
293
|
specialeffect: "",
|
|
@@ -303,7 +303,7 @@ var weaponConfig = {
|
|
|
303
303
|
damage: 70,
|
|
304
304
|
armorDamageReduction: 0.1,
|
|
305
305
|
description: "二十一世纪的武器,经过修改以减少后坐力并提高远程精度",
|
|
306
|
-
specialeffect: "",
|
|
306
|
+
specialeffect: "连续攻击叠加[横冲直撞]效果,每层提高2.5%伤害(最多20层)",
|
|
307
307
|
price: 2e3,
|
|
308
308
|
redCrystalCost: 20,
|
|
309
309
|
isantiair: true,
|
|
@@ -748,9 +748,9 @@ var syndicatePirateConfig = [
|
|
|
748
748
|
{
|
|
749
749
|
professionName: "指挥官",
|
|
750
750
|
effect: "可以使用红晶升级独特的辛迪加空间站科技;购买光剑(传奇)享有50%的折扣",
|
|
751
|
-
requirements: "",
|
|
752
|
-
Jobtransfer:
|
|
753
|
-
costredcrystal:
|
|
751
|
+
requirements: "PK胜利20次及以上;非辛迪加炮灰新兵职业",
|
|
752
|
+
Jobtransfer: true,
|
|
753
|
+
costredcrystal: 35
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
756
|
professionName: "装甲兵",
|
|
@@ -900,6 +900,26 @@ async function checkTransferRequirements(ctx, handle, profession) {
|
|
|
900
900
|
message: hasModifiedWeapon ? "" : "需要至少拥有一把改装了3个模块的武器"
|
|
901
901
|
};
|
|
902
902
|
}
|
|
903
|
+
// +++ 新增指挥官检查 +++
|
|
904
|
+
case "指挥官": {
|
|
905
|
+
if (careerData?.career === "辛迪加炮灰新兵") {
|
|
906
|
+
return {
|
|
907
|
+
success: false,
|
|
908
|
+
message: "非辛迪加炮灰新兵职业才能转职为指挥官"
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
const [pkProfile] = await ctx.database.get("ggcevo_pk", { handle });
|
|
912
|
+
if (!pkProfile) {
|
|
913
|
+
return {
|
|
914
|
+
success: false,
|
|
915
|
+
message: "没有PK记录,需要PK胜利20次及以上"
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
return {
|
|
919
|
+
success: pkProfile.wins >= 20,
|
|
920
|
+
message: pkProfile.wins >= 20 ? "" : `需要PK胜利20次及以上(当前${pkProfile.wins}次)`
|
|
921
|
+
};
|
|
922
|
+
}
|
|
903
923
|
case "清洁工":
|
|
904
924
|
if (!mainBoss) return { success: false, message: "当前暂无伤害榜。" };
|
|
905
925
|
const cleanTop20 = await ctx.database.select("ggcevo_boss_damage").where({ bossGroupId: mainBoss.groupId }).orderBy("totalDamage", "desc").limit(20).execute();
|