|
@@ -107,14 +107,6 @@ module.exports = function AutoPOT(mod) {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- mod.hook('S_CREATURE_CHANGE_HP', 6, e => {
|
|
|
|
|
- if (config.enabled) useHP(Math.round(s2n(e.curHp) / s2n(e.maxHp) * 100));
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- mod.hook('S_PLAYER_CHANGE_MP', 1, e => {
|
|
|
|
|
- if (config.enabled) useMP(Math.round(s2n(e.currentMp) / s2n(e.maxMp) * 100));
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
mod.hook('S_PLAYER_STAT_UPDATE', 10, e => {
|
|
mod.hook('S_PLAYER_STAT_UPDATE', 10, e => {
|
|
|
if (config.enabled) {
|
|
if (config.enabled) {
|
|
|
useHP(Math.round(s2n(e.hp) / s2n(e.maxHp) * 100));
|
|
useHP(Math.round(s2n(e.hp) / s2n(e.maxHp) * 100));
|