任务单 #44627

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

开放日期: 2022-05-20 06:04 最后更新: 2024-09-22 05:55

报告人:
属主:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
2

Details

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).

任务单历史 (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 Fixed

编辑

Please login to add comment to this ticket » 登录名