From 6715936a3b33c14b2d8c581677855bb6c1297940 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 1 Jun 2023 16:30:41 +0200 Subject: implement promotion buff coefficient to promotion string converter --- public/index.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index cf8e7d1..0fd0ff2 100644 --- a/public/index.php +++ b/public/index.php @@ -1,5 +1,16 @@ + 0; $i--) + if (abs((($i/$count_buff)-$price_buff)/$price_buff) < 0.001) + return $i."+".($count_buff - $i)." gratis"; + } + return ((1-$price_buff)*100)."% korting per ".$count_buff."-pack"; +} +?> @@ -13,9 +24,11 @@

hier zijn de aanbiedingen

-- cgit v1.2.3