[Freeciv-Dev] Re: using OR in requirements
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Sorry, to be more verbose:
We discussed having OR before, and decided it wasn't a good idea because
of added complexity. If it were only done for effects and then things
were split during ruleset loading, that might be feasible. The problem
is that reqs are used in lots of places and have a consistent format;
how will you add extensions without breaking that format?
[effect_martial_law_each_0]
name = "Martial_Law_Each"
value = 1
one_of_req =
{
{ "type", "name", "range"
"Gov", "Anarchy", "Player"
}
{ "type", "name", "range"
"Gov", "Despotism", "Player"
}
{ "type", "name", "range"
"Gov", "Monarchy", "Player"
}
}
this preserves the req format but in an array. However I'm pretty sure
this isn't possible with the registry format.
-jason
|
|