summaryrefslogtreecommitdiff
path: root/includes/bitset.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-08-31 22:03:07 +0200
committerMinteck <contact@minteck.org>2022-08-31 22:03:07 +0200
commitb5f589c323f415bb42ea7069cb4d1a8a2233dd69 (patch)
treec3b80234ab7f463a2e7b8b672ceff57422b3496b /includes/bitset.php
parent09bd0164ebc020a54b944b7326dcba496fb5d82c (diff)
downloadpluralconnect-b5f589c323f415bb42ea7069cb4d1a8a2233dd69.tar.gz
pluralconnect-b5f589c323f415bb42ea7069cb4d1a8a2233dd69.tar.bz2
pluralconnect-b5f589c323f415bb42ea7069cb4d1a8a2233dd69.zip
Update I guess - Stuffie
Diffstat (limited to 'includes/bitset.php')
-rw-r--r--includes/bitset.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/bitset.php b/includes/bitset.php
index 6483669..2e5a645 100644
--- a/includes/bitset.php
+++ b/includes/bitset.php
@@ -7,6 +7,8 @@ function parseBitset ($bitset) {
$median = substr($bin, 10 + 16, 1) !== "0";
$little = bindec(substr($bin, 11 + 16, 2));
$food = bindec(substr($bin, 16, 2));
+ $nonverbal = substr($bin, 15, 1) !== "0";
+ $lessFrequent = substr($bin, 14, 1) !== "0";
$magic = bindec(substr($bin, 2 + 16, 3));
$sensitivity = bindec(substr($bin, 5 + 16, 3));
$protector = substr($bin, 13 + 16, 1) !== "0";
@@ -63,6 +65,8 @@ function parseBitset ($bitset) {
'sensitivity' => $sensitivity,
'food' => $food,
'plush' => $plush,
+ 'nonverbal' => $nonverbal,
+ 'less_frequent' => $lessFrequent,
'age_spells' => $age,
'species' => array_filter([
$species1,