Incidencia #43532

Self-provided goods

Abrir Fecha: 2022-01-05 04:20 Última actualización: 2022-01-28 11:40

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1

Details

Currently Goods requirement is true only for a city that imports them. The exporting city does not have them. While it's possible for the exporting city to have same requirements for anything as it has for exporting the good, that's a different requirement definition to what importing city uses. Thus it's not possible to construct many rules where the exporting and importing cities have the same benefit (effects and action enablers are an exception, as you can have multiple of those, with different requirements).

As a solution to this I'm proposing "self-provided" (goods flag) goods. Requirement for such a good would also be true for a city exporting, or capable of exporting (i.e. having the goods initial requirements fulfilled), the good.

Ticket History (3/6 Histories)

2022-01-05 04:20 Updated by: cazfi
  • New Ticket "Self-provided goods" created
2022-01-10 05:06 Updated by: lachu
Comentario

Hi. Why do not add new requirement type?

In both cases, we need information of which city is provided which good to current city.

2022-01-10 05:19 Updated by: cazfi
Comentario

Reply To lachu

Hi. Why do not add new requirement type?

That would differ from a "Good" requirement only in that it's true also for the producing city?

I guess it would work too. Not sure it would be better. As the requirement types would be almost identical, it would mean some duplicate code to maintain. I'm currently slightly in favor of my current implementation. Any other opinions?

2022-01-15 07:47 Updated by: cazfi
  • Resolución Update from Ninguno to Accepted
Comentario

Attached patch implements the original Self-Provided good flag idea.

2022-01-28 11:40 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar