diff warfare.pl @ 332:118605b58d09

random fight
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Thu, 12 Feb 2009 03:23:06 +0800
parents d194ff3edb2f
children 824f949bc484
line wrap: on
line diff
--- a/warfare.pl	Thu Feb 12 01:53:59 2009 +0800
+++ b/warfare.pl	Thu Feb 12 03:23:06 2009 +0800
@@ -117,12 +117,7 @@
             # we don't attack same city twice at same time.
             next CITY if($_->{to} == $city->cityId);
         }
-        # we attack one city maximum 4 times a day.
-        if ($city->status eq 'i') {
-            next CITY if($c >= 6);
-        } else {
-            next CITY if($c >= 4);
-        }
+        next CITY if($c >= 1);
 
         my $capture = $city->citylevel * ($city->citylevel - 1) * $sheep->trader_score_secondary / 10000;
         next if($capture < 1500);
@@ -148,8 +143,8 @@
         $self->{ikariam}->changeCity($cityId);
         $self->{ikariam}->plunderCity($victim,
                 {
-                    # cargo_army_302 => '2', # 劍士
                     cargo_army_303 => '2', # 方陣
+                    transporter   => 5, # transporter
                 }
                 );
     }