From b5299b8afd705fd3bb629a9fc81090f4a4201f5c Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Thu, 27 Dec 2018 15:18:55 +0200 Subject: [PATCH] tests --- functions.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 4e27382..1d592c1 100644 --- a/functions.php +++ b/functions.php @@ -701,17 +701,23 @@ function setHP($hp, $maxhp) return $rr; } + +/** + * @param $hp + * @param $maxhp + */ function setHP2($hp, $maxhp) { $bar = round($hp/$maxhp*100); - ?> -
-
+ $output = << +
-
- / +
+ $hp / $maxhp
-