General fixes

-Removed the possibility to manual add Natars, WW Villages and WW
building plans
+The crop consumption in WW villages is now halved
This commit is contained in:
iopietro
2018-05-11 01:46:17 +02:00
parent 950fc61f8a
commit 2534fdf2a3
8 changed files with 3 additions and 431 deletions
+3
View File
@@ -453,6 +453,9 @@ class Technology {
$upkeep += $array[$index] * 6;
$who = $database->getVillageField($vid, "owner");
//If it's a WW village, halve the crop consumption
if($database->getVillageField($vid, "natar") == 1) $upkeep /= 2;
return ceil($database->getArtifactsValueInfluence($who, $vid, 4, $upkeep, false));
}