# HG changeset patch # User "Rex Tsai " # Date 1231257137 -28800 # Node ID 73430da45eec661d970d7fca57c428e4ed2086cc # Parent a5d85719155de5e870ebcc17d70e272a44ac6b3a# Parent 97a838fcdd05f37eedb1015ef13831bec60bd497 merged diff -r 97a838fcdd05 -r 73430da45eec agent.pl --- a/agent.pl Mon Jan 05 00:19:40 2009 +0800 +++ b/agent.pl Tue Jan 06 23:52:17 2009 +0800 @@ -56,7 +56,7 @@ sub is_tavern_enough { my ($self, $city) = @_; return 0 if(!defined($city->{buildings}->{tavern})); - return 1 if($city->{buildings}->{museum} >= 12); + return ($city->{buildings}->{museum} >= 12 ? 1 : 0); } sub is_branchOffice_enough {