Opened 2 years ago

Closed 17 months ago

#6421 closed enhancement (fixed)

Create a cmpRequirements.

Reported by: Freagarach Owned by: Freagarach
Priority: Nice to Have Milestone: Alpha 27
Component: Simulation Keywords:
Cc: Patch: Phab:D4514

Description

There are several components using requirements (auras, techs, entities (identity)) it would be nice to have one component handling requirements, such as civ, entity and technology requirements. That would allow to e.g. put formations behind a technology. It would also allow more complex requirements for entities, like we have now for technologies (and auras?).

For the specs, look at the technologies, especially the "all" "any" "none" characteristics.

Change History (4)

comment:1 by Freagarach, 2 years ago

Maybe just a helper for the requirements, such that we don't add a cmp that isn't used after the entity has been created, but we still unify its uses.

comment:2 by Stan, 2 years ago

Patch: Phab:D4514

comment:3 by Stan, 2 years ago

Milestone: Alpha 26Alpha 27

Unlikely to get done for A26

comment:4 by Freagarach, 17 months ago

Owner: set to Freagarach
Resolution: fixed
Status: newclosed

In 27245:

Add Requirements helper.

Allows more flexibility in e.g. the Identity requirements and unifies the checking of requirements.
One can use the script at https://code.wildfiregames.com/P265 to fix templates.

Differential revision: https://code.wildfiregames.com/D4514
Comments by: @elexis, @Stan
Fixes #6421

Note: See TracTickets for help on using tickets.