待辦事項 #43392

AI: AI can't change government when revolentype "Quickening" in use

啟用日期: 2021-12-12 11:23 最後更新: 2021-12-16 19:13

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

In handle_player_change_government() anarchy is usually true for all players, and turns is zero for AI players. Turns is zero also for human players when anarchy has just ended the same turn. The check against multiple government changes at the same turn in case of "Quickening" (and also "RandQuick" once #43334 lands) assumes that turns value zero means that revolution has just ended. So any government change attempt from AI player is taken as an attempt of multiple changes, and prevented.

Ticket History (3/6 Histories)

2021-12-12 11:23 Updated by: cazfi
  • New Ticket "AI: AI can't change government when revolentype "Quickening" in use" created
2021-12-12 11:34 Updated by: cazfi
  • 處理結果 Update from to Accepted
2021-12-12 12:23 Updated by: cazfi
評語

Also S2_6 version attached. I plan to push it despite there being no plans to make further 2.6 releases.

2021-12-16 19:13 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入