# HG changeset patch # User "Rex Tsai " # Date 1225722508 -28800 # Node ID 31fca1e55ed502fe38424c85dd962dee5662a97e # Parent a2bb38589172d13a44f1f9958b29770c7bacca7e we don't fight with sheep has only a little money diff -r a2bb38589172 -r 31fca1e55ed5 warfare.pl --- a/warfare.pl Mon Nov 03 20:07:05 2008 +0800 +++ b/warfare.pl Mon Nov 03 22:28:28 2008 +0800 @@ -110,8 +110,10 @@ # we attack one city maximum 4 times a day. next if($c >= 4); + my $capture = $city->citylevel * ($city->citylevel - 1) * $sheep->trader_score_secondary / 10000; + next if($capture < 1500); + # { - my $capture = $city->citylevel * ($city->citylevel - 1) * $sheep->trader_score_secondary / 10000; my $line = sprintf("%d %s [%d,%d] %s (%d) %s Attacked %d", $capture, $city->status, $island->x, $island->y,