From 09bd0164ebc020a54b944b7326dcba496fb5d82c Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 26 Aug 2022 22:29:23 +0200 Subject: idk when was the last commit so I'm making a new one - Violet Dawn --- includes/bitset.php | 46 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 12 deletions(-) (limited to 'includes/bitset.php') diff --git a/includes/bitset.php b/includes/bitset.php index 272325a..6483669 100644 --- a/includes/bitset.php +++ b/includes/bitset.php @@ -1,18 +1,24 @@ "earth", @@ -34,6 +40,16 @@ function parseBitset ($bitset) { default => null, }; + $species3 = match ($species3) { + "0001" => "earth", + "0010" => "unicorn", + "0011" => "pegasus", + "0100" => "alicorn", + "0101" => "batpony", + "0110" => "crystal", + default => null, + }; + return [ 'shared_memory' => $sharedMemory, 'median' => $median, @@ -43,9 +59,15 @@ function parseBitset ($bitset) { 'not_talking' => $notTalking, 'host' => $host, 'robot' => $robot, + 'magic' => $magic, + 'sensitivity' => $sensitivity, + 'food' => $food, + 'plush' => $plush, + 'age_spells' => $age, 'species' => array_filter([ $species1, - $species2 + $species2, + $species3 ], function ($i) { return isset($i); }) -- cgit