Project

General

Profile

Actions

Feature #1546

closed

Add specialist unit type property

Added by Alexandr Ignatiev 29 days ago. Updated 23 days ago.

Status:
Closed
Priority:
Normal
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 3 (2 open1 closed)

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

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

Actions
Blocks Feature #1535: unithand.c: Improve coding styleClosedMarko Lindqvist06/22/2025

Actions
Actions #1

Updated by Alexandr Ignatiev 29 days ago

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

Updated by Marko Lindqvist 29 days 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 29 days 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 29 days 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 29 days ago

Edited. Also improved the user interface.

Actions #7

Updated by Alexandr Ignatiev 29 days ago

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

Updated by Alexandr Ignatiev 27 days ago

  • Blocks Feature #1552: Add "Settle Specialist" player action added
Actions #9

Updated by Alexandr Ignatiev 27 days ago

  • Blocks deleted (Feature #1552: Add "Settle Specialist" player action)
Actions #10

Updated by Marko Lindqvist 25 days ago

  • Status changed from New to In Review
  • Assignee set to Marko Lindqvist
Actions #11

Updated by Marko Lindqvist 25 days ago

Actions #12

Updated by Marko Lindqvist 23 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF