# HG changeset patch # User "Rex Tsai " # Date 1224521437 -28800 # Node ID b40f87f162638a7b73ca0a9259aa9823c2371f04 # Parent 46e60bb040ad2337f445bea2e3703a9af5b59dfa fixed a typo. diff -r 46e60bb040ad -r b40f87f16263 agent.pl --- 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); } diff -r 46e60bb040ad -r b40f87f16263 building.yaml --- 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: # 確認是否為主城