changeset 316:73430da45eec

merged
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 06 Jan 2009 23:52:17 +0800
parents a5d85719155d (diff) 97a838fcdd05 (current diff)
children e5e25d4a2c2f
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {