Mercurial > eagle-eye
changeset 263:83e3ce37779d
refined army scheme
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Sat, 22 Nov 2008 03:33:38 +0800 |
parents | 1b435cd26a7b |
children | 3b3f1306255a |
files | Ikariam.pm warfare.pl |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Ikariam.pm Thu Nov 20 00:30:21 2008 +0800 +++ b/Ikariam.pm Sat Nov 22 03:33:38 2008 +0800 @@ -647,7 +647,8 @@ $self->{mech}->submit_form( form_number => 1, fields => { - cargo_army_302 => '3', # 劍士 + cargo_army_302 => '2', # 劍士 + cargo_army_303 => '1', # 方陣 } ); }
--- a/warfare.pl Thu Nov 20 00:30:21 2008 +0800 +++ b/warfare.pl Sat Nov 22 03:33:38 2008 +0800 @@ -64,7 +64,8 @@ sub is_army_available { my ($self, $city) = @_; - return ($city->{army}->{Swordsman} >= 2 ) ? 1 : 0; + # 方陣撞不死 + return ($city->{army}->{Swordsman} >= 2 && $city->{army}->{Phalanx} >= 1) ? 1 : 0; } sub locateVictim {