koishi-plugin-smmcat-gensokyo 0.0.8 → 0.0.9

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 +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1673,6 +1673,7 @@ function apply(ctx, config) {
1673
1673
  const { maxHp, maxMp, playName } = User.getUserAttributeByUserId(session.userId);
1674
1674
  User.userTempData[session.userId].hp = maxHp;
1675
1675
  User.userTempData[session.userId].mp = maxMp;
1676
+ await User.setDatabaseUserAttribute(session.userId);
1676
1677
  return playName + `通过补给,目前已恢复HP和MP`;
1677
1678
  });
1678
1679
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-gensokyo",
3
3
  "description": "名为《幻想乡》的文字冒险游戏",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [