Ticket #44627

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

Eröffnet am: 2022-05-20 06:04 Letztes Update: 2024-09-22 05:55

Auswertung:
Verantwortlicher:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/8 Historien)

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

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 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2024-09-12 13:38 Aktualisiert von: cazfi
  • Lösung Update from Accepted to Keine
Kommentar

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

2024-09-15 02:58 Aktualisiert von: cazfi
  • Lösung Update from Keine to Accepted
Kommentar

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

2024-09-22 05:55 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden