Project

General

Profile

Actions

Bug #2482

open

AI never builds paratroopers

Added by Sweet Tea Dorminy 14 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
AI
Target version:
Start date:
11/15/2026
Due date:
% Done:

0%

Estimated time:

Description

dai_choose_paratrooper() considers a unit type only if utype_can_do_action() is true for ACTION_PARADROP or ACTION_PARADROP_CONQUER. Since "Paradrop Unit" was split, every shipped ruleset enables only "Paradrop Unit Enter" and "Paradrop Unit Enter Conquer", which have the same results (ACTRES_PARADROP, ACTRES_PARADROP_CONQUER) but are different actions. So no unit type passes: the AI never builds Paratroopers.

Since 3.1.0; in 3.0 the rulesets enabled "Paradrop Unit" and the check matched.

Attached patch asks utype_can_do_action_result() for the two results instead, as dai_manage_paratrooper() already does when it chooses a jump. main and S3_3 share one patch; S3_2 has its own for aiparatrooper.c.


Files

No data to display

Actions

Also available in: Atom PDF