summaryrefslogtreecommitdiff
path: root/includes/score.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-08-10 00:23:09 +0200
committerMinteck <contact@minteck.org>2022-08-10 00:23:09 +0200
commit84dd0735820b16b60f600284d35183d76547a71f (patch)
tree779e22994583e04fe4a323e5aed5f3d267dfcde4 /includes/score.php
parent0417260bf158c5d7b62888dae2e202b0de115a05 (diff)
downloadpluralconnect-84dd0735820b16b60f600284d35183d76547a71f.tar.gz
pluralconnect-84dd0735820b16b60f600284d35183d76547a71f.tar.bz2
pluralconnect-84dd0735820b16b60f600284d35183d76547a71f.zip
Stuff
Diffstat (limited to 'includes/score.php')
-rw-r--r--includes/score.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/score.php b/includes/score.php
index c3108f2..5367cd6 100644
--- a/includes/score.php
+++ b/includes/score.php
@@ -8,7 +8,7 @@ function calculateScore($metadata, $name) {
$scoreMedian = $metadata["median"] !== false ? -50 : 0;
$scoreProtector = $metadata["protector"] ? 1000 : 0;
$scoreSharedMemory = $metadata["shared_memory"] === 0 ? 200 : ($metadata["shared_memory"] === 1 ? 50 : 0);
- $scoreSpecies = (in_array("pegasus", $metadata["species"]) ? 100 : 0) + (in_array("unicorn", $metadata["species"]) ? 75 : 0) + (in_array("earth", $metadata["species"]) ? 50 : 0) + (in_array("alicorn", $metadata["species"]) ? 150 : 0) + (in_array("batpony", $metadata["species"]) ? 125 : 0);
+ $scoreSpecies = (in_array("pegasus", $metadata["species"]) ? 100 : 0) + (in_array("unicorn", $metadata["species"]) ? 75 : 0) + (in_array("earth", $metadata["species"]) ? 50 : 0) + (in_array("alicorn", $metadata["species"]) ? 150 : 0) + (in_array("batpony", $metadata["species"]) ? 125 : 0) + (in_array("crystal", $metadata["species"]) ? 125 : 0);
$scoreName = strlen($name) * 5;
$relations = (count($metadata["marefriends"]) * ($metadata["little"] ? 1 : 2)) + count($metadata["sisters"]);
$scoreRelations = $relations * 50;