Quantcast
Channel: forum.freeciv.org
Viewing all articles
Browse latest Browse all 130

Wishlist • OR condition for requirement vectors (was possible with nreqs, but not any more)

$
0
0
The requirement vectors in one effect are connected with AND operator: they all have to be fulfilled for the effect to have effect. However, it isn't possible to combine them in a way that the effect is active if ANY of them is fulfilled. It was possible to do while the nreq field was active, but since nreq is deprecated, it isn't possible anymore.

Having the OR operator (or returning the nreqs) would simplify some things and also make possible stuff that is impossible right now. Right now, if I want to do a simple OR requirement, I have to write down a separate effect for each requirement. Also, implementing the OR (or returning nreqs) would make it possible for building and unit requirements, too, which are now limited to only one "effect".

Statistics: Posted by Corbeau — Fri Jul 19, 2024 6:13 pm — Replies 2 — Views 53



Viewing all articles
Browse latest Browse all 130

Trending Articles