annotate hunting.yaml @ 334:65f45552060e

fixed travel time
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Thu, 12 Feb 2009 02:48:45 +0800
parents 3d1784140009
children
rev   line source
75
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
1 ---
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
2 # 基本建設規則
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
3 # 若糟攻擊則不建設
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
4 - is_attacked:
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
5 0:
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
6 # 計算當下戰爭次數
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
7 # 本城之戰爭數
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
8 # 維護費 / gold 比例
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
9
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
10 # blocking (打到死政策)
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
11 # 計算軍方比例
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
12 # 對方軍分 0, 海軍一日三次, 每次八小時, 陸軍每日三次, 八小時一次
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
13 # 對方平等軍分, 半夜偷襲
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
14 # 對方高軍分, 累積分數後反攻
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
15
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
16 # hunting
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
17 # 分數低於我 0.1
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
18 # 軍分低於我 0.3
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
19 # 搶奪數量
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
20 # 出戰比例運算
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
21 # 間諜
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
22 # 軍分成績
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
23
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
24 1: run_defense
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
25 # 遭受攻擊 採取防禦措施
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
26 # 若軍分 0, 進行焦土政策 針對特定城市 錢全部買船 拆港
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
27 # increaseTransporter
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
28 # destroy TradingPort
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
29 #
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
30 # 計算出兵數量、到達時間與調動時間
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
31 # 調動軍隊防護 (加入封鎖列表)
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
32
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
33 # (保留兵力) 出兵對方城鎮, 拆港, keep gold
3d1784140009 move hunting rules from building.
"Rex Tsai <chihchun@kalug.linux.org.tw>"
parents:
diff changeset
34 # (保留兵力) 出兵任一城鎮, 拆港, keep gold