# HG changeset patch # User "Rex Tsai " # Date 1234380186 -28800 # Node ID 118605b58d09f537b44aeecd5448c271a3913d01 # Parent 6eac624efc80366595230b313e2482263cf1545f random fight diff -r 6eac624efc80 -r 118605b58d09 warfare.pl --- 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 } ); }