Help has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #859052


New requirement type: CounterGreaterThanZero

Added by Sveinung Kvilhaugsvik over 4 years ago. Updated over 1 year ago.

Start date:
Due date:
% Done:


Estimated time:


Name is the name of the counter that must be above 0. Should sanity check range based on counter kind.

Possible users:
  • Airlift. Could be used to require that dest city has Airlift even if AIRLIFTING_UNLIMITED_DEST is on.
  • Pollution. Could be used in action enablers to only allow certain (ecoterrorist) actions against polluting cities.

Related issues

Blocks Freeciv - Feature #859061: Ruleset defined countersNew

Actions #1

Updated by Sveinung Kvilhaugsvik over 4 years ago

Actions #2

Updated by Sławomir Lach about 4 years ago

Please, look at .
I added possibility to compare values in req list and CounterToName requirement type, so you could wrote
"CounterToName", "A", "Counter-Player(Happinnes)"
"CounterToName", "B", "Counter-Player(HappinnesNeedToGolden)"
"Objects", "Above(A,B)", "EffectsFunction"
"PlayerOutputCounter", "GoldenActivated", "Player"

So functionality similar to CounterGreaterThan is implemented. PlayerOutputCounter is not related, I just wanna to show an example of increasing/decreasing one counter based on values of others.

I think about making of remover CounterToName reqs and replace it with effects import list to reduce memory overweight (it currently need to add special pointer to req struct).

Actions #3

Updated by Sławomir Lach about 4 years ago

Patches are ready and accessible here:

But I don't know I should split patches or what.

Actions #4

Updated by Marko Lindqvist over 1 year ago

  • Status changed from New to Rejected
  • Assignee set to Marko Lindqvist

Counters have the generic "checkpoint" value. No need to have separate requirement type for the specific case that checkpoint is 1.

Also available in: Atom PDF