changeset 268:285d5b39ef2c

we hused 3 Phalanx for plunder
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 25 Nov 2008 23:46:42 +0800
parents 06ee88d2bb2a
children c7f4a6f0fbde
files Ikariam.pm warfare.pl
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Ikariam.pm	Tue Nov 25 23:08:00 2008 +0800
+++ b/Ikariam.pm	Tue Nov 25 23:46:42 2008 +0800
@@ -662,8 +662,8 @@
             $self->{mech}->submit_form(
                     form_number => 1,
                     fields      => {
-                           cargo_army_302 => '2', # 劍士
-                           cargo_army_303 => '1', # 方陣
+                           # cargo_army_302 => '2', # 劍士
+                           cargo_army_303 => '3', # 方陣
                     }
                     );
         }
--- a/warfare.pl	Tue Nov 25 23:08:00 2008 +0800
+++ b/warfare.pl	Tue Nov 25 23:46:42 2008 +0800
@@ -65,7 +65,8 @@
 sub is_army_available {
     my ($self, $city) = @_;
     # 方陣撞不死
-    return ($city->{army}->{Swordsman} >= 2 && $city->{army}->{Phalanx} >= 1) ? 1 : 0;
+    # return ($city->{army}->{Swordsman} >= 2 && $city->{army}->{Phalanx} >= 1) ? 1 : 0;
+    return ($city->{army}->{Phalanx} >= 3) ? 1 : 0;
 }
 
 sub locateVictim {