From eb7405f92bd01ab59a056ff5df6d2f1d6b30f0ce Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 13 Apr 2023 22:07:44 +0200 Subject: Updated 13 files and added 2 files (automated) --- pages/api/badger.php | 1 + pages/api/design.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/byspecies.inc | 3 +++ pages/jobs.inc | 18 +++++++++++++++--- pages/metadata.inc | 11 +++++++---- pages/money.inc | 2 +- 6 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 pages/api/design.php (limited to 'pages') diff --git a/pages/api/badger.php b/pages/api/badger.php index 76f017e..3e8d04a 100644 --- a/pages/api/badger.php +++ b/pages/api/badger.php @@ -39,6 +39,7 @@ die(json_encode(array_map(function ($i) { "batpony" => $i["_metadata"]["robot"] ? "Robot bat pony" : (!$i["_metadata"]["plush"] ? "Bat pony" : "Bat pony plush"), "unicorn" => $i["_metadata"]["robot"] ? "Robot unicorn" : (!$i["_metadata"]["plush"] ? "Unicorn" : "Unicorn plush"), "changeling" => "Changeling", + "merpony" => "Merpony", default => $i["_metadata"]["species"][0] . "_" . $i["_metadata"]["robot"] }, "age" => getAge($i["_metadata"]), diff --git a/pages/api/design.php b/pages/api/design.php new file mode 100644 index 0000000..512677d --- /dev/null +++ b/pages/api/design.php @@ -0,0 +1,54 @@ + "Untitled", + "note" => "ID: " . $id, + "image" => $text + ]; + + break; + + default: + die("Invalid type"); +} + +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $_GET["member"] . ".json", json_encode($designs)); \ No newline at end of file diff --git a/pages/byspecies.inc b/pages/byspecies.inc index ee2b372..d2a2930 100644 --- a/pages/byspecies.inc +++ b/pages/byspecies.inc @@ -30,6 +30,7 @@ function species(array $members, string $id, string $name) { global $systemID; g $batpony = []; $crystal = []; $changeling = []; + $merpony = []; foreach ($members as $member) { foreach ($member["_metadata"]["species"] as $species) { @@ -40,6 +41,7 @@ function species(array $members, string $id, string $name) { global $systemID; g if ($species === "batpony") $batpony[] = $member; if ($species === "crystal") $crystal[] = $member; if ($species === "changeling") $changeling[] = $member; + if ($species === "merpony") $merpony[] = $member; } } @@ -52,6 +54,7 @@ function species(array $members, string $id, string $name) { global $systemID; g + \ No newline at end of file diff --git a/pages/jobs.inc b/pages/jobs.inc index 109b484..6723175 100644 --- a/pages/jobs.inc +++ b/pages/jobs.inc @@ -1,10 +1,18 @@