view building.yaml @ 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 6eccb3a95df5
line wrap: on
line source

---
# 基本建設規則
# 檢查是否被攻擊
- is_Attacked:
    # we are in Peace :D
    0:
      - is_constructing:
         # already building something.
         1:
           # adjust human resources
           # 
           # 相關基礎研究 (technologies tree)
           # 財富
            - is_wealth_researched:
               0: research_economy
               1: 
                  # 擴張
                  - is_expansion_researched:
                     0: research_seafaring
                     1:
                        # 造紙
                        - is_paper_researched:
                           0: research_knowledge
                           1:
                              # 釀酒
                              - is_winepress_researched:
                                 0: research_economy
                                 1:
                                    # 正規軍
                                    - is_professionalarmy_researched:
                                       0: resaerch_military
         # let's find something to build up
         0:
            # 確認是否為主城
            # 確認是否有學院
            - is_gold_enoughforcargo:
               1: increaseTransporter
            - is_wall_enough:
               0: build_wall
            - is_space_enough:
               0: 
                  - is_resource_enoghforHall:
                     1: build_townHall
            - is_corruption:
               1: build_governorsresidence
            # 倉庫庫存量
            - is_warehouse_enough:
               0: build_warehouse
            - is_risk:
               1: 
                  - is_shipyard:
                     0: 
                        - is_drydock_researched: 
                           0: resaerch_military
                           1: build_shipyard
            - is_happiness:
               0: 
                  - is_winepress_researched:
                     0: research_economy
                     1: build_tavern
                     # reduce_trvern
            # 是主城, 可隨意建任一尚未搭建之建築
            # 副城, 不建 ...
    # 採取防禦措施
    1: run_defense