diff options
author | Minteck <contact@minteck.org> | 2023-01-28 20:31:04 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-01-28 20:31:04 +0100 |
commit | 089d94ff3a34ef022015bf28db0427497acc67ea (patch) | |
tree | 2b7db486ba3cd7ebdd728599bb5af99eafe9bde4 /includes/bitset.inc | |
parent | 9b2f05228357a34a3c0f2950782835dfeb35086e (diff) | |
download | pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.tar.gz pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.tar.bz2 pluralconnect-089d94ff3a34ef022015bf28db0427497acc67ea.zip |
Updated 7 files and renamed 2 files (automated)
Diffstat (limited to 'includes/bitset.inc')
-rw-r--r-- | includes/bitset.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/bitset.inc b/includes/bitset.inc index 955d953..f8ac366 100644 --- a/includes/bitset.inc +++ b/includes/bitset.inc @@ -10,6 +10,7 @@ function parseBitset ($bitset) { $lessFrequent = substr($bin, 14, 1) !== "0"; $sexuallyActive = substr($bin, 13, 1) !== "0"; $leader = substr($bin, 11, 1) !== "0"; + $sexualFeatures = substr($bin, 12, 1) !== "0"; $persecutor = substr($bin, 10, 1) !== "0"; $protector = substr($bin, 29, 1) !== "0"; $fictive = substr($bin, 30, 1) !== "0"; @@ -71,6 +72,7 @@ function parseBitset ($bitset) { 'fictive' => $fictive, 'little' => $little, 'not_talking' => false, + 'sexual_features' => $sexualFeatures, 'host' => false, 'robot' => $robot, 'magic' => 0, @@ -105,6 +107,7 @@ function parseMetadata ($metadata) { if (isset($metadata)) { if ($metadata["bitset"]) { $m = parseBitset($metadata["bitset"]); + $m["sexfriends"] = $metadata["sexfriends"] ?? []; $m["marefriends"] = $metadata["marefriends"] ?? []; $m["bitset"] = $metadata["bitset"] ?? 0; $m["sisters"] = $metadata["sisters"] ?? []; |