koishi-plugin-smmcat-gensokyo 0.0.42 → 0.0.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 +7 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -798,7 +798,6 @@ var PassiveFn = {
|
|
|
798
798
|
const val = Math.floor(config.harm * 0.2);
|
|
799
799
|
if (val && random(0, 10) <= 4) {
|
|
800
800
|
const value = new BuffDamage(val, config.linkAgent.self, true).giveDamage();
|
|
801
|
-
console.log(config.linkAgent.self);
|
|
802
801
|
return `‣ ${getLineupName(config.linkAgent.self)}:[${this.name}] HP-${value}`;
|
|
803
802
|
}
|
|
804
803
|
return ``;
|
|
@@ -3050,7 +3049,10 @@ var GensokyoMap = {
|
|
|
3050
3049
|
areaName: "2层-商店",
|
|
3051
3050
|
type: "安全区" /* 安全区 */,
|
|
3052
3051
|
needLv: 1,
|
|
3053
|
-
|
|
3052
|
+
top: "旅馆",
|
|
3053
|
+
left: "希望之泉",
|
|
3054
|
+
right: "大草场",
|
|
3055
|
+
down: "银行"
|
|
3054
3056
|
},
|
|
3055
3057
|
"大草场": {
|
|
3056
3058
|
floor: 2,
|
|
@@ -3757,6 +3759,9 @@ function apply(ctx, config) {
|
|
|
3757
3759
|
const selectMonster = areaInfo.monster.find((i) => i.name == goal);
|
|
3758
3760
|
await BattleData.createBattleByMonster(session, [selectMonster]);
|
|
3759
3761
|
} else {
|
|
3762
|
+
if (!areaInfo.monster?.length) {
|
|
3763
|
+
return `没有在该区域找到该怪物。`;
|
|
3764
|
+
}
|
|
3760
3765
|
const selectMonster = areaInfo.monster;
|
|
3761
3766
|
await Queue.add(async () => await BattleData.createBattleByMonster(session, selectMonster));
|
|
3762
3767
|
}
|