diff options
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"] ?? []; |