big update (trade routes, less hungry troops artefact, somethings in hero table, fix peace reports...)

This commit is contained in:
unknown
2012-06-07 22:15:27 +03:00
parent aede02f5f1
commit 7f1cf234b2
13 changed files with 460 additions and 36 deletions
+12 -1
View File
@@ -401,7 +401,18 @@ class Technology {
// $unit = "hero";
// global $$unit;
// $dataarray = $$unit;
$upkeep += $array['hero'] * 6;
$upkeep += $array['hero'] * 6;
$artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,4,3,0));
$artefact1 = count($database->getOwnUniqueArtefactInfo2($vid,4,1,1));
$artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,4,2,0));
if($artefact > 0){
$upkeep /= 2;
}else if($artefact1 > 1){
$upkeep /= 2;
}else if($artefact2 > 1){
$upkeep /= 4;
$upkeep *= 3;
}
return $upkeep;
}