チケット #46046

AI: Improve attacker danger evaluation

登録: 2022-11-08 03:12 最終更新: 2022-12-22 06:29

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
6

詳細

Firstly, consider "Attack_bonus" effect. Then, pay a heed to action enablers, maybe they prohibit the attack. Also, don't consider harmless units that can't attack but can occupy the city.

Actually, a split from #41781 since the patch grew too big.

チケットの履歴 (20 件中 3 件表示)

2022-11-08 03:12 更新者: ihnatus
  • 新しいチケット "AI: Improve attacker danger evaluation" が作成されました
2022-11-08 03:16 更新者: ihnatus
コメント

Added a patch, tested on master, depends on #46029.

2022-11-13 06:35 更新者: ihnatus
コメント

A line not rebased slipped in, fixed. 3.1 patch coming. IDK will I do a 3.0 patch here.

2022-11-14 01:18 更新者: ihnatus
コメント

Patches are ready.

2022-11-23 10:54 更新者: cazfi
2022-11-24 09:16 更新者: cazfi
コメント

"This patch includes a generic mechanism for arbitrary requirement vector evaluation (i.e., substituting is_req_active() with a custom callback)."

Could you split that to a separate patch? So that unrelated functionalities would not be tied to acceptance (schedule) of this patch. I didn't look it closely, but noticed that you have parameters with _sz -suffix in their name, but which are not of type size_t. Should they?

2022-12-05 16:23 更新者: cazfi
コメント

On a tree with this applied, clang analyzer gives (at leas some of this from tri_req_active_turns() added by this patch):

../../../src/common/requirements.c:5146:9: warning: Value stored to 'present' is never read [deadcode.DeadStores]

present = req->source.value.age <= ca;
~

../../../src/common/requirements.c:5147:9: warning: Value stored to 'present1' is never read [deadcode.DeadStores]

present1 = req->source.value.age <= ca + period;

../../../src/common/requirements.c:5153:9: warning: Value stored to 'present' is never read [deadcode.DeadStores]

present = req->source.value.age
~

../../../src/common/requirements.c:5155:9: warning: Value stored to 'present1' is never read [deadcode.DeadStores]

present1 = req->source.value.age
~
2022-12-06 21:50 更新者: cazfi
  • 担当者(未割り当て) から ihnatus に更新されました
2022-12-10 18:46 更新者: cazfi
コメント

Ping.

As far as I know, this is the "root dependency" for all the other open patches from you, and I'm a bit worried that the whole stack catches bitrot (stops applying)

2022-12-13 04:43 更新者: ihnatus
コメント

Reply To cazfi

Ping.

Sorry, don't have much time for now, but I'll try to sort this one out in few days.

2022-12-14 06:05 更新者: ihnatus
コメント

Patch for 3.2 after split to #46266 is added, 3.1 coming soon

2022-12-16 02:02 更新者: ihnatus
コメント

New 3.1 patch done.

2022-12-18 02:04 更新者: cazfi
  • 担当者ihnatus から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
2022-12-22 06:29 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

添付ファイルリスト

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする