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 https://gna.org/bugs/?func=detailitem&item_id=22273 which is a bigger project. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?22341> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freecivfirstname.lastname@example.org https://mail.gna.org/listinfo/freeciv-dev