Project

Profile

Help

HostedRedmine.com 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

open

New requirement type: CounterGreaterThanZero

Added by Sveinung Kvilhaugsvik over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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
Actions #1

Updated by Sveinung Kvilhaugsvik over 2 years ago

Actions #2

Updated by Sławomir Lach over 2 years ago

Please, look at http://www.hostedredmine.com/issues/859061 .
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 over 2 years ago

Patches are ready and accessible here:
http://www.hostedredmine.com/issues/859061

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

Also available in: Atom PDF