From 926714a89d3dcc2976228b9f0039a34b1e18f5e6 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 13 May 2023 19:43:50 +0200 Subject: Updated 2 files and added assets/logo/plush.png (automated) --- assets/logo/plush.png | Bin 0 -> 2027 bytes includes/components/planner.inc | 14 +++++++++----- includes/flags.json | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 assets/logo/plush.png diff --git a/assets/logo/plush.png b/assets/logo/plush.png new file mode 100644 index 0000000..e3a02b2 Binary files /dev/null and b/assets/logo/plush.png differ diff --git a/includes/components/planner.inc b/includes/components/planner.inc index bf3372a..f07bd47 100644 --- a/includes/components/planner.inc +++ b/includes/components/planner.inc @@ -13,7 +13,7 @@ global $_PROFILE; $cloudburst = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/planner/ynmuc.json"), true); $raindrops = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/planner/gdapd.json"), true); -function pacifier($id) { +function fronterBadges($id) { global $isLowerLoggedIn; $metadata = parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $id . ".json"), true)); @@ -22,6 +22,10 @@ function pacifier($id) { return ""; } + if (isset($metadata["sleep_plush"]) && $metadata["sleep_plush"] && !$isLowerLoggedIn) { + return ""; + } + return ""; } @@ -195,7 +199,7 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis Other/unknown/fallback pony - " style="width:24px;"> + " style="width:24px;"> @@ -212,7 +216,7 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis Other/unknown/fallback pony - " style="width:24px;"> + " style="width:24px;"> @@ -239,7 +243,7 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis Other/unknown/fallback pony - " style="width:24px;"> + " style="width:24px;"> @@ -256,7 +260,7 @@ function day($display, $diff): void { if ($diff < 0) $disabled = true; else $dis Other/unknown/fallback pony - " style="width:24px;"> + " style="width:24px;"> diff --git a/includes/flags.json b/includes/flags.json index 7af1374..5fb7a89 100644 --- a/includes/flags.json +++ b/includes/flags.json @@ -24,6 +24,7 @@ "alcohol": "Drinks alcohol", "private": "Hide from public listings", "pacifier": "Sleeps with pacifier", + "sleep_plush": "Sleeps with a plush", "other": "Having sex with %other%", "other2": "Potentially having sex with %other%", "other3": "#Having sex with Raindrops", -- cgit