Project

General

Profile

Actions

Feature #1546

open

Add specialist unit type property

Added by Alexandr Ignatiev 2 days ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
Start date:
06/29/2025
Due date:
% Done:

0%

Estimated time:

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

units.ruleset (93.5 KB) units.ruleset Great Worker unit desc example Alexandr Ignatiev, 06/29/2025 02:28 AM
3_4-specialist_unit.patch (11.9 KB) 3_4-specialist_unit.patch Alexandr Ignatiev, 06/29/2025 02:33 AM
3_4-specialist_unit1.patch (23.4 KB) 3_4-specialist_unit1.patch Alexandr Ignatiev, 06/29/2025 07:26 PM

Related issues 2 (2 open0 closed)

Blocks Feature #1478: Player controlled superspecialist additionNew05/30/2025

Actions
Blocks Feature #1548: Ruledit: add unit specialist parameterNew06/29/2025

Actions
Actions #1

Updated by Alexandr Ignatiev 2 days ago

  • Blocks Feature #1478: Player controlled superspecialist addition added
Actions #3

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

Actions #4

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

Actions #5

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.

Actions #6

Updated by Alexandr Ignatiev 1 day ago

Edited. Also improved the user interface.

Actions #7

Updated by Alexandr Ignatiev 1 day ago

  • Blocks Feature #1548: Ruledit: add unit specialist parameter added
Actions

Also available in: Atom PDF