changeset 59:b40f87f16263

fixed a typo.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 21 Oct 2008 00:50:37 +0800
parents 46e60bb040ad
children 610bbe1824ef 3a611c51b99b
files agent.pl building.yaml
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/agent.pl	Tue Oct 21 00:33:11 2008 +0800
+++ b/agent.pl	Tue Oct 21 00:50:37 2008 +0800
@@ -43,8 +43,7 @@
     return 0;
 }
 
-sub is_happiness
-{
+sub is_happiness {
     my ($self, $city) = @_;
     # TODO 以 fuzzy 取出合理 happiness 值
     return ($city->{happiness} >= 2 ?  1 : 0)
@@ -109,7 +108,7 @@
     return (defined($city->{research}->{4030}) ?  1 : 0);
 }
 
-sub is_paper_research {
+sub is_paper_researched {
     my ($self, $city) = @_;
     return (defined($city->{research}->{3020}) ?  1 : 0);
 }
--- a/building.yaml	Tue Oct 21 00:33:11 2008 +0800
+++ b/building.yaml	Tue Oct 21 00:50:37 2008 +0800
@@ -22,13 +22,13 @@
                         - is_paper_researched:
                            0: research_knowledge
                            1:
-                                # 釀酒
+                              # 釀酒
                               - is_winepress_researched:
                                  0: research_economy
                                  1:
-                                 # 正規軍
+                                    # 正規軍
                                     - is_professionalarmy_researched:
-                                      0: resaerch_military
+                                       0: resaerch_military
          # let's find something to build up
          0:
             # 確認是否為主城