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.
- package/lib/index.js +1 -0
- 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
|
}
|