mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user