待辦事項 #44627

Lua: Add size and nationality optional parameters to edit.create_city()

啟用日期: 2022-05-20 06:04 最後更新: 2024-09-22 05:55

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

細節

We need it. Testing and more control of citizens' nationality may be added in another tickets but it's a base. At very least city size should be configurable by Lua. I added some improvement to create_city() code during #44312 but that actually has not been tested yet (with e.g. city_size > 1 units).

Ticket History (3/8 Histories)

2022-05-20 06:04 Updated by: ihnatus
  • New Ticket "Lua: Add size and nationality optional parameters to edit.create_city()" created
2024-08-26 06:36 Updated by: cazfi
評語

City size change is coming in #44230, so it's possible to create cities of any size. What is missing from this ticket, is the ability to set the nationality of the very first citizen, created by edit.create_city().

2024-09-07 03:35 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2024-09-12 13:38 Updated by: cazfi
  • 處理結果 Update from Accepted to
評語

Breaks old scripts that "pass" no_object (not even nil) as the fourth parameter.

2024-09-15 02:58 Updated by: cazfi
  • 處理結果 Update from to Accepted
評語

Patch written from scratch. Adds new edit.city_create() and deprecates old edit.create_city()

2024-09-22 05:55 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入