# HG changeset patch # User "Rex Tsai " # Date 1231770408 -28800 # Node ID e5e25d4a2c2fb782075aaaa2be808fa44d5581a0 # Parent 2e0e478951484594f802a99359899e2cd05362b6# Parent 73430da45eec661d970d7fca57c428e4ed2086cc merged diff -r 2e0e47895148 -r e5e25d4a2c2f agent.pl --- a/agent.pl Mon Jan 12 22:25:46 2009 +0800 +++ b/agent.pl Mon Jan 12 22:26:48 2009 +0800 @@ -57,7 +57,7 @@ sub is_tavern_enough { my ($self, $city) = @_; return 0 if(!defined($city->{buildings}->{tavern})); - return 1 if($city->{buildings}->{tavern} >= 12); + return ($city->{buildings}->{tavern} >= 12 ? 1 : 0); } sub is_branchOffice_enough {