Ticket #43532

Self-provided goods

오픈 날짜: 2022-01-05 04:20 마지막 업데이트: 2022-01-28 11:40

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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
댓글 올리기

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
댓글 올리기

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
  • Resolution Update from None to Accepted
댓글 올리기

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

2022-01-28 11:40 Updated by: cazfi
  • Status Update from Open to Closed
  • 소유자 Update from (None) to cazfi
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login