big update (fix sitters, peace system, fix some problems of hero...)

This commit is contained in:
unknown
2012-06-01 20:18:40 +03:00
parent 933285bb7e
commit f9b9d7faaf
48 changed files with 374 additions and 175 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ if($units_incoming >= 1){
echo "<td>".$enforce['hero']."</td>";
}
echo "</tr></tbody>
<tbody class=\"infos\"><tr><th>Upkeep</th><td colspan=\"$colspan\"><div class='sup'>".$technology->getUpkeep($enforce,$tribe)."<img class=\"r4\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" />per hour</div><div class='sback'><a href='a2b.php?w=".$enforce['id']."'>Send back</a></div></td></tr>";
<tbody class=\"infos\"><tr><th>Upkeep</th><td colspan=\"$colspan\"><div class='sup'>".$technology->getUpkeep($enforce,$tribe)."<img class=\"r4\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" />per hour</div><div class='sback'><span class=none><b>Send back</b></span></div></td></tr>";
echo "</tbody></table>";
}
+3 -3
View File
@@ -19,7 +19,7 @@ $mastertime = $uprequire['time'];
<?php
if($bindicator == 2) {
echo "<span class=\"none\">The workers are already at work.</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
@@ -33,7 +33,7 @@ $mastertime = $uprequire['time'];
}
else if($bindicator == 3) {
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
@@ -57,7 +57,7 @@ $mastertime = $uprequire['time'];
else if($bindicator == 7) {
$neededtime = $building->calculateAvaliable($id,$bid);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
+3 -3
View File
@@ -16,7 +16,7 @@ $uprequire = $building->resourceRequired(99,$bid);
<?php
if($bindicator == 2) {
echo "<span class=\"none\">The workers are already at work.</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1){
@@ -30,7 +30,7 @@ $uprequire = $building->resourceRequired(99,$bid);
}
else if($bindicator == 3) {
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1){
@@ -54,7 +54,7 @@ $uprequire = $building->resourceRequired(99,$bid);
else if($bindicator == 7) {
$neededtime = $building->calculateAvaliable(99,$bid);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1){
+3 -3
View File
@@ -22,7 +22,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
<?php
if($bindicate == 2) {
echo "<span class=\"none\">The workers are already at work.</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {
@@ -46,7 +46,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
}
else if($bindicate == 3) {
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {
@@ -80,7 +80,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
else if($bindicate == 7) {
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {
+3 -3
View File
@@ -42,7 +42,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
<?php
if($bindicate == 2) {
echo "<span class=\"none\">The workers are already at work.</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {
@@ -66,7 +66,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
}
else if($bindicate == 3) {
echo "<span class=\"none\">The workers are already at work. (waiting loop)</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {
@@ -100,7 +100,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
else if($bindicate == 7) {
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
if($session->goldclub){
if($session->goldclub == 1){
?> </br>
<?php
if($id <= 18) {