Follow-up Comment #5, bug #22341 (project freeciv):

Part of the problem is the documentation for the has_base command says that it
takes a name but doesn't explain what that name is so it's hard for the user
to figure out what to put.  The code does allow for this and an empty string
crashes the system just as well.  As for using the rule to get the base type,
that's because internally the code uses a get_from_rule construct to figure
out the base type to return.

Although a general form for arbitrary rule sets is a good idea, it might be
logical to bind 3 separate functions as well:

 * has_fortress
 * has_airbase
 * has_bouy

For the default ruleset.

Of course, I'm mainly trying to work on which is a bigger project.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to