Project

General

Profile

Actions

Feature #1464

open

Lua API: minimal specialist control

Added by Alexandr Ignatiev 10 days ago. Updated 2 days ago.

Status:
In Review
Priority:
Normal
Category:
Scripting API
Target version:
Start date:
05/28/2025
Due date:
% Done:

0%

Estimated time:

Description

Split from #1399 but applied also to S3_3. Main application there is scripted removal of specialists that the city can't employ any more due to their reqs but that are not automatically removed.

Common
  • bool (City):can_employ(Specialist s)
  • bool (Player):can_employ(Specialist s)
  • int (City):num_specalists(Specialist s?)
Server
  • bool (City):reduce_specialist(Specialist s, amount n?)

Probably we also want a way to know Specialist_Output effect but the logical addition in effects module is probably too global for this patch; just a City method can be added though.


Files

specialists-lua-api.patch (13.7 KB) specialists-lua-api.patch Alexandr Ignatiev, 05/31/2025 12:47 AM
lua-specialists.patch (13.7 KB) lua-specialists.patch from 202-06-04 Alexandr Ignatiev, 06/04/2025 09:37 PM
lua-specialists1.patch (13.7 KB) lua-specialists1.patch Alexandr Ignatiev, 06/05/2025 12:58 AM

Related issues 2 (1 open1 closed)

Blocked by Feature #1451: Lua API: specialist classClosedMarko Lindqvist05/26/2025

Actions
Blocks Feature #1399: Lua API: specialists controlIn ReviewMarko Lindqvist05/17/2025

Actions
Actions

Also available in: Atom PDF