Feature #1546
openAdd specialist unit type property
0%
Description
Add a specialist
property to unit types. This allows a script to grant a player with a Great Person unit that may become a superspecialist if joined a city. A city founder may also carry a superspecialist. I think, more than one superspecialist per unit is not needed.
That changes city founding logic a bit, so that disbanding a city founded as size 2 as soon as it is created won't raise an error.
This is a sub-task of #1478 but does not depend on #1541.
AI handling is not included. AFAIK AI still does not add units to cities.
Files
Updated by Alexandr Ignatiev 2 days ago
- Blocks Feature #1478: Player controlled superspecialist addition added
Updated by Alexandr Ignatiev 2 days ago
Patch
Updated by Marko Lindqvist 1 day ago
- Ruleload should use secfile_lookup_str_default(...nullptr...) instead of secfile_lookup_str() to not error for lack of specialist
- Unit type documentation comments in supplied rulesets, and data/ruledit/comments-3.4.txt, should be updated
Updated by Marko Lindqvist 1 day ago
Marko Lindqvist wrote in #note-3:
- Unit type documentation comments in supplied rulesets, and data/ruledit/comments-3.4.txt, should be updated
Hint: Update the documentation in just one ruleset, and then run ./scripts/spec_propagate.sh
Updated by Alexandr Ignatiev 1 day ago
Marko Lindqvist wrote in #note-3:
- Ruleload should use secfile_lookup_str_default(...nullptr...) instead of secfile_lookup_str() to not error for lack of specialist
Interesting, I don't see errors, but I'll do.
- Unit type documentation comments in supplied rulesets, and data/ruledit/comments-3.4.txt, should be updated
Ok, I'll do it, I thought it goes to another patch.
Updated by Alexandr Ignatiev 1 day ago
Edited. Also improved the user interface.
Updated by Alexandr Ignatiev 1 day ago
- Blocks Feature #1548: Ruledit: add unit specialist parameter added