Tíquete #43808

Extras as local-ranged requirement targets

: 2022-02-08 07:52 Última Atualização: 2022-02-19 03:41

Relator:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

Add support for extras as requirement targets (as already exists for e.g. improvements and unit types), with associated local-ranged requirements (RoadFlag, Extra, ExtraFlag).

This is possible now since the "exists on tile" kind of requirement has been moved to the Tile range with hrm #695469. However, to avoid potential rscompat issues, adding new things to the Local range should not be done until after #43708.

Ticket History (3/6 Histories)

2022-02-08 07:52 Updated by: alienvalkyrie
  • New Ticket "Extras as local-ranged requirement targets" created
2022-02-08 08:47 Updated by: alienvalkyrie
Comentário

Probably most sensible to delay this until after #43809, to make adding the new requirement target easier.

2022-02-15 03:51 Updated by: alienvalkyrie
  • Dono Update from (Nenhum) to alienvalkyrie
2022-02-15 08:44 Updated by: alienvalkyrie
  • Resolução Update from Nenhum to Accepted
Comentário

A few notes on this patch:

  • The patch depends on #43809, and softly depends on #43708 to avoid potential rscompat confusion.
  • No place in the code passes target extras to requirement evaluation yet. This is left to other tickets like #41539 and #41540.
    • This also means the requirement evaluation code is not testable in practice yet
  • The default range for Extra, RoadFlag and ExtraFlag requirements is still Tile, not Local, to keep the current behavior
2022-02-19 03:41 Updated by: alienvalkyrie
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login