Follow-up Comment #9, bug #13600 (project freeciv):
Sorry, I don't get the names right. Here the changed
text of my last comment:
If I understand the code right, the same functions are
used for the requirements of effects and buildings. So
I could negate a requirement of an effect (using
'negated' in the 'reqs') part to implement the
'nreqs' part of this effect.
I hope an example can show that I mean:
[effect_barracks_old]
name = "Veteran_Build"
value = 1
reqs =
{ "type", "name", "range"
"Building", "Barracks", "City"
"UnitClass", "Land", "Local"
}
nreqs =
{ "type", "name", "range"
"UnitFlag", "Diplomat", "Local" <= old: 'nreqs'
}
would be equal to
[effect_barracks_new]
name = "Veteran_Build"
value = 1
reqs =
{ "type", "name", "range", "negated"
"Building", "Barracks", "City", 0
"UnitClass", "Land", "Local", 0
"UnitFlag", "Diplomat", "Local", 1 <= new: 'negated'=1
}
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13600>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev