From ba156ae3d22ad6ef31c087371424acb3247e1030 Mon Sep 17 00:00:00 2001 From: Daegaladh Date: Tue, 27 Aug 2024 21:27:12 +0200 Subject: [PATCH] Improved logic --- src/map/clif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index dcf6ea40a8..870f7ac202 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -1768,13 +1768,13 @@ void clif_homunculus_updatestatus(map_session_data& sd, _sp type) { p.value = static_cast( std::minhomunculus.exp)>( sd.hd->homunculus.exp, std::numeric_limits::max() ) ); break; case SP_HP: - if (status->max_hp > (std::numeric_limits::max() / 200)) + if (status->max_hp > (std::numeric_limits::type>::max() / 100)) p.value = status->hp / (status->max_hp / 100); else p.value = static_cast(status->hp); break; case SP_SP: - if (status->max_sp > (std::numeric_limits::max() / 200)) + if (status->max_sp > (std::numeric_limits::type>::max() / 100)) p.value = status->sp / (status->max_sp / 100); else p.value = static_cast(status->sp);