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.
Files changed (2) hide show
  1. package/lib/index.js +7 -2
  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
- right: "大草场"
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-gensokyo",
3
3
  "description": "名为《幻想乡》的文字冒险游戏",
4
- "version": "0.0.42",
4
+ "version": "0.0.44",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [