From ac6cb4d39fa7a2e7b98f944bbe106d230e511595 Mon Sep 17 00:00:00 2001 From: Joao Paulo Oliveira Fernandes Date: Sun, 21 Jan 2024 13:24:39 -0300 Subject: [PATCH] small fix on set_char_hp_pp --- base/game_events/SetCharHPPPEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/game_events/SetCharHPPPEvent.ts b/base/game_events/SetCharHPPPEvent.ts index 5b07c93aec..49240c5f90 100644 --- a/base/game_events/SetCharHPPPEvent.ts +++ b/base/game_events/SetCharHPPPEvent.ts @@ -38,13 +38,13 @@ export class SetCharHPPPEvent extends GameEvent { if (this.value === "full") { char.current_hp = char.max_hp; } else if (_.isNumber(this.value) && (this.value as number) >= 0) { - char.current_hp = _.clamp(this.value as number, 0, char.max_hp); + char.current_hp = _.clamp(this.value as number, 0, char.max_hp) | 0; } } else if (this.points_type === points_types.PP) { if (this.value === "full") { char.current_pp = char.max_pp; } else if (_.isNumber(this.value) && (this.value as number) >= 0) { - char.current_pp = _.clamp(this.value as number, 0, char.max_pp); + char.current_pp = _.clamp(this.value as number, 0, char.max_pp) | 0; } } });