Feature #1546
open
Add specialist unit type property
Added by Alexandr Ignatiev 2 days ago.
Updated 1 day ago.
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
Related issues
2 (2 open — 0 closed)
- Blocks Feature #1478: Player controlled superspecialist addition added
- 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
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
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.
Edited. Also improved the user interface.
- Blocks Feature #1548: Ruledit: add unit specialist parameter added
Also available in: Atom
PDF