summaryrefslogtreecommitdiff
path: root/includes/bitset.php
diff options
context:
space:
mode:
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,