Project

General

Profile

Actions

Feature #1375

open

Introduce superspecialists

Added by Alexandr Ignatiev 4 days ago. Updated 4 days ago.

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

0%

Estimated time:

Description

Superspecialists are specialists that (1) are not counted within city population and (2) can not be assigned to or from by player or CMA.

In attached main patch, basic support for superspecialists is added (only ability to declare in rulesets and manually insert into savegames). Each city can have up to 255 superspecialists of each type. They are displayed in main citizens roster (but not in happiness rosters); probably something should be done in the future to diisplay great amounts of them since currently rosters are limited to 255 sprites and that is already not always comfortable. Probably I missed something in ruledit.

Patch requires appropriate protocol and dff version bumping.

Note that requirements of superspecialists are never checked. In my original idea, superspecialist should disappear if their reqs fall out of being fulfilled. But normal specialists seem to persist even in that case, so I did not make it. Don't know should that be a bug, seems like AI considers it impossible.

Future plans - adding superspecialists:
a) Direct Lua city:add_specialist(sp_type);
b) Defining unit specialist property, allow adding to cities units without pop value but with superspecialist value;
c) player:give_specialist(sp_type), then players can settle the specalists (not necessary super, may also add a citizen) via city interface.

(b) and (c) require AI understanding (AI any way needs a procedure to add to city useless migrants). (c) also requires GUI works I am not ready for.


Files

main-superspecialists-basic.patch (39.2 KB) main-superspecialists-basic.patch Alexandr Ignatiev, 05/08/2025 10:48 PM
freeciv-T0004-Y-3850-auto.sav.zst (38 KB) freeciv-T0004-Y-3850-auto.sav.zst Example: a superspecialist in Yax Mutal Alexandr Ignatiev, 05/08/2025 10:49 PM
sandbox2.tar.xz (93.1 KB) sandbox2.tar.xz Example of a ruleset with Great Worker (+3prod) superspecialist Alexandr Ignatiev, 05/08/2025 10:52 PM
Actions #3

Updated by Alexandr Ignatiev 4 days ago

+ (d) changing superspecialists for cities and players in editor, that also needs GUI magic.

Actions

Also available in: Atom PDF