Ticket #44627

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

Open Date: 2022-05-20 06:04 Last Update: 2024-09-22 05:55

Reporter:
Owner:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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).

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
Comment

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
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2024-09-12 13:38 Updated by: cazfi
  • Resolution Update from Accepted to None
Comment

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

2024-09-15 02:58 Updated by: cazfi
  • Resolution Update from None to Accepted
Comment

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

2024-09-22 05:55 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login