チケット #42199

Ruleset controlled max distance to friendly city for "NoAggressive" extra

登録: 2021-05-08 21:35 最終更新: 2021-05-30 17:43

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

詳細

"NoAggressive" extra flag is functional when the distance to nearest friendly city is 3 or less. That '3' is hardcoded. Earlier I've been hesitant to unhardcode it because I've been concerned of the performance impact of iterating over larger area of map to look for the city.

As the code stands in current master, that iteration is done only when unit is already known to be on such an extra (i.e. rarely). That even includes the fact that the extra is native to the unit (i.e. the iteration is not done even if the tile has such an extra, if the unit is not affected by it). Increasing the distance somewhat wouldn't have big performance impact.

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

2021-05-08 21:35 更新者: cazfi
  • 新しいチケット "Ruleset controlled max distance to friendly city for "NoAggressive" extra" が作成されました
2021-05-09 22:00 更新者: cazfi
  • 解決法なし から 受領 に更新されました
コメント

Attached patch defines the distance per extra, i.e., different extras in the same ruleset can have a different value.

2021-05-30 17:43 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする