From e95b208af90cc386a7d8d1bcab426727cf4f0121 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 21 Sep 2022 22:42:33 +0200 Subject: Update time --- pages/toys.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'pages/toys.php') diff --git a/pages/toys.php b/pages/toys.php index e4e5def..e0fb1fe 100644 --- a/pages/toys.php +++ b/pages/toys.php @@ -1,7 +1,6 @@

Edit · - + Sexual Pleasurable - Unverified - Untested - + Unverified + Untested + Underwater - + Outside of water - + In playground Underwater @@ -356,17 +354,19 @@ global $_PROFILE; if ($action["name"] !== $currentName) $names[$action["name"]] = [ "id" => $action["id"], "water" => $action["water"], - "ponies" => $action["ponies"] + "ponies" => $action["ponies"], + "sexual" => $action["sexual"] ]; } foreach ($names as $name => $data) { $namesByDistance[] = [ "name" => $name, - "distance" => levenshtein($currentName, $name) + ((int)($data["type"] !== $selected["type"]) * 2), + "distance" => levenshtein($currentName, $name) + ((int)($data["water"] !== $selected["water"]) * 2), "id" => $data["id"], "water" => $data["water"], - "ponies" => $data["ponies"] + "ponies" => $data["ponies"], + "sexual" => $data["sexual"] ]; } @@ -382,7 +382,7 @@ global $_PROFILE; foreach ($namesByDistance as $item): if ($index < 3): ?>

- ">